How to remapped WEIM CS address space in Linux

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

How to remapped WEIM CS address space in Linux

ソリューションへジャンプ
2,030件の閲覧回数
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,817件の閲覧回数
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,817件の閲覧回数
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,817件の閲覧回数
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,818件の閲覧回数
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 件の賞賛
返信