[U-Boot] [PATCH 02/10] arm: am437x: cm-t43: migrate CONFIG_DM_SERIAL to config file

Nikita Kiryanov nikita at compulab.co.il
Fri Feb 19 18:19:42 CET 2016


Move CONFIG_DM_SERIAL to cm_t43_defconfig. This forces us to update the
CONFIG_SYS_NS16550_REG_SIZE value for SPL.

Cc: Tom Rini <trini at konsulko.com>
Cc: Albert Aribaud <albert.u.boot at aribaud.net>
Cc: Igor Grinberg <grinberg at compulab.co.il>
Signed-off-by: Nikita Kiryanov <nikita at compulab.co.il>
---
 configs/cm_t43_defconfig | 1 +
 include/configs/cm_t43.h | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/configs/cm_t43_defconfig b/configs/cm_t43_defconfig
index 6044ae9..98e21cf 100644
--- a/configs/cm_t43_defconfig
+++ b/configs/cm_t43_defconfig
@@ -10,3 +10,4 @@ CONFIG_CMD_GPIO=y
 # CONFIG_CMD_NFS is not set
 CONFIG_DM=y
 CONFIG_SYS_NS16550=y
+CONFIG_DM_SERIAL=y
diff --git a/include/configs/cm_t43.h b/include/configs/cm_t43.h
index d0dfdef..6abc085 100644
--- a/include/configs/cm_t43.h
+++ b/include/configs/cm_t43.h
@@ -18,10 +18,12 @@
 #include <asm/arch/omap.h>
 
 /* Serial support */
-#define CONFIG_DM_SERIAL
 #define CONFIG_SYS_NS16550_SERIAL
 #define CONFIG_SYS_NS16550_CLK		48000000
 #define CONFIG_SYS_NS16550_COM1		0x44e09000
+#ifdef CONFIG_SPL_BUILD
+#define CONFIG_SYS_NS16550_REG_SIZE	(-4)
+#endif
 
 /* NAND support */
 #define CONFIG_NAND
-- 
1.9.1



More information about the U-Boot mailing list