Hi,
GPIO4 and GPIO5 register write failing:
I have enabled clocks for all GPIO with below code in u-boot evm.c file:
__raw_writel(0x102, CM_ALWON_GPIO_0_CLKCTRL);
while(__raw_readl(CM_ALWON_GPIO_0_CLKCTRL) != 0x102);
__raw_writel(0x102, CM_ALWON_GPIO_1_CLKCTRL);
while(__raw_readl(CM_ALWON_GPIO_1_CLKCTRL) != 0x102);
#define GPIO4_BASE 0x48420000
#define OMAP4_GPIO_IRQENABLE_SET_0 0x0034
__raw_writel(0x03C00000, GPIO4_BASE+OMAP4_GPIO_IRQENABLE_SET_0);
I'm able to write and read GPIO0,GPIO1,GPIO2 and GPIO3.But write to GPIO4 and GPIO5 failing.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
In kernel devices.c file ,also same issue.I'm able to write to GPIO0,GPIO1,GPIO2 and GPIO3.But write to GPIO4 and GPIO5 failing.:
#define GPIO_IRQENABLE_SET_0(x) TI81XX_L4_SLOW_IO_ADDRESS(x + 0x034)
#define TI811X_GPIO4_BASE 0x48420000
__raw_writel(0x03C00000, GPIO_IRQENABLE_SET_0(TI811X_GPIO4_BASE)