How to force LS1012A PCIe into Gen 1 mode?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to force LS1012A PCIe into Gen 1 mode?

1,068 次查看
jasonwu0527
Contributor I

I installed the PI7C9X2G304SLBFDE PCI-E switch kit on LS1012ARDB, but sometimes it can't be detected PCI-E switch.

P_20180731_142149.jpg

I would like to force it into Gen 1 mode for testing, how to modify the drivers and force Gen 1 mode?

Thank you.

Can detect:
root@TinyDistro:~# cat /proc/bus/pci/devices
0000 19578100 1e 0 0 0 0 0 0 4040000000 0 0 0 0 0 0 800 pcieport
0100 12d82404 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 pcieport
0208 12d82404 1f 0 0 0 0 0 0 0 0 0 0 0 0 0 0 pcieport
0210 12d82404 20 0 0 0 0 0 0 0 0 0 0 0 0 0 0 pcieport
0218 12d82404 21 0 0 0 0 0 0 0 0 0 0 0 0 0 0 pcieport


Not detect:
root@TinyDistro:~# cat /proc/bus/pci/devices
0000 19578100 1e 0 0 0 0 0 0 4040000000 0 0 0 0 0 0 800 pcieport

标签 (1)
标记 (3)
0 项奖励
回复
1 回复

886 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello Jason Wu,

You could change Link_Control_2_Register[T_LS] register value to force link speed down to Gen1.

The offset of this register is 0xA0, PEX1 address is 0x3400000.

Under u-boot

=> md 0x34000a0 1
034000a0: 00010002                               ....
=> mw 0x34000a0 0x00010001

=> md 0x34000a0 1

034000a0: 00010001


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复