ti_omap5_common.h: Switch to CONFIG_OMAP_SERIAL for non-SPL DM_SERIAL
authorTom Rini <trini@konsulko.com>
Thu, 17 Sep 2015 20:47:04 +0000 (16:47 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 22 Oct 2015 18:18:41 +0000 (14:18 -0400)
Tested on J6Eco EVM
Signed-off-by: Tom Rini <trini@konsulko.com>
include/configs/ti_omap5_common.h

index 189ea7e9140e33465b98f2e8b62b0db262801f37..9fc33aa6a2c6d832fdec13ecb9ae6ebe66ab97b2 100644 (file)
  * Hardware drivers
  */
 #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
+#else
+#define CONFIG_OMAP_SERIAL
+#endif
 
 /*
  * Environment setup