[U-Boot] [PATCH 3/6] am43xx_evm.h: : switch to CONFIG_OMAP_SERIAL for non-SPL DM_SERIAL

Mugunthan V N mugunthanvnm at ti.com
Mon Sep 28 12:47:49 CEST 2015


Tested on am437x gp evm and am437x sk evm

Signed-off-by: Mugunthan V N <mugunthanvnm at ti.com>
---
 include/configs/am43xx_evm.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h
index d868442..03713e3 100644
--- a/include/configs/am43xx_evm.h
+++ b/include/configs/am43xx_evm.h
@@ -23,9 +23,13 @@
 
 /* NS16550 Configuration */
 #define CONFIG_SYS_NS16550
+#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_REG_SIZE	(-4)
+#else
+#define CONFIG_OMAP_SERIAL
+#endif
 
 /* I2C Configuration */
 #define CONFIG_CMD_EEPROM
-- 
2.6.0.rc2.10.gf4d9753



More information about the U-Boot mailing list