aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/Kconfig4
-rw-r--r--arch/mips/boot/compressed/Makefile1
-rw-r--r--arch/mips/boot/compressed/uart-prom.c7
3 files changed, 12 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 058dfd2084b8..178cf1fbd033 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -1766,6 +1766,10 @@ config SYS_SUPPORTS_ZBOOT_UART16550
1766 bool 1766 bool
1767 select SYS_SUPPORTS_ZBOOT 1767 select SYS_SUPPORTS_ZBOOT
1768 1768
1769config SYS_SUPPORTS_ZBOOT_UART_PROM
1770 bool
1771 select SYS_SUPPORTS_ZBOOT
1772
1769config CPU_LOONGSON2 1773config CPU_LOONGSON2
1770 bool 1774 bool
1771 select CPU_SUPPORTS_32BIT_KERNEL 1775 select CPU_SUPPORTS_32BIT_KERNEL
diff --git a/arch/mips/boot/compressed/Makefile b/arch/mips/boot/compressed/Makefile
index e66b2c69c29c..4eff1ef02eff 100644
--- a/arch/mips/boot/compressed/Makefile
+++ b/arch/mips/boot/compressed/Makefile
@@ -35,6 +35,7 @@ vmlinuzobjs-y := $(obj)/head.o $(obj)/decompress.o $(obj)/string.o
35ifdef CONFIG_DEBUG_ZBOOT 35ifdef CONFIG_DEBUG_ZBOOT
36vmlinuzobjs-$(CONFIG_DEBUG_ZBOOT) += $(obj)/dbg.o 36vmlinuzobjs-$(CONFIG_DEBUG_ZBOOT) += $(obj)/dbg.o
37vmlinuzobjs-$(CONFIG_SYS_SUPPORTS_ZBOOT_UART16550) += $(obj)/uart-16550.o 37vmlinuzobjs-$(CONFIG_SYS_SUPPORTS_ZBOOT_UART16550) += $(obj)/uart-16550.o
38vmlinuzobjs-$(CONFIG_SYS_SUPPORTS_ZBOOT_UART_PROM) += $(obj)/uart-prom.o
38vmlinuzobjs-$(CONFIG_MIPS_ALCHEMY) += $(obj)/uart-alchemy.o 39vmlinuzobjs-$(CONFIG_MIPS_ALCHEMY) += $(obj)/uart-alchemy.o
39endif 40endif
40 41
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 @@
1
2extern void prom_putchar(unsigned char ch);
3
4void putc(char c)
5{
6 prom_putchar(c);
7}