linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] MIPS: Alchemy: debug output for compressed kernels
@ 2010-01-26 19:40 Manuel Lauss
  2010-01-27 22:44 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Manuel Lauss @ 2010-01-26 19:40 UTC (permalink / raw)
  To: Linux-MIPS; +Cc: Manuel Lauss, Wu Zhangjin

Hook up the compressed debug output for all Alchemy systems supported
by current kernel codebase.

Cc: Wu Zhangjin <wuzhangjin@gmail.com>
Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
---
v2: Applies on top of Wu Zhangjin's "MIPS: Cleanup the debugging of compressed
kernel support" fixed v3 patch, and -queue.

 arch/mips/boot/compressed/Makefile       |    1 +
 arch/mips/boot/compressed/uart-alchemy.c |   11 +++++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 arch/mips/boot/compressed/uart-alchemy.c

diff --git a/arch/mips/boot/compressed/Makefile b/arch/mips/boot/compressed/Makefile
index 388b58c..fff73d4 100644
--- a/arch/mips/boot/compressed/Makefile
+++ b/arch/mips/boot/compressed/Makefile
@@ -34,6 +34,7 @@ obj-y := $(obj)/head.o $(obj)/decompress.o $(obj)/dbg.o
 
 ifdef CONFIG_DEBUG_ZBOOT
 obj-$(CONFIG_SYS_SUPPORTS_ZBOOT_UART16550) += $(obj)/uart-16550.o
+obj-$(CONFIG_MACH_ALCHEMY)		   += $(obj)/uart-alchemy.o
 endif
 
 OBJCOPYFLAGS_vmlinux.bin := $(OBJCOPYFLAGS) -O binary -R .comment -S
diff --git a/arch/mips/boot/compressed/uart-alchemy.c b/arch/mips/boot/compressed/uart-alchemy.c
new file mode 100644
index 0000000..4c957df
--- /dev/null
+++ b/arch/mips/boot/compressed/uart-alchemy.c
@@ -0,0 +1,11 @@
+/*
+ * Alchemy on-chip uart based serial debug support for zboot
+ */
+
+#include <asm/mach-au1x00/au1000.h>
+
+void putc(char c)
+{
+	/* all current (Jan. 2010) in-kernel boards */
+	alchemy_uart_putchar(UART0_PHYS_ADDR, c);
+}
-- 
1.6.6

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] MIPS: Alchemy: debug output for compressed kernels
  2010-01-26 19:40 [PATCH v2] MIPS: Alchemy: debug output for compressed kernels Manuel Lauss
@ 2010-01-27 22:44 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2010-01-27 22:44 UTC (permalink / raw)
  To: Manuel Lauss; +Cc: Linux-MIPS, Manuel Lauss, Wu Zhangjin

On Tue, Jan 26, 2010 at 08:40:09PM +0100, Manuel Lauss wrote:

Thanks, patch in the 2.6.34 queue updated.

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-27 22:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-26 19:40 [PATCH v2] MIPS: Alchemy: debug output for compressed kernels Manuel Lauss
2010-01-27 22:44 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).