Android:如何启用 CONFIG_OMAP_MUX beagleboard?
我使用的是 devkit8000,它类似于 beagle board。
如何启用里面的CONFIG_OMAP_MUX? 不知怎的,我无法通过menuconfig找到它。或者我看错地方了?
I am using devkit8000 which is similar to beagle board.
How to enable CONFIG_OMAP_MUX inside?
Somehow I can't find it via menuconfig. or I am looking at the wrong place?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅 OMAP35x 技术参考手册 (Rev. W)
要使用 GPIO130,您需要需要确保寄存器处于正确的 GPIO 模式。
您可以使用
devmem2
来查看和查看寄存器。[第 778 页] 确保
0x48002158
的位0
设置为 4 = GPIO 的模式 4通过计算,GPIO 130 应该位于 GPIO Bank 5 位 2 中(请检查数学)。
(假设数学正确)
检查
GPIO_OE
寄存器0x49056034
位2
以确保方向正确。 (0=输出 1=输入
)现在您可以在
0x4905603C
位2
处设置 DATA_OUT 或在0x49056038
处读取 DATA_IN位2
根据您的需要。一旦您验证 GPIO 设置正确并且您能够查看和查看这些值,您就可以在引导加载程序或内核中对其进行设置,以便它在启动时保持不变,或者您可以使用
mmap
或/sys/class/gpio/gpio130/..
(如果导出)来获取/设置值。Refer to OMAP35x Technical Reference Manual (Rev. W)
To use GPIO130 you need to make sure the register is in the correct mode for GPIO.
You can use
devmem2
to peek and poke the registers.[pg 778] Ensure bit
0
of0x48002158
is set to 4 = Mode 4 for GPIOBy that computation GPIO 130 should be in GPIO bank 5 bit 2 (plz check math).
(Assuming math is correct)
Check
GPIO_OE
register0x49056034
bit2
to ensure the direction is correct. (0=output 1=input
)Now you can set DATA_OUT at
0x4905603C
bit2
or read DATA_IN at0x49056038
bit2
as you need.Once you verify that the GPIO is setup correctly and you are able to peek and poke the values you can use either set it up in your boot-loader or the kernel so it sticks at startup or you can modify it in user space using
mmap
or/sys/class/gpio/gpio130/..
(if exported) to get/set the values.