]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
arm/early-printk: add Calxeda Midway UART support
authorAndre Przywara <andre.przywara@calxeda.com>
Fri, 24 May 2013 13:47:30 +0000 (15:47 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 30 May 2013 08:20:41 +0000 (09:20 +0100)
With the help of the previous patches add a stanza to
xen/arch/arm/Rules.mk to specify the UART configuration of the
Calxeda Midway machine.
The information has been taken from the Linux kernel's .dts file.
This can be enabled by adding "CONFIG_EARLY_PRINTK=midway" to
Config.mk.

Signed-off-by: Andre Przywara <andre.przywara@calxeda.com>
Reviewed-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
docs/misc/arm/early-printk.txt
xen/arch/arm/Rules.mk

index e423cc4b545a68d2a8d9c7b13890a6e130c7c5aa..fbc32087d88ce6a6f6c74ce392557046def2795d 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_EARLY_PRINTK=mach
 where mach is the name of the machine:
   - vexpress: printk with pl011 for versatile express
   - exynos5250: printk with the second UART
+  - midway: printk with the pl011 on Calxeda Midway processors
   - fastmodel: printk on ARM Fastmodel software emulators
 
 The base address and baud rate is hardcoded in xen/arch/arm/Rules.mk,
index d010c69eeae9d414796c4dad87125d24886d6db6..422ed04cbe5b2031c77f4b71ddd56e2361027fc7 100644 (file)
@@ -59,6 +59,11 @@ EARLY_PRINTK_INIT_UART := y
 EARLY_PRINTK_BAUD := 115200
 EARLY_UART_BASE_ADDRESS := 0x12c20000
 endif
+ifeq ($(CONFIG_EARLY_PRINTK), midway)
+EARLY_PRINTK_INC := pl011
+EARLY_PRINTK_BAUD := 115200
+EARLY_UART_BASE_ADDRESS := 0xfff36000
+endif
 
 ifneq ($(EARLY_PRINTK_INC),)
 EARLY_PRINTK := y