From: Felix Domke <tmbinc@elitedvb•net>
To: Linuxppc-dev@ozlabs•org
Subject: [patch 3/7] xenon: udbg support (ugly)
Date: Wed, 07 Mar 2007 19:01:47 +0100 [thread overview]
Message-ID: <20070307180525.919926000@elitedvb.net> (raw)
In-Reply-To: 20070307180144.812594000@elitedvb.net
This adds support for a serial kernel output on the Xenon platform.
Signed-off-by: Felix Domke <tmbinc@elitedvb•net>
---
arch/powerpc/kernel/misc_64.S | 2 +-
arch/powerpc/kernel/udbg.c | 14 ++++++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
Index: linux-2.6.20/arch/powerpc/kernel/misc_64.S
===================================================================
--- linux-2.6.20.orig/arch/powerpc/kernel/misc_64.S 2007-03-07 19:01:12.000000000 +0100
+++ linux-2.6.20/arch/powerpc/kernel/misc_64.S 2007-03-07 19:01:21.000000000 +0100
@@ -247,7 +247,7 @@
blr
-#if defined(CONFIG_PPC_PMAC) || defined(CONFIG_PPC_MAPLE)
+#if defined(CONFIG_PPC_PMAC) || defined(CONFIG_PPC_MAPLE) || defined(CONFIG_PPC_XENON)
/*
* Do an IO access in real mode
*/
Index: linux-2.6.20/arch/powerpc/kernel/udbg.c
===================================================================
--- linux-2.6.20.orig/arch/powerpc/kernel/udbg.c 2007-03-07 19:01:12.000000000 +0100
+++ linux-2.6.20/arch/powerpc/kernel/udbg.c 2007-03-07 19:01:21.000000000 +0100
@@ -25,6 +25,18 @@
* Early debugging facilities. You can enable _one_ of these via .config,
* if you do so your kernel _will not boot_ on anything else. Be careful.
*/
+
+extern u8 real_readb(volatile u8 __iomem *addr);
+extern void real_writeb(u8 data, volatile u8 __iomem *addr);
+
+void udbg_xenon_real_putc(char c)
+{
+ if (c == '\n')
+ udbg_xenon_real_putc('\r');
+ while (!(real_readb((void*)0x80000200ea001018ULL)&0x02));
+ real_writeb(c, (void*)0x80000200ea001014ULL);
+}
+
void __init udbg_early_init(void)
{
#if defined(CONFIG_PPC_EARLY_DEBUG_LPAR)
@@ -46,6 +58,7 @@
/* For iSeries - hit Ctrl-x Ctrl-x to see the output */
udbg_init_iseries();
#endif
+ udbg_putc = udbg_xenon_real_putc;
}
/* udbg library, used by xmon et al */
@@ -150,6 +163,7 @@
printk(KERN_INFO "early console immortal !\n");
return;
}
+ return;
unregister_console(&udbg_console);
early_console_initialized = 0;
}
--
next prev parent reply other threads:[~2007-03-07 18:01 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-07 18:01 [patch 0/7] [RFC] Xenon support Felix Domke
2007-03-07 18:01 ` [patch 1/7] xenon: add PCI Vendor ID: Microsoft Felix Domke
2007-03-07 18:01 ` [patch 2/7] xenon: add platform support Felix Domke
2007-03-07 23:06 ` Arnd Bergmann
2007-03-07 18:01 ` Felix Domke [this message]
2007-03-07 21:00 ` [patch 3/7] xenon: udbg support (ugly) Geert Uytterhoeven
2007-03-07 18:01 ` [patch 4/7] xenon: add southbridge ethernet support Felix Domke
2007-03-07 23:27 ` Arnd Bergmann
2007-03-07 18:01 ` [patch 5/7] xenon: add SATA support Felix Domke
2007-03-07 21:02 ` Sergei Shtylyov
2007-03-07 21:07 ` Felix Domke
2007-03-07 21:14 ` Sergei Shtylyov
2007-03-07 18:01 ` [patch 6/7] xenon: add SMC support Felix Domke
2007-03-07 21:54 ` Arnd Bergmann
2007-03-08 23:29 ` Linas Vepstas
2007-03-07 18:01 ` [patch 7/7] xenon: add framebuffer support (ugly) Felix Domke
2007-03-07 21:06 ` [patch 0/7] [RFC] Xenon support Josh Boyer
2007-03-07 21:14 ` Felix Domke
2007-03-08 9:48 ` Benjamin Herrenschmidt
2007-03-08 0:35 ` Stephen Rothwell
2007-03-08 0:52 ` Felix Domke
2007-03-08 11:02 ` Christoph Hellwig
2007-03-08 23:50 ` Linas Vepstas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070307180525.919926000@elitedvb.net \
--to=tmbinc@elitedvb$(echo .)net \
--cc=Linuxppc-dev@ozlabs$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox