Skip to content

Commit

Permalink
[ARM] pxa: allow display of uncompress message through STUART
Browse files Browse the repository at this point in the history
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: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Eric Miao authored and Russell King committed Jul 9, 2008
1 parent b18773d commit 6d3dfe4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions include/asm-arm/arch-pxa/uncompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

#include <linux/serial_reg.h>
#include <asm/arch/pxa-regs.h>
#include <asm/mach-types.h>

#define __REG(x) ((volatile unsigned long *)x)

#define UART FFUART
#define __REG(x) ((volatile unsigned long *)x)

static volatile unsigned long *UART = FFUART;

static inline void putc(char c)
{
Expand All @@ -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
*/
#define arch_decomp_setup()
#define arch_decomp_wdog()

0 comments on commit 6d3dfe4

Please sign in to comment.