diff options
Diffstat (limited to 'arch/arm/mach-imx/mach-pca100.c')
-rw-r--r-- | arch/arm/mach-imx/mach-pca100.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/arch/arm/mach-imx/mach-pca100.c b/arch/arm/mach-imx/mach-pca100.c index 23c9e1f37b9c..8c720d44602a 100644 --- a/arch/arm/mach-imx/mach-pca100.c +++ b/arch/arm/mach-imx/mach-pca100.c | |||
@@ -38,7 +38,6 @@ | |||
38 | #include <mach/iomux-mx27.h> | 38 | #include <mach/iomux-mx27.h> |
39 | #include <asm/mach/time.h> | 39 | #include <asm/mach/time.h> |
40 | #include <mach/audmux.h> | 40 | #include <mach/audmux.h> |
41 | #include <mach/ssi.h> | ||
42 | #include <mach/mxc_nand.h> | 41 | #include <mach/mxc_nand.h> |
43 | #include <mach/irqs.h> | 42 | #include <mach/irqs.h> |
44 | #include <mach/mmc.h> | 43 | #include <mach/mmc.h> |
@@ -55,7 +54,7 @@ | |||
55 | #define SPI1_SS1 (GPIO_PORTD + 27) | 54 | #define SPI1_SS1 (GPIO_PORTD + 27) |
56 | #define SD2_CD (GPIO_PORTC + 29) | 55 | #define SD2_CD (GPIO_PORTC + 29) |
57 | 56 | ||
58 | static int pca100_pins[] = { | 57 | static const int pca100_pins[] __initconst = { |
59 | /* UART1 */ | 58 | /* UART1 */ |
60 | PE12_PF_UART1_TXD, | 59 | PE12_PF_UART1_TXD, |
61 | PE13_PF_UART1_RXD, | 60 | PE13_PF_UART1_RXD, |
@@ -174,7 +173,6 @@ pca100_nand_board_info __initconst = { | |||
174 | 173 | ||
175 | static struct platform_device *platform_devices[] __initdata = { | 174 | static struct platform_device *platform_devices[] __initdata = { |
176 | &mxc_w1_master_device, | 175 | &mxc_w1_master_device, |
177 | &mxc_fec_device, | ||
178 | &mxc_wdt, | 176 | &mxc_wdt, |
179 | }; | 177 | }; |
180 | 178 | ||
@@ -193,11 +191,9 @@ static struct i2c_board_info pca100_i2c_devices[] = { | |||
193 | I2C_BOARD_INFO("at24", 0x52), /* E0=0, E1=1, E2=0 */ | 191 | I2C_BOARD_INFO("at24", 0x52), /* E0=0, E1=1, E2=0 */ |
194 | .platform_data = &board_eeprom, | 192 | .platform_data = &board_eeprom, |
195 | }, { | 193 | }, { |
196 | I2C_BOARD_INFO("rtc-pcf8563", 0x51), | 194 | I2C_BOARD_INFO("pcf8563", 0x51), |
197 | .type = "pcf8563" | ||
198 | }, { | 195 | }, { |
199 | I2C_BOARD_INFO("lm75", 0x4a), | 196 | I2C_BOARD_INFO("lm75", 0x4a), |
200 | .type = "lm75" | ||
201 | } | 197 | } |
202 | }; | 198 | }; |
203 | 199 | ||
@@ -252,7 +248,7 @@ static void pca100_ac97_cold_reset(struct snd_ac97 *ac97) | |||
252 | msleep(2); | 248 | msleep(2); |
253 | } | 249 | } |
254 | 250 | ||
255 | static struct imx_ssi_platform_data pca100_ssi_pdata = { | 251 | static const struct imx_ssi_platform_data pca100_ssi_pdata __initconst = { |
256 | .ac97_reset = pca100_ac97_cold_reset, | 252 | .ac97_reset = pca100_ac97_cold_reset, |
257 | .ac97_warm_reset = pca100_ac97_warm_reset, | 253 | .ac97_warm_reset = pca100_ac97_warm_reset, |
258 | .flags = IMX_SSI_USE_AC97, | 254 | .flags = IMX_SSI_USE_AC97, |
@@ -389,7 +385,7 @@ static void __init pca100_init(void) | |||
389 | if (ret) | 385 | if (ret) |
390 | printk(KERN_ERR "pca100: Failed to setup pins (%d)\n", ret); | 386 | printk(KERN_ERR "pca100: Failed to setup pins (%d)\n", ret); |
391 | 387 | ||
392 | mxc_register_device(&imx_ssi_device0, &pca100_ssi_pdata); | 388 | imx27_add_imx_ssi(0, &pca100_ssi_pdata); |
393 | 389 | ||
394 | imx27_add_imx_uart0(&uart_pdata); | 390 | imx27_add_imx_uart0(&uart_pdata); |
395 | 391 | ||
@@ -401,7 +397,7 @@ static void __init pca100_init(void) | |||
401 | i2c_register_board_info(1, pca100_i2c_devices, | 397 | i2c_register_board_info(1, pca100_i2c_devices, |
402 | ARRAY_SIZE(pca100_i2c_devices)); | 398 | ARRAY_SIZE(pca100_i2c_devices)); |
403 | 399 | ||
404 | imx27_add_i2c_imx1(&pca100_i2c1_data); | 400 | imx27_add_imx_i2c(1, &pca100_i2c1_data); |
405 | 401 | ||
406 | #if defined(CONFIG_SPI_IMX) || defined(CONFIG_SPI_IMX_MODULE) | 402 | #if defined(CONFIG_SPI_IMX) || defined(CONFIG_SPI_IMX_MODULE) |
407 | mxc_gpio_mode(GPIO_PORTD | 28 | GPIO_GPIO | GPIO_IN); | 403 | mxc_gpio_mode(GPIO_PORTD | 28 | GPIO_GPIO | GPIO_IN); |
@@ -436,6 +432,7 @@ static void __init pca100_init(void) | |||
436 | 432 | ||
437 | mxc_register_device(&mxc_fb_device, &pca100_fb_data); | 433 | mxc_register_device(&mxc_fb_device, &pca100_fb_data); |
438 | 434 | ||
435 | imx27_add_fec(NULL); | ||
439 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); | 436 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); |
440 | } | 437 | } |
441 | 438 | ||
@@ -449,8 +446,6 @@ static struct sys_timer pca100_timer = { | |||
449 | }; | 446 | }; |
450 | 447 | ||
451 | MACHINE_START(PCA100, "phyCARD-i.MX27") | 448 | MACHINE_START(PCA100, "phyCARD-i.MX27") |
452 | .phys_io = MX27_AIPI_BASE_ADDR, | ||
453 | .io_pg_offst = ((MX27_AIPI_BASE_ADDR_VIRT) >> 18) & 0xfffc, | ||
454 | .boot_params = MX27_PHYS_OFFSET + 0x100, | 449 | .boot_params = MX27_PHYS_OFFSET + 0x100, |
455 | .map_io = mx27_map_io, | 450 | .map_io = mx27_map_io, |
456 | .init_irq = mx27_init_irq, | 451 | .init_irq = mx27_init_irq, |