aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/eseries.c
diff options
context:
space:
mode:
authorIan Molton <spyro@f2s.com>2008-08-09 16:50:28 -0400
committerIan Molton <spyro@f2s.com>2008-08-12 14:13:31 -0400
commit908cbc10135755ea055feaa6a8ec209edfe489be (patch)
treefd14374e37d5409eeb592769a1a00b26bbc23178 /arch/arm/mach-pxa/eseries.c
parent2836548826b4187ba770b14d36bc40d52a76b49c (diff)
[ARM] e400 config use MFP
This patch updates e400 to use the new MFP GPIO setup code. Signed-off-by: Ian Molton <spyro@f2s.com>
Diffstat (limited to 'arch/arm/mach-pxa/eseries.c')
-rw-r--r--arch/arm/mach-pxa/eseries.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/eseries.c b/arch/arm/mach-pxa/eseries.c
index d27009992510..001a252bd514 100644
--- a/arch/arm/mach-pxa/eseries.c
+++ b/arch/arm/mach-pxa/eseries.c
@@ -61,6 +61,24 @@ static unsigned long e740_pin_config[] __initdata = {
61 GPIO0_GPIO | WAKEUP_ON_EDGE_RISE, 61 GPIO0_GPIO | WAKEUP_ON_EDGE_RISE,
62}; 62};
63 63
64static unsigned long e400_pin_config[] __initdata = {
65 /* Chip selects */
66 GPIO15_nCS_1, /* CS1 - Flash */
67 GPIO80_nCS_4, /* CS4 - TMIO */
68
69 /* Clocks */
70 GPIO12_32KHz,
71
72 /* BTUART */
73 GPIO42_BTUART_RXD,
74 GPIO43_BTUART_TXD,
75 GPIO44_BTUART_CTS,
76 GPIO45_GPIO, /* Used by TMIO for #SUSPEND */
77
78 /* wakeup */
79 GPIO0_GPIO | WAKEUP_ON_EDGE_RISE,
80};
81
64/* Only e800 has 128MB RAM */ 82/* Only e800 has 128MB RAM */
65static void __init eseries_fixup(struct machine_desc *desc, 83static void __init eseries_fixup(struct machine_desc *desc,
66 struct tag *tags, char **cmdline, struct meminfo *mi) 84 struct tag *tags, char **cmdline, struct meminfo *mi)
@@ -79,6 +97,11 @@ static void __init e740_init(void)
79 pxa2xx_mfp_config(ARRAY_AND_SIZE(e740_pin_config)); 97 pxa2xx_mfp_config(ARRAY_AND_SIZE(e740_pin_config));
80} 98}
81 99
100static void __init e400_init(void)
101{
102 pxa2xx_mfp_config(ARRAY_AND_SIZE(e400_pin_config));
103}
104
82/* e-series machine definitions */ 105/* e-series machine definitions */
83 106
84#ifdef CONFIG_MACH_E330 107#ifdef CONFIG_MACH_E330
@@ -143,6 +166,7 @@ MACHINE_START(E400, "Toshiba e400")
143 .map_io = pxa_map_io, 166 .map_io = pxa_map_io,
144 .init_irq = pxa25x_init_irq, 167 .init_irq = pxa25x_init_irq,
145 .fixup = eseries_fixup, 168 .fixup = eseries_fixup,
169 .init_machine = e400_init,
146 .timer = &pxa_timer, 170 .timer = &pxa_timer,
147MACHINE_END 171MACHINE_END
148#endif 172#endif