diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-31 03:23:41 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-01-31 03:23:41 -0500 |
commit | bf9f6c8fcd390a349be2e57f813c0b54fb0d0578 (patch) | |
tree | ae98aa67ad534d9f01e0cdbc1d07c0ccefe57346 /arch/arm/mach-mx3 | |
parent | 4404117d745f2251c5d3c739c50f617e755dbe12 (diff) | |
parent | 53cdd3068b7b8e3a1a0e540ec42d9037296243b7 (diff) |
Merge branch 'imx-board-ifdefs' into imx-for-2.6.39
Diffstat (limited to 'arch/arm/mach-mx3')
-rw-r--r-- | arch/arm/mach-mx3/mach-mx31ads.c | 21 | ||||
-rw-r--r-- | arch/arm/mach-mx3/mach-pcm037_eet.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mx3/mach-pcm043.c | 10 |
3 files changed, 4 insertions, 29 deletions
diff --git a/arch/arm/mach-mx3/mach-mx31ads.c b/arch/arm/mach-mx3/mach-mx31ads.c index 88b97d62b57e..e40eb6e26940 100644 --- a/arch/arm/mach-mx3/mach-mx31ads.c +++ b/arch/arm/mach-mx3/mach-mx31ads.c | |||
@@ -73,8 +73,7 @@ | |||
73 | * This file contains the board-specific initialization routines. | 73 | * This file contains the board-specific initialization routines. |
74 | */ | 74 | */ |
75 | 75 | ||
76 | #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) | 76 | /* |
77 | /*! | ||
78 | * The serial port definition structure. | 77 | * The serial port definition structure. |
79 | */ | 78 | */ |
80 | static struct plat_serial8250_port serial_platform_data[] = { | 79 | static struct plat_serial8250_port serial_platform_data[] = { |
@@ -110,14 +109,7 @@ static int __init mxc_init_extuart(void) | |||
110 | { | 109 | { |
111 | return platform_device_register(&serial_device); | 110 | return platform_device_register(&serial_device); |
112 | } | 111 | } |
113 | #else | ||
114 | static inline int mxc_init_extuart(void) | ||
115 | { | ||
116 | return 0; | ||
117 | } | ||
118 | #endif | ||
119 | 112 | ||
120 | #if defined(CONFIG_SERIAL_IMX) || defined(CONFIG_SERIAL_IMX_MODULE) | ||
121 | static const struct imxuart_platform_data uart_pdata __initconst = { | 113 | static const struct imxuart_platform_data uart_pdata __initconst = { |
122 | .flags = IMXUART_HAVE_RTSCTS, | 114 | .flags = IMXUART_HAVE_RTSCTS, |
123 | }; | 115 | }; |
@@ -134,11 +126,6 @@ static inline void mxc_init_imx_uart(void) | |||
134 | mxc_iomux_setup_multiple_pins(uart_pins, ARRAY_SIZE(uart_pins), "uart-0"); | 126 | mxc_iomux_setup_multiple_pins(uart_pins, ARRAY_SIZE(uart_pins), "uart-0"); |
135 | imx31_add_imx_uart0(&uart_pdata); | 127 | imx31_add_imx_uart0(&uart_pdata); |
136 | } | 128 | } |
137 | #else /* !SERIAL_IMX */ | ||
138 | static inline void mxc_init_imx_uart(void) | ||
139 | { | ||
140 | } | ||
141 | #endif /* !SERIAL_IMX */ | ||
142 | 129 | ||
143 | static void mx31ads_expio_irq_handler(u32 irq, struct irq_desc *desc) | 130 | static void mx31ads_expio_irq_handler(u32 irq, struct irq_desc *desc) |
144 | { | 131 | { |
@@ -476,7 +463,6 @@ static struct wm8350_platform_data __initdata mx31_wm8350_pdata = { | |||
476 | }; | 463 | }; |
477 | #endif | 464 | #endif |
478 | 465 | ||
479 | #if defined(CONFIG_I2C_IMX) || defined(CONFIG_I2C_IMX_MODULE) | ||
480 | static struct i2c_board_info __initdata mx31ads_i2c1_devices[] = { | 466 | static struct i2c_board_info __initdata mx31ads_i2c1_devices[] = { |
481 | #ifdef CONFIG_MACH_MX31ADS_WM1133_EV1 | 467 | #ifdef CONFIG_MACH_MX31ADS_WM1133_EV1 |
482 | { | 468 | { |
@@ -497,11 +483,6 @@ static void mxc_init_i2c(void) | |||
497 | 483 | ||
498 | imx31_add_imx_i2c1(NULL); | 484 | imx31_add_imx_i2c1(NULL); |
499 | } | 485 | } |
500 | #else | ||
501 | static void mxc_init_i2c(void) | ||
502 | { | ||
503 | } | ||
504 | #endif | ||
505 | 486 | ||
506 | static unsigned int ssi_pins[] = { | 487 | static unsigned int ssi_pins[] = { |
507 | MX31_PIN_SFS5__SFS5, | 488 | MX31_PIN_SFS5__SFS5, |
diff --git a/arch/arm/mach-mx3/mach-pcm037_eet.c b/arch/arm/mach-mx3/mach-pcm037_eet.c index fda56545d2fd..df6fb07d037e 100644 --- a/arch/arm/mach-mx3/mach-pcm037_eet.c +++ b/arch/arm/mach-mx3/mach-pcm037_eet.c | |||
@@ -180,9 +180,7 @@ static int __init eet_init_devices(void) | |||
180 | 180 | ||
181 | /* SPI */ | 181 | /* SPI */ |
182 | spi_register_board_info(pcm037_spi_dev, ARRAY_SIZE(pcm037_spi_dev)); | 182 | spi_register_board_info(pcm037_spi_dev, ARRAY_SIZE(pcm037_spi_dev)); |
183 | #if defined(CONFIG_SPI_IMX) || defined(CONFIG_SPI_IMX_MODULE) | ||
184 | imx31_add_spi_imx0(&pcm037_spi1_pdata); | 183 | imx31_add_spi_imx0(&pcm037_spi1_pdata); |
185 | #endif | ||
186 | 184 | ||
187 | platform_device_register(&pcm037_gpio_keys_device); | 185 | platform_device_register(&pcm037_gpio_keys_device); |
188 | 186 | ||
diff --git a/arch/arm/mach-mx3/mach-pcm043.c b/arch/arm/mach-mx3/mach-pcm043.c index bcf83fc7e701..a515290f15fc 100644 --- a/arch/arm/mach-mx3/mach-pcm043.c +++ b/arch/arm/mach-mx3/mach-pcm043.c | |||
@@ -115,7 +115,6 @@ static const struct imxuart_platform_data uart_pdata __initconst = { | |||
115 | .flags = IMXUART_HAVE_RTSCTS, | 115 | .flags = IMXUART_HAVE_RTSCTS, |
116 | }; | 116 | }; |
117 | 117 | ||
118 | #if defined CONFIG_I2C_IMX || defined CONFIG_I2C_IMX_MODULE | ||
119 | static const struct imxi2c_platform_data pcm043_i2c0_data __initconst = { | 118 | static const struct imxi2c_platform_data pcm043_i2c0_data __initconst = { |
120 | .bitrate = 50000, | 119 | .bitrate = 50000, |
121 | }; | 120 | }; |
@@ -134,7 +133,6 @@ static struct i2c_board_info pcm043_i2c_devices[] = { | |||
134 | I2C_BOARD_INFO("pcf8563", 0x51), | 133 | I2C_BOARD_INFO("pcf8563", 0x51), |
135 | } | 134 | } |
136 | }; | 135 | }; |
137 | #endif | ||
138 | 136 | ||
139 | static struct platform_device *devices[] __initdata = { | 137 | static struct platform_device *devices[] __initdata = { |
140 | &pcm043_flash, | 138 | &pcm043_flash, |
@@ -312,13 +310,13 @@ static struct mxc_usbh_platform_data otg_pdata __initdata = { | |||
312 | .portsc = MXC_EHCI_MODE_UTMI, | 310 | .portsc = MXC_EHCI_MODE_UTMI, |
313 | .flags = MXC_EHCI_INTERFACE_DIFF_UNI, | 311 | .flags = MXC_EHCI_INTERFACE_DIFF_UNI, |
314 | }; | 312 | }; |
313 | #endif | ||
315 | 314 | ||
316 | static const struct mxc_usbh_platform_data usbh1_pdata __initconst = { | 315 | static const struct mxc_usbh_platform_data usbh1_pdata __initconst = { |
317 | .portsc = MXC_EHCI_MODE_SERIAL, | 316 | .portsc = MXC_EHCI_MODE_SERIAL, |
318 | .flags = MXC_EHCI_INTERFACE_SINGLE_UNI | MXC_EHCI_INTERNAL_PHY | | 317 | .flags = MXC_EHCI_INTERFACE_SINGLE_UNI | MXC_EHCI_INTERNAL_PHY | |
319 | MXC_EHCI_IPPUE_DOWN, | 318 | MXC_EHCI_IPPUE_DOWN, |
320 | }; | 319 | }; |
321 | #endif | ||
322 | 320 | ||
323 | static const struct fsl_usb2_platform_data otg_device_pdata __initconst = { | 321 | static const struct fsl_usb2_platform_data otg_device_pdata __initconst = { |
324 | .operating_mode = FSL_USB2_DR_DEVICE, | 322 | .operating_mode = FSL_USB2_DR_DEVICE, |
@@ -369,12 +367,10 @@ static void __init mxc_board_init(void) | |||
369 | 367 | ||
370 | imx35_add_imx_uart1(&uart_pdata); | 368 | imx35_add_imx_uart1(&uart_pdata); |
371 | 369 | ||
372 | #if defined CONFIG_I2C_IMX || defined CONFIG_I2C_IMX_MODULE | ||
373 | i2c_register_board_info(0, pcm043_i2c_devices, | 370 | i2c_register_board_info(0, pcm043_i2c_devices, |
374 | ARRAY_SIZE(pcm043_i2c_devices)); | 371 | ARRAY_SIZE(pcm043_i2c_devices)); |
375 | 372 | ||
376 | imx35_add_imx_i2c0(&pcm043_i2c0_data); | 373 | imx35_add_imx_i2c0(&pcm043_i2c0_data); |
377 | #endif | ||
378 | 374 | ||
379 | mxc_register_device(&mx3_ipu, &mx3_ipu_data); | 375 | mxc_register_device(&mx3_ipu, &mx3_ipu_data); |
380 | mxc_register_device(&mx3_fb, &mx3fb_pdata); | 376 | mxc_register_device(&mx3_fb, &mx3fb_pdata); |
@@ -386,9 +382,9 @@ static void __init mxc_board_init(void) | |||
386 | 382 | ||
387 | imx35_add_mxc_ehci_otg(&otg_pdata); | 383 | imx35_add_mxc_ehci_otg(&otg_pdata); |
388 | } | 384 | } |
389 | |||
390 | imx35_add_mxc_ehci_hs(&usbh1_pdata); | ||
391 | #endif | 385 | #endif |
386 | imx35_add_mxc_ehci_hs(&usbh1_pdata); | ||
387 | |||
392 | if (!otg_mode_host) | 388 | if (!otg_mode_host) |
393 | imx35_add_fsl_usb2_udc(&otg_device_pdata); | 389 | imx35_add_fsl_usb2_udc(&otg_device_pdata); |
394 | 390 | ||