summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2013-06-03 14:53:23 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2013-06-04 07:18:42 +0200
commitfcffb0d2c6e02a84361962496838bdb2897eae37 (patch)
tree3b13a5b4475033f93228b43a3f6823ae8ba176b5 /arch
parent56bd91c9a19735f08926db9b9736565fe1672b12 (diff)
downloadbarebox-fcffb0d2c6e02a84361962496838bdb2897eae37.tar.gz
barebox-fcffb0d2c6e02a84361962496838bdb2897eae37.tar.xz
MIPS: rzx50: prepare for new debug_ll
Set DEBUG_LL_UART_DIVISOR to use <asm/debug_ll_ns16550.h>. The JZ4755 uses 24 MHz as the main reference frequency (EXCLK). The UART controller can work on full EXCLK or on EXCLK/2. Just now we use EXCLK/2 legacy clock setup made by U-Boot. So set UART controller base frequency to 12 MHz. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/mach-xburst/include/mach/debug_ll_jz4750d.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/mach-xburst/include/mach/debug_ll_jz4750d.h b/arch/mips/mach-xburst/include/mach/debug_ll_jz4750d.h
index 7bf66b12ae..2a55dea437 100644
--- a/arch/mips/mach-xburst/include/mach/debug_ll_jz4750d.h
+++ b/arch/mips/mach-xburst/include/mach/debug_ll_jz4750d.h
@@ -34,4 +34,8 @@
#define DEBUG_LL_UART_SHIFT 2
+#define DEBUG_LL_UART_CLK (12000000 / 16)
+#define DEBUG_LL_UART_BPS CONFIG_BAUDRATE
+#define DEBUG_LL_UART_DIVISOR (DEBUG_LL_UART_CLK / DEBUG_LL_UART_BPS)
+
#endif /* __INCLUDE_DEBUG_LL_JZ4750D_H__ */