diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-05-09 09:05:57 -0400 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-07-21 21:12:34 -0400 |
commit | 3ab03d01a989e4d77ed6ba0bc8c2efd9211df7c8 (patch) | |
tree | c8cbe74df66bbbc4b5fceaad9796eacdf12f6aa7 /arch/arm | |
parent | aaf7eda80cb8371bbf26d7171241cfb94b787b0f (diff) |
ARM: shmobile: r8a7779: Add pin control device to device tree
Add a pfc node to the r8a7779 device tree and remove manual pinmux
initialization from the corresponding board files.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/boot/dts/r8a7779.dtsi | 5 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-marzen-reference.c | 17 |
2 files changed, 13 insertions, 9 deletions
diff --git a/arch/arm/boot/dts/r8a7779.dtsi b/arch/arm/boot/dts/r8a7779.dtsi index 7f146c6bf756..9dfc438451ef 100644 --- a/arch/arm/boot/dts/r8a7779.dtsi +++ b/arch/arm/boot/dts/r8a7779.dtsi | |||
@@ -101,6 +101,11 @@ | |||
101 | interrupts = <0 81 0x4>; | 101 | interrupts = <0 81 0x4>; |
102 | }; | 102 | }; |
103 | 103 | ||
104 | pfc: pfc@fffc0000 { | ||
105 | compatible = "renesas,pfc-r8a7779"; | ||
106 | reg = <0xfffc0000 0x23c>; | ||
107 | }; | ||
108 | |||
104 | thermal@ffc48000 { | 109 | thermal@ffc48000 { |
105 | compatible = "renesas,rcar-thermal"; | 110 | compatible = "renesas,rcar-thermal"; |
106 | reg = <0xffc48000 0x38>; | 111 | reg = <0xffc48000 0x38>; |
diff --git a/arch/arm/mach-shmobile/board-marzen-reference.c b/arch/arm/mach-shmobile/board-marzen-reference.c index 480d882e42c7..94804f3cec5b 100644 --- a/arch/arm/mach-shmobile/board-marzen-reference.c +++ b/arch/arm/mach-shmobile/board-marzen-reference.c | |||
@@ -28,24 +28,24 @@ | |||
28 | 28 | ||
29 | static const struct pinctrl_map marzen_pinctrl_map[] = { | 29 | static const struct pinctrl_map marzen_pinctrl_map[] = { |
30 | /* SCIF2 (CN18: DEBUG0) */ | 30 | /* SCIF2 (CN18: DEBUG0) */ |
31 | PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.2", "pfc-r8a7779", | 31 | PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.2", "fffc0000.pfc", |
32 | "scif2_data_c", "scif2"), | 32 | "scif2_data_c", "scif2"), |
33 | /* SCIF4 (CN19: DEBUG1) */ | 33 | /* SCIF4 (CN19: DEBUG1) */ |
34 | PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.4", "pfc-r8a7779", | 34 | PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.4", "fffc0000.pfc", |
35 | "scif4_data", "scif4"), | 35 | "scif4_data", "scif4"), |
36 | /* SDHI0 */ | 36 | /* SDHI0 */ |
37 | PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "pfc-r8a7779", | 37 | PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "fffc0000.pfc", |
38 | "sdhi0_data4", "sdhi0"), | 38 | "sdhi0_data4", "sdhi0"), |
39 | PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "pfc-r8a7779", | 39 | PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "fffc0000.pfc", |
40 | "sdhi0_ctrl", "sdhi0"), | 40 | "sdhi0_ctrl", "sdhi0"), |
41 | PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "pfc-r8a7779", | 41 | PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "fffc0000.pfc", |
42 | "sdhi0_cd", "sdhi0"), | 42 | "sdhi0_cd", "sdhi0"), |
43 | PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "pfc-r8a7779", | 43 | PIN_MAP_MUX_GROUP_DEFAULT("sh_mobile_sdhi.0", "fffc0000.pfc", |
44 | "sdhi0_wp", "sdhi0"), | 44 | "sdhi0_wp", "sdhi0"), |
45 | /* SMSC */ | 45 | /* SMSC */ |
46 | PIN_MAP_MUX_GROUP_DEFAULT("smsc911x", "pfc-r8a7779", | 46 | PIN_MAP_MUX_GROUP_DEFAULT("smsc911x", "fffc0000.pfc", |
47 | "intc_irq1_b", "intc"), | 47 | "intc_irq1_b", "intc"), |
48 | PIN_MAP_MUX_GROUP_DEFAULT("smsc911x", "pfc-r8a7779", | 48 | PIN_MAP_MUX_GROUP_DEFAULT("smsc911x", "fffc0000.pfc", |
49 | "lbsc_ex_cs0", "lbsc"), | 49 | "lbsc_ex_cs0", "lbsc"), |
50 | }; | 50 | }; |
51 | 51 | ||
@@ -53,7 +53,6 @@ static void __init marzen_init(void) | |||
53 | { | 53 | { |
54 | pinctrl_register_mappings(marzen_pinctrl_map, | 54 | pinctrl_register_mappings(marzen_pinctrl_map, |
55 | ARRAY_SIZE(marzen_pinctrl_map)); | 55 | ARRAY_SIZE(marzen_pinctrl_map)); |
56 | r8a7779_pinmux_init(); | ||
57 | 56 | ||
58 | r8a7779_add_standard_devices_dt(); | 57 | r8a7779_add_standard_devices_dt(); |
59 | } | 58 | } |