diff options
Diffstat (limited to 'arch/arm/mach-mx2/mx27ads.c')
-rw-r--r-- | arch/arm/mach-mx2/mx27ads.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/arch/arm/mach-mx2/mx27ads.c b/arch/arm/mach-mx2/mx27ads.c index 2b5c67f54571..4a3b097adc12 100644 --- a/arch/arm/mach-mx2/mx27ads.c +++ b/arch/arm/mach-mx2/mx27ads.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #include <asm/mach/map.h> | 31 | #include <asm/mach/map.h> |
32 | #include <mach/gpio.h> | 32 | #include <mach/gpio.h> |
33 | #include <mach/imx-uart.h> | 33 | #include <mach/imx-uart.h> |
34 | #include <mach/iomux-mx1-mx2.h> | 34 | #include <mach/iomux.h> |
35 | #include <mach/board-mx27ads.h> | 35 | #include <mach/board-mx27ads.h> |
36 | 36 | ||
37 | #include "devices.h" | 37 | #include "devices.h" |
@@ -135,6 +135,7 @@ static int uart_mxc_port3_exit(struct platform_device *pdev) | |||
135 | { | 135 | { |
136 | mxc_gpio_release_multiple_pins(mxc_uart3_pins, | 136 | mxc_gpio_release_multiple_pins(mxc_uart3_pins, |
137 | ARRAY_SIZE(mxc_uart3_pins)); | 137 | ARRAY_SIZE(mxc_uart3_pins)); |
138 | return 0; | ||
138 | } | 139 | } |
139 | 140 | ||
140 | static int mxc_uart4_pins[] = { | 141 | static int mxc_uart4_pins[] = { |
@@ -179,6 +180,7 @@ static int uart_mxc_port5_exit(struct platform_device *pdev) | |||
179 | 180 | ||
180 | static struct platform_device *platform_devices[] __initdata = { | 181 | static struct platform_device *platform_devices[] __initdata = { |
181 | &mx27ads_nor_mtd_device, | 182 | &mx27ads_nor_mtd_device, |
183 | &mxc_fec_device, | ||
182 | }; | 184 | }; |
183 | 185 | ||
184 | static int mxc_fec_pins[] = { | 186 | static int mxc_fec_pins[] = { |
@@ -196,7 +198,7 @@ static int mxc_fec_pins[] = { | |||
196 | PD11_AOUT_FEC_TX_CLK, | 198 | PD11_AOUT_FEC_TX_CLK, |
197 | PD12_AOUT_FEC_RXD0, | 199 | PD12_AOUT_FEC_RXD0, |
198 | PD13_AOUT_FEC_RX_DV, | 200 | PD13_AOUT_FEC_RX_DV, |
199 | PD14_AOUT_FEC_CLR, | 201 | PD14_AOUT_FEC_RX_CLK, |
200 | PD15_AOUT_FEC_COL, | 202 | PD15_AOUT_FEC_COL, |
201 | PD16_AIN_FEC_TX_ER, | 203 | PD16_AIN_FEC_TX_ER, |
202 | PF23_AIN_FEC_TX_EN | 204 | PF23_AIN_FEC_TX_EN |
@@ -208,12 +210,6 @@ static void gpio_fec_active(void) | |||
208 | ARRAY_SIZE(mxc_fec_pins), "FEC"); | 210 | ARRAY_SIZE(mxc_fec_pins), "FEC"); |
209 | } | 211 | } |
210 | 212 | ||
211 | static void gpio_fec_inactive(void) | ||
212 | { | ||
213 | mxc_gpio_release_multiple_pins(mxc_fec_pins, | ||
214 | ARRAY_SIZE(mxc_fec_pins)); | ||
215 | } | ||
216 | |||
217 | static struct imxuart_platform_data uart_pdata[] = { | 213 | static struct imxuart_platform_data uart_pdata[] = { |
218 | { | 214 | { |
219 | .init = uart_mxc_port0_init, | 215 | .init = uart_mxc_port0_init, |
@@ -263,11 +259,10 @@ static void __init mx27ads_timer_init(void) | |||
263 | if ((__raw_readw(PBC_VERSION_REG) & CKIH_27MHZ_BIT_SET) == 0) | 259 | if ((__raw_readw(PBC_VERSION_REG) & CKIH_27MHZ_BIT_SET) == 0) |
264 | fref = 27000000; | 260 | fref = 27000000; |
265 | 261 | ||
266 | mxc_clocks_init(fref); | 262 | mx27_clocks_init(fref); |
267 | mxc_timer_init("gpt_clk.0"); | ||
268 | } | 263 | } |
269 | 264 | ||
270 | struct sys_timer mx27ads_timer = { | 265 | static struct sys_timer mx27ads_timer = { |
271 | .init = mx27ads_timer_init, | 266 | .init = mx27ads_timer_init, |
272 | }; | 267 | }; |
273 | 268 | ||
@@ -280,7 +275,7 @@ static struct map_desc mx27ads_io_desc[] __initdata = { | |||
280 | }, | 275 | }, |
281 | }; | 276 | }; |
282 | 277 | ||
283 | void __init mx27ads_map_io(void) | 278 | static void __init mx27ads_map_io(void) |
284 | { | 279 | { |
285 | mxc_map_io(); | 280 | mxc_map_io(); |
286 | iotable_init(mx27ads_io_desc, ARRAY_SIZE(mx27ads_io_desc)); | 281 | iotable_init(mx27ads_io_desc, ARRAY_SIZE(mx27ads_io_desc)); |