Skip to content

Commit

Permalink
[ARM] 4663/1: Only putc uncompressor output into FFUART if it was ena…
Browse files Browse the repository at this point in the history
…bled by the bootloader

Also, use existing register and bit definitions instead of numbers.

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Acked-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Philipp Zabel authored and Russell King committed Jan 26, 2008
1 parent 6bc54e6 commit 49db76e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions include/asm-arm/arch-pxa/uncompress.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
* published by the Free Software Foundation.
*/

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

#define FFUART ((volatile unsigned long *)0x40100000)
#define BTUART ((volatile unsigned long *)0x40200000)
#define STUART ((volatile unsigned long *)0x40700000)
Expand All @@ -19,9 +22,11 @@

static inline void putc(char c)
{
while (!(UART[5] & 0x20))
if (!(UART[UART_IER] & IER_UUE))
return;
while (!(UART[UART_LSR] & LSR_TDRQ))
barrier();
UART[0] = c;
UART[UART_TX] = c;
}

/*
Expand Down

0 comments on commit 49db76e

Please sign in to comment.