ARM: shmobile: parse DT and configure pinmux early on kzm9g-reference
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Fri, 8 Feb 2013 18:38:31 +0000 (19:38 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 18 Mar 2013 12:27:02 +0000 (21:27 +0900)
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 <g.liakhovetski@gmx.de>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/board-kzm9g-reference.c

index caba1bb62f84f9947f6bb54147726b024353a4c3..add537c51b458b21abc709f9dae04d5ca48a469e 100644 (file)
@@ -47,6 +47,7 @@ static void __init kzm_init(void)
 {
        sh73a0_add_standard_devices_dt();
        pinctrl_register_mappings(kzm_pinctrl_map, ARRAY_SIZE(kzm_pinctrl_map));
+       sh73a0_pinmux_init();
 
 #ifdef CONFIG_CACHE_L2X0
        /* Early BRESP enable, Shared attribute override enable, 64K*8way */