Add support for Xilinx ZynqMP SoC
v4 cover Add support for Xilinx ZynqMP SoC
From: "Edgar E. Iglesias" <[email protected]>
Changelog:
v3 -> v4:
* Move the grant table range to a reserved area. (Julien review)
v2 -> v3:
* Fix coding style issues. (Julien review)
v1 -> v2:
* Rebase with upstream/staging to fix the device-tree device matching. (Ian review)
Edgar E. Iglesias (3):
xen/arm: Add Xilinx ZynqMP platform support
xen/arm: Add Cadence UART driver
xen/arm: Add Xilinx ZynqMP early printk support
config/arm64.mk | 1 + docs/misc/arm/early-printk.txt | 1 + xen/arch/arm/Rules.mk | 6 + xen/arch/arm/arm64/debug-cadence.inc | 45 +++++++ xen/arch/arm/platforms/Makefile | 1 + xen/arch/arm/platforms/xilinx-zynqmp.c | 41 ++++++ xen/drivers/char/Makefile | 1 + xen/drivers/char/cadence-uart.c | 224 +++++++++++++++++++++++++++++++++ xen/include/asm-arm/cadence-uart.h | 55 ++++++++ 9 files changed, 375 insertions(+) create mode 100644 xen/arch/arm/arm64/debug-cadence.inc create mode 100644 xen/arch/arm/platforms/xilinx-zynqmp.c create mode 100644 xen/drivers/char/cadence-uart.c create mode 100644 xen/include/asm-arm/cadence-uart.h
Signature · 1 line
1.9.1
PATCH v4 1/3 xen/arm: Add Xilinx ZynqMP platform support
From: "Edgar E. Iglesias" <[email protected]>
--- xen/arch/arm/platforms/Makefile | 1 + xen/arch/arm/platforms/xilinx-zynqmp.c | 41 ++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 xen/arch/arm/platforms/xilinx-zynqmp.c
xen/arch/arm/platforms/Makefile +1 -0
@@ -8,3 +8,4 @@ obj-$(CONFIG_ARM_32) += rcar2.o obj-$(CONFIG_ARM_64) += seattle.o obj-$(CONFIG_ARM_64) += xgene-storm.o obj-$(CONFIG_ARM_64) += thunderx.o +obj-$(CONFIG_ARM_64) += xilinx-zynqmp.o
xen/arch/arm/platforms/xilinx-zynqmp.c new file +41 -0
41 lines not on this page · raw message
Signature · 1 line
1.9.1
Re: [PATCH v4 1/3] xen/arm: Add Xilinx ZynqMP platform support
Hi Edgar,
xen/arch/arm/platforms/Makefile obj-$(CONFIG_ARM_32) += rcar2.o · line 11
Quoted 9 lines · Edgar E. Iglesias
xen/arch/arm/platforms/Makefile +1
-0@@ -8,3 +8,4 @@ obj-$(CONFIG_ARM_32) += rcar2.o obj-$(CONFIG_ARM_64) += seattle.o obj-$(CONFIG_ARM_64) += xgene-storm.o obj-$(CONFIG_ARM_64) += thunderx.o +obj-$(CONFIG_ARM_64) += xilinx-zynqmp.o
Can you move this line after xgene-storm.o? So we can keep the list ordered.
Other than that:
Regards,
Signature · 1 line
Julien Grall
Re: [PATCH v4 1/3] xen/arm: Add Xilinx ZynqMP platform support
Quoted 14 lines · Julien Grall
Hi Edgar,
xen/arch/arm/platforms/Makefile obj-$(CONFIG_ARM_32) += rcar2.o · line 11
Quoted 9 lines · Edgar E. Iglesias
xen/arch/arm/platforms/Makefile +1
-0@@ -8,3 +8,4 @@ obj-$(CONFIG_ARM_32) += rcar2.o obj-$(CONFIG_ARM_64) += seattle.o obj-$(CONFIG_ARM_64) += xgene-storm.o obj-$(CONFIG_ARM_64) += thunderx.o +obj-$(CONFIG_ARM_64) += xilinx-zynqmp.oCan you move this line after xgene-storm.o? So we can keep the list ordered.
It's clearly not ordered right now, thunderx is after xgene-storm. No need to resend IMHO. Perhaps I'll sort them on commit.
Quoted 7 lines
Other than that:
Reviewed-by Julien Grall <[email protected]>Regards,
Re: [PATCH v4 1/3] xen/arm: Add Xilinx ZynqMP platform support
Quoted 16 lines · Ian Campbell
Quoted 14 lines · Julien Grall
Hi Edgar,
xen/arch/arm/platforms/Makefile obj-$(CONFIG_ARM_32) += rcar2.o · line 11
Quoted 9 lines · Edgar E. Iglesias
xen/arch/arm/platforms/Makefile +1
-0@@ -8,3 +8,4 @@ obj-$(CONFIG_ARM_32) += rcar2.o obj-$(CONFIG_ARM_64) += seattle.o obj-$(CONFIG_ARM_64) += xgene-storm.o obj-$(CONFIG_ARM_64) += thunderx.o +obj-$(CONFIG_ARM_64) += xilinx-zynqmp.oCan you move this line after xgene-storm.o? So we can keep the list ordered.
Quoted 2 lines
It's clearly not ordered right now, thunderx is after xgene-storm. No need to resend IMHO. Perhaps I'll sort them on commit.
Oh right, somehow I though the letter x was before letter t.
Sorry for the noise.
Regards,
Signature · 1 line
Julien Grall
PATCH v4 2/3 xen/arm: Add Cadence UART driver
In reply to Edgar E. Iglesias--- config/arm64.mk | 1 + xen/drivers/char/Makefile | 1 + xen/drivers/char/cadence-uart.c | 224 +++++++++++++++++++++++++++++++++++++ xen/include/asm-arm/cadence-uart.h | 55 +++++++++ 4 files changed, 281 insertions(+) create mode 100644 xen/drivers/char/cadence-uart.c create mode 100644 xen/include/asm-arm/cadence-uart.h
config/arm64.mk +1 -0
@@ -7,6 +7,7 @@ CONFIG_XEN_INSTALL_SUFFIX := CFLAGS += #-marm -march= -mcpu= etc HAS_PL011 := y +HAS_CADENCE_UART := y HAS_NS16550 := y # Use only if calling $(LD) directly.
xen/drivers/char/Makefile +1 -0
@@ -1,5 +1,6 @@ obj-y += console.o obj-$(HAS_NS16550) += ns16550.o +obj-$(HAS_CADENCE_UART) += cadence-uart.o obj-$(HAS_PL011) += pl011.o obj-$(HAS_EXYNOS4210) += exynos4210-uart.o obj-$(HAS_OMAP) += omap-uart.o
xen/drivers/char/cadence-uart.c new file +224 -0
224 lines not on this page · raw message
xen/include/asm-arm/cadence-uart.h new file +55 -0
55 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH v4 3/3 xen/arm: Add Xilinx ZynqMP early printk support
In reply to Edgar E. IglesiasFrom: "Edgar E. Iglesias" <[email protected]>
--- docs/misc/arm/early-printk.txt | 1 + xen/arch/arm/Rules.mk | 6 +++++ xen/arch/arm/arm64/debug-cadence.inc | 45 ++++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 xen/arch/arm/arm64/debug-cadence.inc
docs/misc/arm/early-printk.txt +1 -0
@@ -21,6 +21,7 @@ where mach is the name of the machine: - seattle: printk with pl011 for AMD Seattle processor - lager: printk with SCIF0 on Renesas R-Car H2 processors - thunderx: printk with pl011 for Cavium ThunderX processor + - zynqmp: printk with Cadence UART for Xilinx ZynqMP SoCs The base address and baud rate is hardcoded in xen/arch/arm/Rules.mk, see there when adding support for new machines.
xen/arch/arm/Rules.mk +6 -0
@@ -118,6 +118,12 @@ EARLY_PRINTK_INC := pl011 EARLY_UART_BASE_ADDRESS := 0x87e024000000 endif +ifeq ($(CONFIG_EARLY_PRINTK), zynqmp) +EARLY_PRINTK_INC := cadence +EARLY_PRINTK_BAUD := 115200 +EARLY_UART_BASE_ADDRESS := 0xff000000 +endif + ifneq ($(EARLY_PRINTK_INC),) EARLY_PRINTK := y endif
xen/arch/arm/arm64/debug-cadence.inc new file +45 -0
45 lines not on this page · raw message
Signature · 1 line
1.9.1
Quoted 1 line · Edgar E. Iglesias
From: "Edgar E. Iglesias" <[email protected]>
All applied, thanks.