Skip to content

Commit

Permalink
ns16550: unify serial_omap
Browse files Browse the repository at this point in the history
Unify serial_omap, and use the generic binding.

Signed-off-by: Thomas Chou <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Acked-by: Simon Glass <[email protected]>
  • Loading branch information
hippo5329 authored and trini committed Nov 22, 2015
1 parent 1874626 commit c7b9686
Show file tree
Hide file tree
Showing 18 changed files with 22 additions and 76 deletions.
2 changes: 1 addition & 1 deletion board/isee/igep00x0/igep00x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static const struct ns16550_platdata igep_serial = {
};

U_BOOT_DEVICE(igep_uart) = {
"serial_omap",
"ns16550_serial",
&igep_serial
};

Expand Down
2 changes: 1 addition & 1 deletion board/lge/sniper/sniper.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static const struct ns16550_platdata serial_omap_platdata = {
};

U_BOOT_DEVICE(sniper_serial) = {
.name = "serial_omap",
.name = "ns16550_serial",
.platdata = &serial_omap_platdata
};

Expand Down
2 changes: 1 addition & 1 deletion board/logicpd/omap3som/omap3logic.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static const struct ns16550_platdata omap3logic_serial = {
};

U_BOOT_DEVICE(omap3logic_uart) = {
"serial_omap",
"ns16550_serial",
&omap3logic_serial
};

Expand Down
2 changes: 1 addition & 1 deletion board/logicpd/zoom1/zoom1.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static const struct ns16550_platdata zoom1_serial = {
};

U_BOOT_DEVICE(zoom1_uart) = {
"serial_omap",
"ns16550_serial",
&zoom1_serial
};

Expand Down
2 changes: 1 addition & 1 deletion board/overo/overo.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static const struct ns16550_platdata overo_serial = {
};

U_BOOT_DEVICE(overo_uart) = {
"serial_omap",
"ns16550_serial",
&overo_serial
};

Expand Down
2 changes: 1 addition & 1 deletion board/quipos/cairo/cairo.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static const struct ns16550_platdata cairo_serial = {
};

U_BOOT_DEVICE(cairo_uart) = {
"serial_omap",
"ns16550_serial",
&cairo_serial
};

Expand Down
2 changes: 1 addition & 1 deletion board/ti/beagle/beagle.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static const struct ns16550_platdata beagle_serial = {
};

U_BOOT_DEVICE(beagle_uart) = {
"serial_omap",
"ns16550_serial",
&beagle_serial
};

Expand Down
2 changes: 1 addition & 1 deletion board/timll/devkit8000/devkit8000.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static const struct ns16550_platdata devkit8000_serial = {
};

U_BOOT_DEVICE(devkit8000_uart) = {
"serial_omap",
"ns16550_serial",
&devkit8000_serial
};

Expand Down
1 change: 0 additions & 1 deletion drivers/serial/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ obj-$(CONFIG_FSL_LPUART) += serial_lpuart.o
obj-$(CONFIG_MXS_AUART) += mxs_auart.o
obj-$(CONFIG_ARC_SERIAL) += serial_arc.o
obj-$(CONFIG_UNIPHIER_SERIAL) += serial_uniphier.o
obj-$(CONFIG_OMAP_SERIAL) += serial_omap.o
obj-$(CONFIG_STM32_SERIAL) += serial_stm32.o

ifndef CONFIG_SPL_BUILD
Expand Down
54 changes: 0 additions & 54 deletions drivers/serial/serial_omap.c

This file was deleted.

4 changes: 2 additions & 2 deletions include/configs/am43xx_evm.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@

/* NS16550 Configuration */
#define CONFIG_SYS_NS16550
#define CONFIG_SYS_NS16550_CLK 48000000
#if defined(CONFIG_SPL_BUILD) || !defined(CONFIG_DM_SERIAL)
#define CONFIG_SYS_NS16550_SERIAL
#define CONFIG_SYS_NS16550_CLK 48000000
#define CONFIG_SYS_NS16550_REG_SIZE (-4)
#else
#define CONFIG_OMAP_SERIAL
#define CONFIG_NS16550_SERIAL
#endif

/* I2C Configuration */
Expand Down
2 changes: 1 addition & 1 deletion include/configs/cm_t43.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <asm/arch/omap.h>

