summaryrefslogtreecommitdiff
path: root/include/configs/Sandpoint8245.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/configs/Sandpoint8245.h')
-rw-r--r--include/configs/Sandpoint8245.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/configs/Sandpoint8245.h b/include/configs/Sandpoint8245.h
index 307c2e2..9611d61 100644
--- a/include/configs/Sandpoint8245.h
+++ b/include/configs/Sandpoint8245.h
@@ -224,8 +224,12 @@
#define CFG_NS16550_REG_SIZE 1
-#define CFG_NS16550_CLK 1843200
-
+#if (CONFIG_CONS_INDEX > 2)
+#define CFG_NS16550_CLK CONFIG_DRAM_SPEED*1000000
+#else
+#define CFG_NS16550_CLK 1843200
+#endif
+
#define CFG_NS16550_COM1 (CFG_ISA_IO + CFG_NS87308_UART1_BASE)
#define CFG_NS16550_COM2 (CFG_ISA_IO + CFG_NS87308_UART2_BASE)
#define CFG_NS16550_COM3 (CFG_EUMB_ADDR + 0x4500)