arm64: Add Xilinx ZynqMP support
Subsystems (2)
PATCH v2 1/1 arm64: Add Xilinx ZynqMP support
Add basic Xilinx ZynqMP arm64 support.
Serial and SD is supported.
It supports emulation platfrom ep108 and QEMU.
Signed-off-by Michal Simek <[email protected]>
---
Changes in v2:
- Remove hardcoded MAC and unused initrd_X variables
- Use prepared kernel/fdt variables and fix their values both reported by Tom
MAINTAINERS | 6 ++ arch/arm/Kconfig | 5 + arch/arm/cpu/armv8/Makefile | 1 + arch/arm/cpu/armv8/zynqmp/Makefile | 9 ++ arch/arm/cpu/armv8/zynqmp/clk.c | 49 ++++++++++ arch/arm/cpu/armv8/zynqmp/cpu.c | 28 ++++++ arch/arm/include/asm/arch-zynqmp/clk.h | 13 +++ arch/arm/include/asm/arch-zynqmp/hardware.h | 52 +++++++++++ arch/arm/include/asm/arch-zynqmp/sys_proto.h | 15 +++ board/xilinx/zynqmp/Kconfig | 15 +++ board/xilinx/zynqmp/MAINTAINERS | 6 ++ board/xilinx/zynqmp/Makefile | 8 ++ board/xilinx/zynqmp/zynqmp.c | 90 ++++++++++++++++++ configs/xilinx_zynqmp_defconfig | 14 +++ include/configs/xilinx_zynqmp.h | 131 +++++++++++++++++++++++++++ 15 files changed, 442 insertions(+) create mode 100644 arch/arm/cpu/armv8/zynqmp/Makefile create mode 100644 arch/arm/cpu/armv8/zynqmp/clk.c create mode 100644 arch/arm/cpu/armv8/zynqmp/cpu.c create mode 100644 arch/arm/include/asm/arch-zynqmp/clk.h create mode 100644 arch/arm/include/asm/arch-zynqmp/hardware.h create mode 100644 arch/arm/include/asm/arch-zynqmp/sys_proto.h create mode 100644 board/xilinx/zynqmp/Kconfig create mode 100644 board/xilinx/zynqmp/MAINTAINERS create mode 100644 board/xilinx/zynqmp/Makefile create mode 100644 board/xilinx/zynqmp/zynqmp.c create mode 100644 configs/xilinx_zynqmp_defconfig create mode 100644 include/configs/xilinx_zynqmp.h
MAINTAINERS +6 -0
@@ -173,6 +173,12 @@ S: Maintained F: arch/arm/cpu/armv7/zynq/ F: arch/arm/include/asm/arch-zynq/ +ARM ZYNQMP +M: Michal Simek <[email protected]> +S: Maintained +F: arch/arm/cpu/armv8/zynqmp/ +F: arch/arm/include/asm/arch-zynqmp/ + AVR32 M: Andreas Bie?mann <[email protected]> S: Maintained
arch/arm/Kconfig +5 -0
@@ -592,6 +592,10 @@ config ZYNQ select CPU_V7 select SUPPORT_SPL +config TARGET_XILINX_ZYNQMP + bool "Support Xilinx ZynqMP Platform" + select ARM64 + config TEGRA bool "NVIDIA Tegra" select SUPPORT_SPL
@@ -840,6 +844,7 @@ source "board/vpac270/Kconfig" source "board/wandboard/Kconfig" source "board/woodburn/Kconfig" source "board/xaeniax/Kconfig" +source "board/xilinx/zynqmp/Kconfig" source "board/zipitz2/Kconfig" source "arch/arm/Kconfig.debug"
arch/arm/cpu/armv8/Makefile +1 -0
@@ -16,3 +16,4 @@ obj-y += tlb.o obj-y += transition.o obj-$(CONFIG_FSL_LSCH3) += fsl-lsch3/ +obj-$(CONFIG_TARGET_XILINX_ZYNQMP) += zynqmp/
arch/arm/cpu/armv8/zynqmp/Makefile new file +9 -0
@@ -0,0 +1,9 @@ +# +# (C) Copyright 2014 - 2015 Xilinx, Inc. +# Michal Simek <[email protected]> +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y += clk.o +obj-y += cpu.o
arch/arm/cpu/armv8/zynqmp/clk.c new file +49 -0
49 lines not on this page · raw message
arch/arm/cpu/armv8/zynqmp/cpu.c new file +28 -0
@@ -0,0 +1,28 @@ +/* +* (C) Copyright 2014 - 2015 Xilinx, Inc. +* Michal Simek <[email protected]> +* +* SPDX-License-Identifier: GPL-2.0+ +*/ + +#include <common.h> +#include <asm/arch/hardware.h> +#include <asm/arch/sys_proto.h> +#include <asm/io.h> + +#define ZYNQ_SILICON_VER_MASK 0xF000 +#define ZYNQ_SILICON_VER_SHIFT 12 + +DECLARE_GLOBAL_DATA_PTR ; + +unsigned int zynqmp_get_silicon_version (void ) +{ + gd->cpu_clk =get_tbclk (); + +switch (gd->cpu_clk) { +case 50000000 : +return ZYNQMP_CSU_VERSION_QEMU ; + } + +return ZYNQMP_CSU_VERSION_EP108 ; +}
arch/arm/include/asm/arch-zynqmp/clk.h new file +13 -0
@@ -0,0 +1,13 @@ +/* +* (C) Copyright 2014 - 2015 Xilinx, Inc. +* Michal Simek <[email protected]> +* +* SPDX-License-Identifier: GPL-2.0+ +*/ + +#ifndef _ASM_ARCH_CLK_H_ +#define _ASM_ARCH_CLK_H_ + +unsigned long get_uart_clk (int dev_id); + +#endif /* _ASM_ARCH_CLK_H_ */
arch/arm/include/asm/arch-zynqmp/hardware.h new file +52 -0
52 lines not on this page · raw message
arch/arm/include/asm/arch-zynqmp/sys_proto.h new file +15 -0
@@ -0,0 +1,15 @@ +/* +* (C) Copyright 2014 - 2015 Xilinx, Inc. +* Michal Simek <[email protected]> +* +* SPDX-License-Identifier: GPL-2.0+ +*/ + +#ifndef _ASM_ARCH_SYS_PROTO_H +#define _ASM_ARCH_SYS_PROTO_H + +int zynq_sdhci_init (unsigned long regbase); + +unsigned int zynqmp_get_silicon_version (void ); + +#endif /* _ASM_ARCH_SYS_PROTO_H */
board/xilinx/zynqmp/Kconfig new file +15 -0
@@ -0,0 +1,15 @@ +if TARGET_XILINX_ZYNQMP + +config SYS_BOARD + default "zynqmp" + +config SYS_VENDOR + default "xilinx" + +config SYS_SOC + default "zynqmp" + +config SYS_CONFIG_NAME + default "xilinx_zynqmp" + +endif
board/xilinx/zynqmp/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +XILINX_ZYNQMP BOARD +M: Michal Simek <[email protected]> +S: Maintained +F: board/xilinx/zynqmp/ +F: include/configs/xilinx_zynqmp.h +F: configs/xilinx_zynqmp_defconfig
board/xilinx/zynqmp/Makefile new file +8 -0
@@ -0,0 +1,8 @@ +# +# (C) Copyright 2014 - 2015 Xilinx, Inc. +# Michal Simek <[email protected]> +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y := zynqmp.o
board/xilinx/zynqmp/zynqmp.c new file +90 -0
90 lines not on this page · raw message
configs/xilinx_zynqmp_defconfig new file +14 -0
@@ -0,0 +1,14 @@ +CONFIG_ARM=y +CONFIG_TARGET_XILINX_ZYNQMP=y +CONFIG_CMD_BDI=y +CONFIG_CMD_BOOTD=y +CONFIG_CMD_RUN=y +CONFIG_CMD_IMI=y +CONFIG_CMD_SAVEENV=y +CONFIG_CMD_FLASH=y +CONFIG_CMD_ECHO=y +CONFIG_CMD_SOURCE=y +CONFIG_CMD_TIME=y +CONFIG_CMD_MISC=y +CONFIG_CMD_TIMER=y +CONFIG_DEFAULT_DEVICE_TREE="zynqmp"
include/configs/xilinx_zynqmp.h new file +131 -0
131 lines not on this page · raw message
Signature · 1 line
1.8.2.3
PATCH v2 1/1 arm64: Add Xilinx ZynqMP support
Quoted 5 lines · Michal Simek
Add basic Xilinx ZynqMP arm64 support.
Serial and SD is supported.
It supports emulation platfrom ep108 and QEMU.Signed-off-by Michal Simek <[email protected]>
You can switch to bootm_size once you've had time to play around with it more, so..
Reviewed-by Tom Rini <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150302/6e8e510f/attachment.sig>