aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/mach-pcm043.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-06-23 05:49:34 -0400
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-06-30 03:01:00 -0400
commit6eafde5f02b1f34b7e083d1d6522f40e850bf355 (patch)
tree67aa1fe1d1cfdff60b1bfcf95ee697167e19f3a1 /arch/arm/mach-mx3/mach-pcm043.c
parent16cf5c41514fd94ff1e8b6be091e4b4732688fa6 (diff)
ARM: imx: dynamically register imx-uart devices (imx35)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mach-pcm043.c')
-rw-r--r--arch/arm/mach-mx3/mach-pcm043.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm/mach-mx3/mach-pcm043.c b/arch/arm/mach-mx3/mach-pcm043.c
index 21305c67afcf..97cc3642f805 100644
--- a/arch/arm/mach-mx3/mach-pcm043.c
+++ b/arch/arm/mach-mx3/mach-pcm043.c
@@ -36,7 +36,6 @@
36 36
37#include <mach/hardware.h> 37#include <mach/hardware.h>
38#include <mach/common.h> 38#include <mach/common.h>
39#include <mach/imx-uart.h>
40#include <mach/iomux-mx35.h> 39#include <mach/iomux-mx35.h>
41#include <mach/ipu.h> 40#include <mach/ipu.h>
42#include <mach/mx3fb.h> 41#include <mach/mx3fb.h>
@@ -115,7 +114,7 @@ static struct platform_device pcm043_flash = {
115 .num_resources = 1, 114 .num_resources = 1,
116}; 115};
117 116
118static struct imxuart_platform_data uart_pdata = { 117static const struct imxuart_platform_data uart_pdata __initconst = {
119 .flags = IMXUART_HAVE_RTSCTS, 118 .flags = IMXUART_HAVE_RTSCTS,
120}; 119};
121 120
@@ -355,11 +354,11 @@ static void __init mxc_board_init(void)
355 354
356 platform_add_devices(devices, ARRAY_SIZE(devices)); 355 platform_add_devices(devices, ARRAY_SIZE(devices));
357 356
358 mxc_register_device(&mxc_uart_device0, &uart_pdata); 357 imx35_add_imx_uart0(&uart_pdata);
359 imx35_add_mxc_nand(&pcm037_nand_board_info); 358 imx35_add_mxc_nand(&pcm037_nand_board_info);
360 mxc_register_device(&imx_ssi_device0, &pcm043_ssi_pdata); 359 mxc_register_device(&imx_ssi_device0, &pcm043_ssi_pdata);
361 360
362 mxc_register_device(&mxc_uart_device1, &uart_pdata); 361 imx35_add_imx_uart1(&uart_pdata);
363 362
364#if defined CONFIG_I2C_IMX || defined CONFIG_I2C_IMX_MODULE 363#if defined CONFIG_I2C_IMX || defined CONFIG_I2C_IMX_MODULE
365 i2c_register_board_info(0, pcm043_i2c_devices, 364 i2c_register_board_info(0, pcm043_i2c_devices,