From: Guennadi Liakhovetski Date: Fri, 8 Feb 2013 18:38:31 +0000 (+0100) Subject: ARM: shmobile: parse DT and configure pinmux early on kzm9g-reference X-Git-Tag: next-20130218~14^2^4~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1b62cf38e8f21064d53f840c7d64192f4542ea09;p=karo-tx-linux.git ARM: shmobile: parse DT and configure pinmux early on kzm9g-reference GPIOs can be provided by the pinctrl subsystem, which can be initialised by DT. Therefore DT has to be parsed before requesting GPIOs. Also non-DT pinmux has to be configured early. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Simon Horman --- diff --git a/arch/arm/mach-shmobile/board-kzm9g-reference.c b/arch/arm/mach-shmobile/board-kzm9g-reference.c index 6a1222e177d3..e3341529439e 100644 --- a/arch/arm/mach-shmobile/board-kzm9g-reference.c +++ b/arch/arm/mach-shmobile/board-kzm9g-reference.c @@ -34,6 +34,9 @@ static void __init kzm_init(void) { + sh73a0_add_standard_devices_dt(); + sh73a0_pinmux_init(); + /* enable SCIFA4 */ gpio_request(GPIO_FN_SCIFA4_TXD, NULL); gpio_request(GPIO_FN_SCIFA4_RXD, NULL); @@ -60,8 +63,6 @@ static void __init kzm_init(void) /* Early BRESP enable, Shared attribute override enable, 64K*8way */ l2x0_init(IOMEM(0xf0100000), 0x40460000, 0x82000fff); #endif - - sh73a0_add_standard_devices_dt(); } static void kzm9g_restart(char mode, const char *cmd)