summaryrefslogtreecommitdiffstats
path: root/arch/mips/boards
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2015-02-13 08:53:13 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2015-02-16 06:30:57 +0100
commit57ab60d3836174ee3fa0c422a93e2fdadf1278f8 (patch)
treebbab6b3486188bd99e7824d78c62a7b6081820cc /arch/mips/boards
parentc107eb84652950c9b3e6f6ba876606f684c9ab19 (diff)
downloadbarebox-57ab60d3836174ee3fa0c422a93e2fdadf1278f8.tar.gz
barebox-57ab60d3836174ee3fa0c422a93e2fdadf1278f8.tar.xz
MIPS: qemu-malta: debug_ll: fix serial port speed
qemu-malta.dts uses clock-frequency = <1843200>, but debug_ll.h for Malta uses another value. This patch fixes this inconsistency. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips/boards')
-rw-r--r--arch/mips/boards/qemu-malta/include/board/debug_ll.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/mips/boards/qemu-malta/include/board/debug_ll.h b/arch/mips/boards/qemu-malta/include/board/debug_ll.h
index 1e56040ffe..abeee5345a 100644
--- a/arch/mips/boards/qemu-malta/include/board/debug_ll.h
+++ b/arch/mips/boards/qemu-malta/include/board/debug_ll.h
@@ -22,6 +22,9 @@
#define DEBUG_LL_UART_ADDR MALTA_PIIX4_UART0
#define DEBUG_LL_UART_SHIFT 0
-#define DEBUG_LL_UART_DIVISOR 1843200 /* no matter for emulated port */
+
+#define DEBUG_LL_UART_CLK 1843200
+#define DEBUG_LL_UART_BPS CONFIG_BAUDRATE
+#define DEBUG_LL_UART_DIVISOR (DEBUG_LL_UART_CLK / DEBUG_LL_UART_BPS)
#endif /* __INCLUDE_BOARD_DEBUG_LL_QEMU_MALTA_H__ */