summaryrefslogtreecommitdiffstats
path: root/arch/mips/mach-malta
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2014-04-02 11:41:31 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2014-04-03 07:55:16 +0200
commit93f1811d8be37fe9fc6d40ce2be6955ae842438c (patch)
treeaa952bda54d4e0d837f2490c0e3529684c835c84 /arch/mips/mach-malta
parentb51cba9c9a2dd55a35e911178f0900a90122ad93 (diff)
downloadbarebox-93f1811d8be37fe9fc6d40ce2be6955ae842438c.tar.gz
barebox-93f1811d8be37fe9fc6d40ce2be6955ae842438c.tar.xz
MIPS: qemu-malta: add CBUS UART support
This patch adds CBUS UART dts support; also it adds the necessary macros for DEBUG_LL. qemu-malta supports three serial interfaces: * two ports are provided by the FDC37M817 Super I/O; this chip is connected via LPC bus to Intel 82371EB (PIIX4E) South Bridge; * the third serial port is provided by the discrete TI 16C550C (CBUS UART); this chip is connected via CBUS directly to the board's GT64120 North Bridge. See Malta User's Manual (MD00048) for details. CBUS UART Instructions for use: 1. Enable CONFIG_CONSOLE_ACTIVATE_ALL in .config (or disable uart0 in dts) and compile barebox; 2. run qemu: qemu-system-mips -nographic -nodefaults \ -monitor null -M malta -m 256 \ -serial null -serial null -serial stdio \ -bios barebox-flash-image Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips/mach-malta')
-rw-r--r--arch/mips/mach-malta/include/mach/hardware.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/mach-malta/include/mach/hardware.h b/arch/mips/mach-malta/include/mach/hardware.h
index 9345a67593..ba28cb86de 100644
--- a/arch/mips/mach-malta/include/mach/hardware.h
+++ b/arch/mips/mach-malta/include/mach/hardware.h
@@ -20,6 +20,9 @@
#define MALTA_PIIX4_UART0 0xb80003f8
+#define MALTA_CBUS_UART 0xbf000900
+#define MALTA_CBUS_UART_SHIFT 3
+
/*
* Reset register.
*/