Commit 6d3dfe4a authored by Eric Miao's avatar Eric Miao Committed by Russell King

[ARM] pxa: allow display of uncompress message through STUART

Some boards use UART other than FFUART for the console, E.g. Marvell
PXA3xx Form Factor Platform (aka Littleton) uses STUART. This patch
modifies the uncompress.h so that display of the uncompress message
is routed to the STUART.
Signed-off-by: default avatarEric Miao <eric.miao@marvell.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent b18773d5
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
#include <linux/serial_reg.h> #include <linux/serial_reg.h>
#include <asm/arch/pxa-regs.h> #include <asm/arch/pxa-regs.h>
#include <asm/mach-types.h>
#define __REG(x) ((volatile unsigned long *)x) #define __REG(x) ((volatile unsigned long *)x)
#define UART FFUART
static volatile unsigned long *UART = FFUART;
static inline void putc(char c) static inline void putc(char c)
{ {
...@@ -33,8 +33,13 @@ static inline void flush(void) ...@@ -33,8 +33,13 @@ static inline void flush(void)
{ {
} }
static inline void arch_decomp_setup(void)
{
if (machine_is_littleton())
UART = STUART;
}
/* /*
* nothing to do * nothing to do
*/ */
#define arch_decomp_setup()
#define arch_decomp_wdog() #define arch_decomp_wdog()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment