linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH] MIPS: Alchemy: debug output for compressed kernels
@ 2010-01-13 17:46 Manuel Lauss
  2010-01-26 14:54 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Manuel Lauss @ 2010-01-13 17:46 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>
---
The code is built for all alchemy systems since I doubt anyone would
solder on an extra UART chip instead of using the built-in ones.

Should work on all in-kernel boards; my db1200 likes it:
 zimage at:     82E21350 82FA149D
 Uncompressing Linux at load address 80100000
 Now, booting the kernel...


 arch/mips/boot/compressed/Makefile       |    1 +
 arch/mips/boot/compressed/uart-alchemy.c |    7 +++++++
 2 files changed, 8 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 671d344..5f09c18 100644
--- a/arch/mips/boot/compressed/Makefile
+++ b/arch/mips/boot/compressed/Makefile
@@ -33,6 +33,7 @@ KBUILD_AFLAGS := $(LINUXINCLUDE) $(KBUILD_AFLAGS) -D__ASSEMBLY__ \
 obj-y := $(obj)/head.o $(obj)/decompress.o $(obj)/dbg.o
 
 obj-$(CONFIG_SYS_SUPPORTS_ZBOOT_UART16550) += $(obj)/uart-16550.o
+obj-$(CONFIG_MACH_ALCHEMY)		   += $(obj)/uart-alchemy.o
 
 OBJCOPYFLAGS_vmlinux.bin := $(OBJCOPYFLAGS) -O binary -R .comment -S
 $(obj)/vmlinux.bin: $(KBUILD_IMAGE)
diff --git a/arch/mips/boot/compressed/uart-alchemy.c b/arch/mips/boot/compressed/uart-alchemy.c
new file mode 100644
index 0000000..1bff22f
--- /dev/null
+++ b/arch/mips/boot/compressed/uart-alchemy.c
@@ -0,0 +1,7 @@
+#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.5.6

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

* Re: [RFC PATCH] MIPS: Alchemy: debug output for compressed kernels
  2010-01-13 17:46 [RFC PATCH] MIPS: Alchemy: debug output for compressed kernels Manuel Lauss
@ 2010-01-26 14:54 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2010-01-26 14:54 UTC (permalink / raw)
  To: Manuel Lauss; +Cc: Linux-MIPS, Manuel Lauss, Wu Zhangjin

On Wed, Jan 13, 2010 at 06:46:58PM +0100, Manuel Lauss wrote:

> 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>
> ---
> The code is built for all alchemy systems since I doubt anyone would
> solder on an extra UART chip instead of using the built-in ones.

Hardware folks tend have interesting ideas to say the least :)  But until
then I'm happy to queue this patch for 2.6.34.

Thanks,

  Ralf

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

end of thread, other threads:[~2010-01-26 14:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-13 17:46 [RFC PATCH] MIPS: Alchemy: debug output for compressed kernels Manuel Lauss
2010-01-26 14:54 ` 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).