xen/arm: add support for early printk for HiSilicon D01 platform
authorFrediano Ziglio <freddy77@gmail.com>
Thu, 2 Oct 2014 15:48:53 +0000 (16:48 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 3 Oct 2014 09:23:43 +0000 (10:23 +0100)
This platform use a standard 8250 device on port 0xe4007000.

Signed-off-by: Frediano Ziglio <frediano.ziglio@huawei.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
docs/misc/arm/early-printk.txt
xen/arch/arm/Rules.mk

index 3d5a8fddb6424154283ca82db3f3886804a884fb..843c4f5d3ce2ec918248efba0bedf01d173626f5 100644 (file)
@@ -17,6 +17,7 @@ where mach is the name of the machine:
   - sun6i: printk with 8250 on Allwinner A31 processors
   - sun7i: printk with 8250 on Allwinner A20 processors
   - brcm: printk with 8250 on Broadcom 7445D0 boards with A15 processors.
+  - hip04-d01: printk with 8250 on HiSilicon Hip-04 D01
 
 The base address and baud rate is hardcoded in xen/arch/arm/Rules.mk,
 see there when adding support for new machines.
index d369b40c4d9bccacac278894832f328386642bea..fe7eea5f843671360fe3be1e8d07120beb5a4c29 100644 (file)
@@ -100,6 +100,12 @@ EARLY_PRINTK_INC := pl011
 EARLY_PRINTK_BAUD := 115200
 EARLY_UART_BASE_ADDRESS := 0x7ff80000
 endif
+ifeq ($(CONFIG_EARLY_PRINTK), hip04-d01)
+EARLY_PRINTK_INC := 8250
+EARLY_PRINTK_BAUD := 115200
+EARLY_UART_BASE_ADDRESS := 0xE4007000
+EARLY_UART_REG_SHIFT := 2
+endif
 
 ifneq ($(EARLY_PRINTK_INC),)
 EARLY_PRINTK := y