summaryrefslogtreecommitdiff
path: root/arch/arm/include
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2009-05-15 11:51:47 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2009-09-08 13:19:43 +0100
commit7860173c5e251e9be14d33873ad769d314180df7 (patch)
tree0ca8133479952a5af0d3effed5325ec7abd491f1 /arch/arm/include
parentc40c3ca8df8d4b7f32fb65aa6102be0b94a7b06d (diff)
Adapt the decompressor for standalone booting
This patch initialises the UART in compressed/head.S if CONFIG_NAKED_BOOT is enabled and also forces the linking of the decompressor at ZRELADDR. This way, models can load the arch/arm/boot/compressed/vmlinux file directly. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/hardware/debug-pl01x.S8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/include/asm/hardware/debug-pl01x.S b/arch/arm/include/asm/hardware/debug-pl01x.S
index f9fd083eff63..1605bc1a64bb 100644
--- a/arch/arm/include/asm/hardware/debug-pl01x.S
+++ b/arch/arm/include/asm/hardware/debug-pl01x.S
@@ -12,6 +12,14 @@
*/
#include <linux/amba/serial.h>
+ .macro inituart,rd,rx
+ mov \rd, #0x10
+ str \rd, [\rx, #UART011_IBRD]
+ mov \rd, #0xc300
+ orr \rd, #0x0001
+ str \rd, [\rx, #UART011_CR]
+ .endm
+
.macro senduart,rd,rx
strb \rd, [\rx, #UART01x_DR]
.endm