[ARM] pxa: refactor uncompress.h for non-PXA uarts
authorEric Miao <eric.y.miao@gmail.com>
Fri, 19 Feb 2010 05:49:39 +0000 (13:49 +0800)
committerEric Miao <eric.y.miao@gmail.com>
Mon, 1 Mar 2010 23:40:58 +0000 (07:40 +0800)
commitc95efee13303d9ff9e67f2600174f492039311ce
treef9bfd75688391f2dc999e8431e049371bba8fc97
parent2029e5643a3c4fdd4ad20169fb950cc16e023d0c
[ARM] pxa: refactor uncompress.h for non-PXA uarts

The original patch came from Marc Zyngier where support of 8250-compatible
UART is required to show the uncompress information. Modified a little bit
here, including changes below:

1. #include <mach/regs-uart.h> is actually not necessary
2. introduced uart_{read,write}() for different base and shift
3. introduced uart_is_enabled() and assumed enabled always for
   non-PXA uarts

Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Acked-by: Marc Zyngier <maz@misterjones.org>
arch/arm/mach-pxa/include/mach/uncompress.h