mirror of https://gitee.com/openkylin/linux.git
ARM i.MX51 efikamx: remove unnecessary CONFIG_SERIAL_IMX ifdefs
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
7f16f817e2
commit
53cdd3068b
|
@ -121,23 +121,10 @@ static iomux_v3_cfg_t mx51efikamx_pads[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Serial ports */
|
/* Serial ports */
|
||||||
#if defined(CONFIG_SERIAL_IMX) || defined(CONFIG_SERIAL_IMX_MODULE)
|
|
||||||
static const struct imxuart_platform_data uart_pdata = {
|
static const struct imxuart_platform_data uart_pdata = {
|
||||||
.flags = IMXUART_HAVE_RTSCTS,
|
.flags = IMXUART_HAVE_RTSCTS,
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline void mxc_init_imx_uart(void)
|
|
||||||
{
|
|
||||||
imx51_add_imx_uart(0, &uart_pdata);
|
|
||||||
imx51_add_imx_uart(1, &uart_pdata);
|
|
||||||
imx51_add_imx_uart(2, &uart_pdata);
|
|
||||||
}
|
|
||||||
#else /* !SERIAL_IMX */
|
|
||||||
static inline void mxc_init_imx_uart(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif /* SERIAL_IMX */
|
|
||||||
|
|
||||||
/* This function is board specific as the bit mask for the plldiv will also
|
/* This function is board specific as the bit mask for the plldiv will also
|
||||||
* be different for other Freescale SoCs, thus a common bitmask is not
|
* be different for other Freescale SoCs, thus a common bitmask is not
|
||||||
* possible and cannot get place in /plat-mxc/ehci.c.
|
* possible and cannot get place in /plat-mxc/ehci.c.
|
||||||
|
@ -320,7 +307,9 @@ static void __init mxc_board_init(void)
|
||||||
ARRAY_SIZE(mx51efikamx_pads));
|
ARRAY_SIZE(mx51efikamx_pads));
|
||||||
mx51_efikamx_board_id();
|
mx51_efikamx_board_id();
|
||||||
mxc_register_device(&mxc_usbdr_host_device, &dr_utmi_config);
|
mxc_register_device(&mxc_usbdr_host_device, &dr_utmi_config);
|
||||||
mxc_init_imx_uart();
|
imx51_add_imx_uart(0, &uart_pdata);
|
||||||
|
imx51_add_imx_uart(1, &uart_pdata);
|
||||||
|
imx51_add_imx_uart(2, &uart_pdata);
|
||||||
imx51_add_sdhci_esdhc_imx(0, NULL);
|
imx51_add_sdhci_esdhc_imx(0, NULL);
|
||||||
|
|
||||||
/* on < 1.2 boards both SD controllers are used */
|
/* on < 1.2 boards both SD controllers are used */
|
||||||
|
|
Loading…
Reference in New Issue