From: Laurent Pinchart Date: Wed, 17 Apr 2013 23:18:41 +0000 (+0200) Subject: ARM: shmobile: bonito: Register pinctrl mapping for BSC X-Git-Tag: next-20130527~8^2^13~48 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=43b4eabf8d04753fc00ba54e0f957b8f0db66119;p=karo-tx-linux.git ARM: shmobile: bonito: Register pinctrl mapping for BSC Replace the GPIO-based BSC pinmux configuration by a pinctrl mapping. Signed-off-by: Laurent Pinchart Signed-off-by: Simon Horman --- diff --git a/arch/arm/mach-shmobile/board-bonito.c b/arch/arm/mach-shmobile/board-bonito.c index 5076f4d5067b..2781c7fd591a 100644 --- a/arch/arm/mach-shmobile/board-bonito.c +++ b/arch/arm/mach-shmobile/board-bonito.c @@ -376,6 +376,12 @@ static void __init bonito_map_io(void) */ static const struct pinctrl_map fpga_pinctrl_map[] = { /* FPGA */ + PIN_MAP_MUX_GROUP_DEFAULT("pfc-r8a7740", "pfc-r8a7740", + "bsc_cs5a_0", "bsc"), + PIN_MAP_MUX_GROUP_DEFAULT("pfc-r8a7740", "pfc-r8a7740", + "bsc_cs5b", "bsc"), + PIN_MAP_MUX_GROUP_DEFAULT("pfc-r8a7740", "pfc-r8a7740", + "bsc_cs6a", "bsc"), PIN_MAP_MUX_GROUP_DEFAULT("pfc-r8a7740", "pfc-r8a7740", "intc_irq10", "intc"), }; @@ -419,13 +425,6 @@ static void __init bonito_init(void) u16 bsw3; u16 bsw4; - /* - * FPGA - */ - gpio_request(GPIO_FN_CS5B, NULL); - gpio_request(GPIO_FN_CS6A, NULL); - gpio_request(GPIO_FN_CS5A_PORT105, NULL); - val = bonito_fpga_read(BVERR); pr_info("bonito version: cpu %02x, base %02x\n", ((val >> 8) & 0xFF),