Android:如何启用 CONFIG_OMAP_MUX beagleboard?

发布于 2025-01-01 09:58:21 字数 108 浏览 5 评论 0原文

我使用的是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吻风 2025-01-08 09:58:21

请参阅 OMAP35x 技术参考手册 (Rev. W)

要使用 GPIO130,您需要需要确保寄存器处于正确的 GPIO 模式。
您可以使用 devmem2 来查看和查看寄存器。

[第 778 页] 确保 0x48002158 的位 0 设置为 4 = GPIO 的模式 4

每个GPIO模块提供32个专用通用引脚与输入
和输出能力;因此,通用接口支持
最多 192 (6 x 32) 个引脚。 - [第3358页]

通过计算,GPIO 130 应该位于 GPIO Bank 5 位 2 中(请检查数学)。

(假设数学正确)
检查GPIO_OE寄存器0x490560342以确保方向正确。 (0=输出 1=输入)

现在您可以在 0x4905603C2 处设置 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 of 0x48002158 is set to 4 = Mode 4 for GPIO

Each GPIO module provides 32 dedicated general-purpose pins with input
and output capabilities; thus, the general-purpose interface supports
up to 192 (6 x 32) pins. - [pg 3358]

By that computation GPIO 130 should be in GPIO bank 5 bit 2 (plz check math).

(Assuming math is correct)
Check GPIO_OE register 0x49056034 bit 2 to ensure the direction is correct. (0=output 1=input)

Now you can set DATA_OUT at 0x4905603C bit 2 or read DATA_IN at 0x49056038 bit 2 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文