How to set PCIe EP's memory address?

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

How to set PCIe EP's memory address?

跳至解决方案
1,334 次查看
t_kuha
Contributor I

Hi, I have a question about how to change a PCIe device's memory address on i.MX6.

Now, I have a PCIe EP device connected to i.MX6 Quad (running Linux 3.14.52) and issuing lspci  command shows the following values for the device:

Memory at 01100000 (32-bit, non-prefetchable) [size=1M]
Memory at 01200000 (32-bit, non-prefetchable) [size=1M]

The question is how can I change these values (01100000/01200000)?

Should I modify device tree or Linux kernel's source code?

Regards,

标签 (2)
0 项奖励
1 解答
1,041 次查看
igorpadykov
NXP Employee
NXP Employee

Hi t_kuha

please check PCI EP examples (0001-ENGR00268112-pcie-emaluate-the-pcie-ep-as-ram-device.patch.zip) on

i.MX6Q PCIe EP/RC Validation System 

for latest kernels one can look at sect.40.4 Using PCIe Endpoint and Running Tests attached Linux Manual

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

在原帖中查看解决方案

0 项奖励
2 回复数
1,042 次查看
igorpadykov
NXP Employee
NXP Employee

Hi t_kuha

please check PCI EP examples (0001-ENGR00268112-pcie-emaluate-the-pcie-ep-as-ram-device.patch.zip) on

i.MX6Q PCIe EP/RC Validation System 

for latest kernels one can look at sect.40.4 Using PCIe Endpoint and Running Tests attached Linux Manual

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

0 项奖励
1,041 次查看
t_kuha
Contributor I

igor,

Thank you for the reply.

I could change the addresses by modifying device tree.

Regards,

0 项奖励