summaryrefslogtreecommitdiff
path: root/include/asm-arm/arch-at91/uncompress.h
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@snapgear.com>2007-05-18 06:28:01 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-07-12 11:11:21 +0100
commitb54942f8203689014f80ec89c55ccb1f48ab1166 (patch)
tree9a1021750b70e4b67ffb049eb44ae78bf25097df /include/asm-arm/arch-at91/uncompress.h
parentd0f9b55ece0ec1ffc9e2e57fd7a79200994aead4 (diff)
[ARM] 4391/1: make at91 debug unit support optional
The AT91x40 family doesn't have the debug unit like its bigger brothers. But it does have the ID and extension registers (with the bit meanings the same). Reorganize at91_dbgu.h to cater for this. This also affects the load uncompressor, since it outputs to the debug port. Signed-off-by: Greg Ungerer <gerg@uclinux.org> Acked-by: Andrew Victor <andrew@sanpeople.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/arch-at91/uncompress.h')
-rw-r--r--include/asm-arm/arch-at91/uncompress.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-arm/arch-at91/uncompress.h b/include/asm-arm/arch-at91/uncompress.h
index 30ac587b3b41..272a7e0dc6cf 100644
--- a/include/asm-arm/arch-at91/uncompress.h
+++ b/include/asm-arm/arch-at91/uncompress.h
@@ -33,20 +33,24 @@
*/
static void putc(int c)
{
+#ifdef AT91_DBGU
void __iomem *sys = (void __iomem *) AT91_BASE_SYS; /* physical address */
while (!(__raw_readl(sys + AT91_DBGU_SR) & AT91_DBGU_TXRDY))
barrier();
__raw_writel(c, sys + AT91_DBGU_THR);
+#endif
}
static inline void flush(void)
{
+#ifdef AT91_DBGU
void __iomem *sys = (void __iomem *) AT91_BASE_SYS; /* physical address */
/* wait for transmission to complete */
while (!(__raw_readl(sys + AT91_DBGU_SR) & AT91_DBGU_TXEMPTY))
barrier();
+#endif
}
#define arch_decomp_setup()