diff --git a/arch/arm/mach-sunxi/board.c b/arch/arm/mach-sunxi/board.c index 7ac8360..0484e7a 100644 --- a/arch/arm/mach-sunxi/board.c +++ b/arch/arm/mach-sunxi/board.c @@ -23,6 +23,7 @@ #include #include #include +#include #include @@ -65,6 +66,11 @@ struct mm_region *mem_map = sunxi_mem_map; static int gpio_init(void) { +#if defined(CONFIG_MACH_SUNXI_H3_H5) + /* enable R_PIO GPIO access */ + prcm_apb0_enable(PRCM_APB0_GATE_PIO); +#endif + #if CONFIG_CONS_INDEX == 1 && defined(CONFIG_UART0_PORT_F) #if defined(CONFIG_MACH_SUN4I) || \ defined(CONFIG_MACH_SUN7I) || \