[T2080RDB] How to configure Common clock for PCIe endpoint

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[T2080RDB] How to configure Common clock for PCIe endpoint

386件の閲覧回数
Venkat_Vellanki
Contributor I

Hi,

We are working on T2080  PCIe . According to QorIQ_T2080_Reference_Manual(PgNo : 1545) we want to change the Common clock configuration(CCC) bit value in Link Control Register.

Can I get  more information on how to configure it in U-boot level?

image.png

Thanks and Regards,

Venkat Vellanki.

0 件の賞賛
返信
3 返答(返信)

309件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

You can change the link control register in drivers/pci/fsl_pci_init.c

for ex as below to change cc to 1:

pci_lcr = pcie_cap_pos + 0x10;
temp32 |= 0x40;
pci_hose_write_config_dword(hose, dev, pci_lcr, temp32);

0 件の賞賛
返信

301件の閲覧回数
Venkat_Vellanki
Contributor I

Hi yipingwang  ,

Thanks for the response 

We have already changed as mentioned above but still couldn't configure to common clock.

We configured in the following path /drivers/pci/fsl_pci_init.c


void fsl_pci_init(struct pci_controller *hose, struct fsl_pci_info *pci_info)
{
#code
if (retrain_link_g)
{
pci_lcr = pcie_cap_pos + 0x10;
temp32 = 0;
pci_hose_read_config_dword(hose, dev, pci_lcr, &temp32);
printf("pci_lcr: 0x%x\n", temp32);
temp32 |= 0x40;
printf("pci_lcr mk: 0x%x\n", temp32);
pci_hose_write_config_dword(hose, dev, pci_lcr, temp32);
udelay(100000);
}
}

 

Are there any other modifications that are required.?

0 件の賞賛
返信

320件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Discussing with the AE team.

0 件の賞賛
返信