lkml.org 
[lkml]   [2005]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] ppc32: Fix CONFIG_SERIAL_TEXT_DEBUG support on 83xx
Andrew,

The uart initialization for CONFIG_SERIAL_TEXT_DEBUG on 83xx was passing
in physical addresses instead of effective. Additional, fix the Kconfig
support to be for all 83xx devices, not just the MPC834x SYS board.

Signed-off-by: Kumar Gala <kumar.gala@freescale.com>

---

diff -Nru a/arch/ppc/Kconfig b/arch/ppc/Kconfig
--- a/arch/ppc/Kconfig 2005-03-18 17:15:04 -06:00
+++ b/arch/ppc/Kconfig 2005-03-18 17:15:04 -06:00
@@ -733,7 +733,7 @@
depends on SANDPOINT || MCPN765 || SPRUCE || PPLUS || PCORE || \
PRPMC750 || K2 || PRPMC800 || LOPEC || \
(EV64260 && !SERIAL_MPSC) || CHESTNUT || RADSTONE_PPC7D || \
- MPC834x_SYS
+ 83xx
default y

config FORCE
diff -Nru a/arch/ppc/platforms/83xx/mpc834x_sys.c b/arch/ppc/platforms/83xx/mpc834x_sys.c
--- a/arch/ppc/platforms/83xx/mpc834x_sys.c 2005-03-18 17:15:04 -06:00
+++ b/arch/ppc/platforms/83xx/mpc834x_sys.c 2005-03-18 17:15:04 -06:00
@@ -243,14 +243,14 @@

memset(&p, 0, sizeof (p));
p.iotype = SERIAL_IO_MEM;
- p.membase = (unsigned char __iomem *)immrbar + 0x4500;
+ p.membase = (unsigned char __iomem *)(VIRT_IMMRBAR + 0x4500);
p.uartclk = binfo->bi_busfreq;

gen550_init(0, &p);

memset(&p, 0, sizeof (p));
p.iotype = SERIAL_IO_MEM;
- p.membase = (unsigned char __iomem *)immrbar + 0x4500;
+ p.membase = (unsigned char __iomem *)(VIRT_IMMRBAR + 0x4600);
p.uartclk = binfo->bi_busfreq;

gen550_init(1, &p);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:11    [W:0.030 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site