How to remapped WEIM CS address space in Linux

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

How to remapped WEIM CS address space in Linux

跳至解决方案
2,024 次查看
hengyewlim
Contributor III

Hi,

I have a problem trying to remap WEIM CS physical address to virtual address in Linux 3.14.52.1.1.0.

I am using CS1 and split the WEIM address space to 32MB block each.

I tried using the IMX_IO_P2V(0x52000000) that remapped to 0xF9200000 and got a segmentation fault when trying to read it.

Do I need to setup the device tree in order to access this memory space.

I was able to access this memory space correctly in u-boot using the physical address.

HengYew

标签 (2)
0 项奖励
回复
1 解答
1,811 次查看
hengyewlim
Contributor III

I found a solution which is to add mapping the CS1 region in pm-imx6.c similar to CCM/Anatop region.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,811 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Heng

eim remapping in device tree is described in linux/Docimentation/..imx-weim.txt

linux-2.6-imx.git - Freescale i.MX Linux Tree

example with weim usage can be found in imx6qdl-sabreauto.dtsi

linux-2.6-imx.git - Freescale i.MX Linux Tree

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,811 次查看
hengyewlim
Contributor III

Igor,

I managed to use of_iomap to remapped to virtual address but was thinking whether it can be done using #define IMX_IO_P2V because it will be called from different modules.

HengYew

0 项奖励
回复
1,812 次查看
hengyewlim
Contributor III

I found a solution which is to add mapping the CS1 region in pm-imx6.c similar to CCM/Anatop region.

0 项奖励
回复