diff options
author | Ian Molton <spyro@f2s.com> | 2008-08-09 16:50:28 -0400 |
---|---|---|
committer | Ian Molton <spyro@f2s.com> | 2008-08-12 14:13:31 -0400 |
commit | 908cbc10135755ea055feaa6a8ec209edfe489be (patch) | |
tree | fd14374e37d5409eeb592769a1a00b26bbc23178 /arch/arm | |
parent | 2836548826b4187ba770b14d36bc40d52a76b49c (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')
-rw-r--r-- | arch/arm/mach-pxa/eseries.c | 24 |
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 | ||
64 | static 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 */ |
65 | static void __init eseries_fixup(struct machine_desc *desc, | 83 | static 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 | ||
100 | static 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, |
147 | MACHINE_END | 171 | MACHINE_END |
148 | #endif | 172 | #endif |