Dear,
I have been trying to get understand the GPIO control for linux-2.6.29-rc3.
I had reference the OMAP35x EVM Rev D, but our target dosn't to connect TWL4030 Power Module.
GPIO_126 connected by MMC Card detect PIN.
I don't know how to use GPIO Control, but at the linux-2.6.22-18, MMC card used the GPIO MUX_MODE4.
Added at the "./include/asm/arch/omap34xx.h"
#define CONTROL_PADCONF_MMC1_DAT4 CONTROL_REG32_34XX(0x150) /* GPIO_126 for MMC Card detect*/
Added at the "./arch/arm/mach-omap2/board-omap3evm.c"
ptr = (u32 *)(&CONTROL_PADCONF_MMC1_DAT4);
*ptr |= (u32)(IO_PAD_WAKEUPENABLE |
IO_PAD_OFFPULLUDENABLE | /* Pull up enable */
IO_PAD_OFFOUTENABLE | /* Input enable */
IO_PAD_OFFENABLE |
IO_PAD_INPUTENABLE |
IO_PAD_PULLUDENABLE |
IO_PAD_MUXMODE4);
Unfortunately, at the linux-2.6.29-rc3, I don't know how to configure GPIO setting.
Reference: mux.c, mux.h, gpio.c -> omap_cfg_regs()
Registered: omap_cfg_reg(P27_34XX_GPIO126);
If you know, please let me your adivce.
Thanks