Changing IOMUX pad settings from userspace

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

Changing IOMUX pad settings from userspace

ソリューションへジャンプ
2,184件の閲覧回数
davemcmordie
Contributor III

On the i.MX6Q we would like to be able to adjust the pad settings of MX6QDL_PAD_GPIO_3__CCM_CLKO2 from userspace after the kernel has booted in order to fine-tune clock edge speed.  Is this possible and if so how can we do it?  We also would especially like to be able to read back the value of this register in order to ensure that our chances have taken effect.  I have seen other posts on this forum saying that IOMUX settings can be adjusted at runtime, but I am not sure how this can be done in Linux 3.14.38.  

0 件の賞賛
返信
1 解決策
2,180件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi davemcmordie

 

one can try memtool included in unit tests (folder ..test/memtool)

https://patchwork.openembedded.org/patch/110753/

 

Best regards
igor

元の投稿で解決策を見る

5 返答(返信)
2,174件の閲覧回数
turker
Contributor IV

You can try devmem tool.

devmem 0x20E05FC # read
devmem 0x20E05FC 32 0xXXXXXXXX # write

 

2,160件の閲覧回数
elseiforelse
Contributor I

Hello,

Thanks for your help. When I write, I don't see the updated value from the readback. Any ideas on how to fix this?

root@devunit:/home/linaro/devmem# ./devmem 0x20E05FC w 0x0001B070
/dev/mem opened.
Memory mapped at address 0x76fbe000.
Read at address  0x020E05FC (0x76fbe5fc): 0x0001B0B0
Write at address 0x020E05FC (0x76fbe5fc): 0x0001B070, readback 0x0001B0B0
root@devunit:/home/linaro/devmem#
0 件の賞賛
返信
2,181件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi davemcmordie

 

one can try memtool included in unit tests (folder ..test/memtool)

https://patchwork.openembedded.org/patch/110753/

 

Best regards
igor

2,154件の閲覧回数
elseiforelse
Contributor I

This works. Thanks!

0 件の賞賛
返信
2,155件の閲覧回数
davemcmordie
Contributor III

Not sure why, but memtool worked and devmem did not. Thanks for your help!

0 件の賞賛
返信