/* Serial support */
#define CONFIG_OMAP_SERIAL
#define CONFIG_NS16550_SERIAL
#define CONFIG_DM_SERIAL
#define CONFIG_SYS_NS16550
#define CONFIG_SYS_NS16550_SERIAL
Expand Down
3 changes: 2 additions & 1 deletion include/configs/omap3_pandora.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
/*
* NS16550 Configuration
*/
#undef CONFIG_OMAP_SERIAL
#undef CONFIG_NS16550_SERIAL
#undef CONFIG_SYS_NS16550_CLK
#define CONFIG_SYS_NS16550_SERIAL
#define CONFIG_SYS_NS16550_REG_SIZE (-4)
#define CONFIG_SYS_NS16550_CLK V_NS16550_CLK
Expand Down
4 changes: 2 additions & 2 deletions include/configs/sniper.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,14 @@


#ifndef CONFIG_SPL_BUILD
#define CONFIG_OMAP_SERIAL
#define CONFIG_NS16550_SERIAL
#else
#define CONFIG_SYS_NS16550_SERIAL
#define CONFIG_SYS_NS16550_REG_SIZE (-4)
#define CONFIG_SYS_NS16550_CLK V_NS16550_CLK
#endif

#define CONFIG_SYS_NS16550
#define CONFIG_SYS_NS16550_CLK V_NS16550_CLK
#define CONFIG_SYS_NS16550_COM3 OMAP34XX_UART3
#define CONFIG_CONS_INDEX 3
#define CONFIG_SERIAL3 3
Expand Down
2 changes: 1 addition & 1 deletion include/configs/ti_am335x_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#define CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC

#ifndef CONFIG_SPL_BUILD
# define CONFIG_OMAP_SERIAL
# define CONFIG_NS16550_SERIAL
#endif

#include <asm/arch/omap.h>
Expand Down
4 changes: 2 additions & 2 deletions include/configs/ti_omap3_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <asm/arch/omap.h>

#ifndef CONFIG_SPL_BUILD
# define CONFIG_OMAP_SERIAL
# define CONFIG_NS16550_SERIAL
#endif

/* Common ARM Erratas */
Expand All @@ -37,10 +37,10 @@
/* NS16550 Configuration */
#define V_NS16550_CLK 48000000 /* 48MHz (APLL96/2) */
#define CONFIG_SYS_NS16550
#define CONFIG_SYS_NS16550_CLK V_NS16550_CLK
#ifdef CONFIG_SPL_BUILD
# define CONFIG_SYS_NS16550_SERIAL
# define CONFIG_SYS_NS16550_REG_SIZE (-4)
# define CONFIG_SYS_NS16550_CLK V_NS16550_CLK
#endif
#define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600, \
115200}
Expand Down
4 changes: 2 additions & 2 deletions include/configs/ti_omap4_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@
* Hardware drivers
*/
#define CONFIG_SYS_NS16550
#define CONFIG_SYS_NS16550_CLK 48000000
#if defined(CONFIG_SPL_BUILD) || !defined(CONFIG_DM_SERIAL)
#define CONFIG_SYS_NS16550_SERIAL
#define CONFIG_SYS_NS16550_REG_SIZE (-4)
#define CONFIG_SYS_NS16550_CLK 48000000
#define CONFIG_SYS_NS16550_COM3 UART3_BASE
#else
#define CONFIG_OMAP_SERIAL
#define CONFIG_NS16550_SERIAL
#endif
#define CONFIG_CONS_INDEX 3

Expand Down
4 changes: 2 additions & 2 deletions include/configs/ti_omap5_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
* Hardware drivers
*/
#define CONFIG_SYS_NS16550
#define CONFIG_SYS_NS16550_CLK 48000000
#if defined(CONFIG_SPL_BUILD) || !defined(CONFIG_DM_SERIAL)
#define CONFIG_SYS_NS16550_SERIAL
#define CONFIG_SYS_NS16550_REG_SIZE (-4)
#define CONFIG_SYS_NS16550_CLK 48000000
#else
#define CONFIG_OMAP_SERIAL
#define CONFIG_NS16550_SERIAL
#endif

/*
Expand Down

0 comments on commit c7b9686

Please sign in to comment.