@@ -704,10 +704,6 @@ static struct davinci_i2c_platform_data da850_evm_i2c_0_pdata = {
.bus_delay = 0, /* usec */
};
-static struct davinci_uart_config da850_evm_uart_config __initdata = {
- .enabled_uarts = 0x7,
-};
-
/* davinci da850 evm audio machine driver */
static u8 da850_iis_serializer_direction[] = {
INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE, INACTIVE_MODE,
@@ -1174,7 +1170,7 @@ static __init void da850_evm_init(void)
" %d\n", ret);
}
- davinci_serial_init(&da850_evm_uart_config);
+ da850_reference_serial_init();
i2c_register_board_info(1, da850_evm_i2c_devices,
ARRAY_SIZE(da850_evm_i2c_devices));
@@ -433,10 +433,6 @@ static void __init mityomapl138_setup_nand(void)
ARRAY_SIZE(mityomapl138_devices));
}
-static struct davinci_uart_config mityomapl138_uart_config __initdata = {
- .enabled_uarts = 0x7,
-};
-
static const short mityomap_mii_pins[] = {
DA850_MII_TXEN, DA850_MII_TXCLK, DA850_MII_COL, DA850_MII_TXD_3,
DA850_MII_TXD_2, DA850_MII_TXD_1, DA850_MII_TXD_0, DA850_MII_RXER,
@@ -516,7 +512,7 @@ static void __init mityomapl138_init(void)
if (ret)
pr_warning("watchdog registration failed: %d\n", ret);
- davinci_serial_init(&mityomapl138_uart_config);
+ da850_reference_serial_init();
ret = da8xx_register_i2c(0, &mityomap_i2c_0_pdata);
if (ret)
@@ -294,15 +294,11 @@ usb11_setup_oc_fail:
gpio_free(DA850_USB1_VBUS_PIN);
}
-static struct davinci_uart_config omapl138_hawk_uart_config __initdata = {
- .enabled_uarts = 0x7,
-};
-
static __init void omapl138_hawk_init(void)
{
int ret;
- davinci_serial_init(&omapl138_hawk_uart_config);
+ da850_reference_serial_init();
omapl138_hawk_config_emac();
@@ -20,3 +20,12 @@ int da850_reference_add_preferred_console(void)
{
return add_preferred_console("ttyS", 2, "115200");
}
+
+static struct davinci_uart_config da850_reference_uart_config __initdata = {
+ .enabled_uarts = 0x7,
+};
+
+void da850_reference_serial_init(void)
+{
+ davinci_serial_init(&da850_reference_uart_config);
+}
@@ -15,5 +15,6 @@
void __init da850_reference_map_io(void);
int da850_reference_add_preferred_console(void);
+void da850_reference_serial_init(void);
#endif /* __ASM_ARCH_DAVINCI_DA850_REFERENCE_H */