diff options
Diffstat (limited to 'arch/arm/mach-imx/mach-pcm038.c')
-rw-r--r-- | arch/arm/mach-imx/mach-pcm038.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/arm/mach-imx/mach-pcm038.c b/arch/arm/mach-imx/mach-pcm038.c index 9212e8f3700..49a97ce0742 100644 --- a/arch/arm/mach-imx/mach-pcm038.c +++ b/arch/arm/mach-imx/mach-pcm038.c | |||
@@ -43,7 +43,7 @@ | |||
43 | #include "devices-imx27.h" | 43 | #include "devices-imx27.h" |
44 | #include "devices.h" | 44 | #include "devices.h" |
45 | 45 | ||
46 | static int pcm038_pins[] = { | 46 | static const int pcm038_pins[] __initconst = { |
47 | /* UART1 */ | 47 | /* UART1 */ |
48 | PE12_PF_UART1_TXD, | 48 | PE12_PF_UART1_TXD, |
49 | PE13_PF_UART1_RXD, | 49 | PE13_PF_UART1_RXD, |
@@ -173,7 +173,6 @@ pcm038_nand_board_info __initconst = { | |||
173 | static struct platform_device *platform_devices[] __initdata = { | 173 | static struct platform_device *platform_devices[] __initdata = { |
174 | &pcm038_nor_mtd_device, | 174 | &pcm038_nor_mtd_device, |
175 | &mxc_w1_master_device, | 175 | &mxc_w1_master_device, |
176 | &mxc_fec_device, | ||
177 | &pcm038_sram_mtd_device, | 176 | &pcm038_sram_mtd_device, |
178 | &mxc_wdt, | 177 | &mxc_wdt, |
179 | }; | 178 | }; |
@@ -257,7 +256,7 @@ static struct regulator_init_data cam_data = { | |||
257 | .consumer_supplies = cam_consumers, | 256 | .consumer_supplies = cam_consumers, |
258 | }; | 257 | }; |
259 | 258 | ||
260 | struct mc13783_regulator_init_data pcm038_regulators[] = { | 259 | static struct mc13783_regulator_init_data pcm038_regulators[] = { |
261 | { | 260 | { |
262 | .id = MC13783_REGU_VCAM, | 261 | .id = MC13783_REGU_VCAM, |
263 | .init_data = &cam_data, | 262 | .init_data = &cam_data, |
@@ -309,7 +308,7 @@ static void __init pcm038_init(void) | |||
309 | i2c_register_board_info(1, pcm038_i2c_devices, | 308 | i2c_register_board_info(1, pcm038_i2c_devices, |
310 | ARRAY_SIZE(pcm038_i2c_devices)); | 309 | ARRAY_SIZE(pcm038_i2c_devices)); |
311 | 310 | ||
312 | imx27_add_i2c_imx1(&pcm038_i2c1_data); | 311 | imx27_add_imx_i2c(1, &pcm038_i2c1_data); |
313 | 312 | ||
314 | /* PE18 for user-LED D40 */ | 313 | /* PE18 for user-LED D40 */ |
315 | mxc_gpio_mode(GPIO_PORTE | 18 | GPIO_GPIO | GPIO_OUT); | 314 | mxc_gpio_mode(GPIO_PORTE | 18 | GPIO_GPIO | GPIO_OUT); |
@@ -325,6 +324,7 @@ static void __init pcm038_init(void) | |||
325 | 324 | ||
326 | mxc_register_device(&mxc_usbh2, &usbh2_pdata); | 325 | mxc_register_device(&mxc_usbh2, &usbh2_pdata); |
327 | 326 | ||
327 | imx27_add_fec(NULL); | ||
328 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); | 328 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); |
329 | 329 | ||
330 | #ifdef CONFIG_MACH_PCM970_BASEBOARD | 330 | #ifdef CONFIG_MACH_PCM970_BASEBOARD |
@@ -342,8 +342,6 @@ static struct sys_timer pcm038_timer = { | |||
342 | }; | 342 | }; |
343 | 343 | ||
344 | MACHINE_START(PCM038, "phyCORE-i.MX27") | 344 | MACHINE_START(PCM038, "phyCORE-i.MX27") |
345 | .phys_io = MX27_AIPI_BASE_ADDR, | ||
346 | .io_pg_offst = ((MX27_AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, | ||
347 | .boot_params = MX27_PHYS_OFFSET + 0x100, | 345 | .boot_params = MX27_PHYS_OFFSET + 0x100, |
348 | .map_io = mx27_map_io, | 346 | .map_io = mx27_map_io, |
349 | .init_irq = mx27_init_irq, | 347 | .init_irq = mx27_init_irq, |