summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mmp/include/mach/uncompress.h
diff options
context:
space:
mode:
authorroot2009-03-24 23:04:25 +0100
committerRussell King2009-03-24 23:04:25 +0100
commit9a38e989b8ce04923f919fc2a8a24eb07fb484e2 (patch)
tree6b99638dc32b99420ada46ca8d1373ad7aa5a208 /arch/arm/mach-mmp/include/mach/uncompress.h
parentMerge branch 'master' of git://git.marvell.com/orion into devel (diff)
parentMAINTAINERS: update pxa910 maintainers (diff)
downloadkernel-qcow2-linux-9a38e989b8ce04923f919fc2a8a24eb07fb484e2.tar.gz
kernel-qcow2-linux-9a38e989b8ce04923f919fc2a8a24eb07fb484e2.tar.xz
kernel-qcow2-linux-9a38e989b8ce04923f919fc2a8a24eb07fb484e2.zip
Merge branch 'devel' of git://git.kernel.org/pub/scm/linux/kernel/git/ycmiao/pxa-linux-2.6 into devel
Diffstat (limited to 'arch/arm/mach-mmp/include/mach/uncompress.h')
-rw-r--r--arch/arm/mach-mmp/include/mach/uncompress.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/arch/arm/mach-mmp/include/mach/uncompress.h b/arch/arm/mach-mmp/include/mach/uncompress.h
new file mode 100644
index 000000000000..c93d5fa5865c
--- /dev/null
+++ b/arch/arm/mach-mmp/include/mach/uncompress.h
@@ -0,0 +1,41 @@
+/*
+ * arch/arm/mach-mmp/include/mach/uncompress.h
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <linux/serial_reg.h>
+#include <mach/addr-map.h>
+
+#define UART1_BASE (APB_PHYS_BASE + 0x36000)
+#define UART2_BASE (APB_PHYS_BASE + 0x17000)
+#define UART3_BASE (APB_PHYS_BASE + 0x18000)
+
+static inline void putc(char c)
+{
+ volatile unsigned long *UART = (unsigned long *)UART2_BASE;
+
+ /* UART enabled? */
+ if (!(UART[UART_IER] & UART_IER_UUE))
+ return;
+
+ while (!(UART[UART_LSR] & UART_LSR_THRE))
+ barrier();
+
+ UART[UART_TX] = c;
+}
+
+/*
+ * This does not append a newline
+ */
+static inline void flush(void)
+{
+}
+
+/*
+ * nothing to do
+ */
+#define arch_decomp_setup()
+#define arch_decomp_wdog()