aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/boot/compressed/uart-prom.c
diff options
context:
space:
mode:
authorAlban Bedel <albeu@free.fr>2015-12-10 10:57:21 +0100
committerRalf Baechle <ralf@linux-mips.org>2016-01-24 04:05:51 +0100
commitdbb983145312efba5f7928af1b180a0d83423150 (patch)
tree98014f40f1c450716bf4b2966f31822b42ac03f0 /arch/mips/boot/compressed/uart-prom.c
parentMIPS: zboot: Avoid useless rebuilds (diff)
downloadlinux-dev-dbb983145312efba5f7928af1b180a0d83423150.tar.xz
linux-dev-dbb983145312efba5f7928af1b180a0d83423150.zip
MIPS: zboot: Add support for serial debug using the PROM
As most platforms implement the PROM serial interface prom_putchar() add a simple bridge to allow re-using this code for zboot. Signed-off-by: Alban Bedel <albeu@free.fr> Cc: Alex Smith <alex.smith@imgtec.com> Cc: Andrew Bresticker <abrestic@chromium.org> Cc: Wu Zhangjin <wuzhangjin@gmail.com> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/11811/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to '')
-rw-r--r--arch/mips/boot/compressed/uart-prom.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/mips/boot/compressed/uart-prom.c b/arch/mips/boot/compressed/uart-prom.c
new file mode 100644
index 000000000000..1c3d51bc90bb
--- /dev/null
+++ b/arch/mips/boot/compressed/uart-prom.c
@@ -0,0 +1,7 @@
+
+extern void prom_putchar(unsigned char ch);
+
+void putc(char c)
+{
+ prom_putchar(c);
+}