summaryrefslogtreecommitdiff
path: root/include/configs/mv-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/configs/mv-common.h')
-rw-r--r--include/configs/mv-common.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/configs/mv-common.h b/include/configs/mv-common.h
index a2f60dc527..1ecbd3521f 100644
--- a/include/configs/mv-common.h
+++ b/include/configs/mv-common.h
@@ -39,11 +39,17 @@
/*
* NS16550 Configuration
*/
+#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_DM_SERIAL)
+#define CONFIG_DW_SERIAL
+#endif
+
#define CONFIG_SYS_NS16550
#define CONFIG_SYS_NS16550_SERIAL
-#define CONFIG_SYS_NS16550_REG_SIZE (-4)
#define CONFIG_SYS_NS16550_CLK CONFIG_SYS_TCLK
+#if !defined(CONFIG_DM_SERIAL)
+#define CONFIG_SYS_NS16550_REG_SIZE (-4)
#define CONFIG_SYS_NS16550_COM1 MV_UART_CONSOLE_BASE
+#endif
/*
* Serial Port configuration