aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-05-09 11:41:59 -0400
committerSimon Horman <horms+renesas@verge.net.au>2013-07-21 21:12:37 -0400
commit5d244563da5326d66ca839b06dbc6f632d2f24df (patch)
tree5bcf4ed462b435c21aa25359e87024a222db52da
parent3f59007e8efc29bb6cce08329bf010bcd9b19101 (diff)
ARM: shmobile: armadillo-reference: Move pinctrl mappings to device tree
Replace the pinctrl mappings in board code by device tree mappings. For devices that are still instantiated from board code reference the mappings as the default pin controller state to apply them at boot time. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
-rw-r--r--arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts10
-rw-r--r--arch/arm/mach-shmobile/board-armadillo800eva-reference.c9
2 files changed, 10 insertions, 9 deletions
diff --git a/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts b/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts
index 09ea22c26359..4a7ae32d4718 100644
--- a/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts
+++ b/arch/arm/boot/dts/r8a7740-armadillo800eva-reference.dts
@@ -43,3 +43,13 @@
43 interrupts = <2 0>; /* IRQ10: hwirq 2 on irqpin1 */ 43 interrupts = <2 0>; /* IRQ10: hwirq 2 on irqpin1 */
44 }; 44 };
45}; 45};
46
47&pfc {
48 pinctrl-0 = <&scifa1_pins>;
49 pinctrl-names = "default";
50
51 scifa1_pins: scifa1 {
52 renesas,groups = "scifa1_data";
53 renesas,function = "scifa1";
54 };
55};
diff --git a/arch/arm/mach-shmobile/board-armadillo800eva-reference.c b/arch/arm/mach-shmobile/board-armadillo800eva-reference.c
index f25b6aaba2a0..4ddd29995f1d 100644
--- a/arch/arm/mach-shmobile/board-armadillo800eva-reference.c
+++ b/arch/arm/mach-shmobile/board-armadillo800eva-reference.c
@@ -24,7 +24,6 @@
24#include <linux/kernel.h> 24#include <linux/kernel.h>
25#include <linux/gpio.h> 25#include <linux/gpio.h>
26#include <linux/io.h> 26#include <linux/io.h>
27#include <linux/pinctrl/machine.h>
28#include <mach/common.h> 27#include <mach/common.h>
29#include <mach/r8a7740.h> 28#include <mach/r8a7740.h>
30#include <asm/mach/arch.h> 29#include <asm/mach/arch.h>
@@ -119,12 +118,6 @@
119 * usbhsf_power_ctrl() 118 * usbhsf_power_ctrl()
120 */ 119 */
121 120
122static const struct pinctrl_map eva_pinctrl_map[] = {
123 /* SCIFA1 */
124 PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.1", "e6050000.pfc",
125 "scifa1_data", "scifa1"),
126};
127
128static void __init eva_clock_init(void) 121static void __init eva_clock_init(void)
129{ 122{
130 struct clk *system = clk_get(NULL, "system_clk"); 123 struct clk *system = clk_get(NULL, "system_clk");
@@ -169,8 +162,6 @@ static void __init eva_init(void)
169 r8a7740_clock_init(MD_CK0 | MD_CK2); 162 r8a7740_clock_init(MD_CK0 | MD_CK2);
170 eva_clock_init(); 163 eva_clock_init();
171 164
172 pinctrl_register_mappings(eva_pinctrl_map, ARRAY_SIZE(eva_pinctrl_map));
173
174 r8a7740_meram_workaround(); 165 r8a7740_meram_workaround();
175 166
176#ifdef CONFIG_CACHE_L2X0 167#ifdef CONFIG_CACHE_L2X0