aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam Ford <aford173@gmail.com>2018-08-20 20:43:00 -0500
committerTom Rini <trini@konsulko.com>2018-09-11 21:39:06 -0400
commit750df1979d5713b3b8a5aab91315d90b9966c60e (patch)
tree8f4e5ec3c486c5abaf05d57beb31f02573d237e4 /include
parent668146128aefc4c0e493056501092e90c85f1dd3 (diff)
downloadu-boot-750df1979d5713b3b8a5aab91315d90b9966c60e.zip
u-boot-750df1979d5713b3b8a5aab91315d90b9966c60e.tar.gz
u-boot-750df1979d5713b3b8a5aab91315d90b9966c60e.tar.bz2
DM: serial: ti_omap3_common: Don't define serial unless !DM_SERIAL
The serial port was being manually configured during SPL build, however in preparation to allow DM in SPL, this needs to change to be based on whether or not DM_SERIAL is enabled because, soon the assumption that SPL means no DM may not be accurate. Signed-off-by: Adam Ford <aford173@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/configs/ti_omap3_common.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/configs/ti_omap3_common.h b/include/configs/ti_omap3_common.h
index dcf7630..c668284 100644
--- a/include/configs/ti_omap3_common.h
+++ b/include/configs/ti_omap3_common.h
@@ -27,12 +27,10 @@
/* NS16550 Configuration */
#define V_NS16550_CLK 48000000 /* 48MHz (APLL96/2) */
#define CONFIG_SYS_NS16550_CLK V_NS16550_CLK
-#if defined(CONFIG_SPL_BUILD)
-#define CONFIG_SYS_NS16550_SERIAL
#if !defined(CONFIG_DM_SERIAL)
+#define CONFIG_SYS_NS16550_SERIAL
#define CONFIG_SYS_NS16550_REG_SIZE (-4)
#endif /* !CONFIG_DM_SERIAL */
-#endif /* CONFIG_SPL_BUILD */
#define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600, \
115200}