aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx5/board-mx51_efikamx.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-mx5/board-mx51_efikamx.c')
-rw-r--r--arch/arm/mach-mx5/board-mx51_efikamx.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/arch/arm/mach-mx5/board-mx51_efikamx.c b/arch/arm/mach-mx5/board-mx51_efikamx.c
index b7946f8e8d40..e23704044eb0 100644
--- a/arch/arm/mach-mx5/board-mx51_efikamx.c
+++ b/arch/arm/mach-mx5/board-mx51_efikamx.c
@@ -121,23 +121,10 @@ static iomux_v3_cfg_t mx51efikamx_pads[] = {
121}; 121};
122 122
123/* Serial ports */ 123/* Serial ports */
124#if defined(CONFIG_SERIAL_IMX) || defined(CONFIG_SERIAL_IMX_MODULE)
125static const struct imxuart_platform_data uart_pdata = { 124static const struct imxuart_platform_data uart_pdata = {
126 .flags = IMXUART_HAVE_RTSCTS, 125 .flags = IMXUART_HAVE_RTSCTS,
127}; 126};
128 127
129static inline void mxc_init_imx_uart(void)
130{
131 imx51_add_imx_uart(0, &uart_pdata);
132 imx51_add_imx_uart(1, &uart_pdata);
133 imx51_add_imx_uart(2, &uart_pdata);
134}
135#else /* !SERIAL_IMX */
136static inline void mxc_init_imx_uart(void)
137{
138}
139#endif /* SERIAL_IMX */
140
141/* This function is board specific as the bit mask for the plldiv will also 128/* This function is board specific as the bit mask for the plldiv will also
142 * be different for other Freescale SoCs, thus a common bitmask is not 129 * be different for other Freescale SoCs, thus a common bitmask is not
143 * possible and cannot get place in /plat-mxc/ehci.c. 130 * possible and cannot get place in /plat-mxc/ehci.c.
@@ -320,7 +307,9 @@ static void __init mxc_board_init(void)
320 ARRAY_SIZE(mx51efikamx_pads)); 307 ARRAY_SIZE(mx51efikamx_pads));
321 mx51_efikamx_board_id(); 308 mx51_efikamx_board_id();
322 mxc_register_device(&mxc_usbdr_host_device, &dr_utmi_config); 309 mxc_register_device(&mxc_usbdr_host_device, &dr_utmi_config);
323 mxc_init_imx_uart(); 310 imx51_add_imx_uart(0, &uart_pdata);
311 imx51_add_imx_uart(1, &uart_pdata);
312 imx51_add_imx_uart(2, &uart_pdata);
324 imx51_add_sdhci_esdhc_imx(0, NULL); 313 imx51_add_sdhci_esdhc_imx(0, NULL);
325 314
326 /* on < 1.2 boards both SD controllers are used */ 315 /* on < 1.2 boards both SD controllers are used */