From: Michal Simek Date: Wed, 29 Jul 2015 11:10:02 +0000 (+0200) Subject: zynqmp: Enable U-Boot run without ATF X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=feb21bfcc7ebd31199df9c8abe7c0a78f8eb1b41;p=thirdparty%2Fu-boot.git zynqmp: Enable U-Boot run without ATF Enable Secure IOU setup to enable U-Boot to run without setting from ATF. Signed-off-by: Michal Simek --- diff --git a/arch/arm/cpu/armv8/zynqmp/Kconfig b/arch/arm/cpu/armv8/zynqmp/Kconfig index ebabfc12f62..9548ab29110 100644 --- a/arch/arm/cpu/armv8/zynqmp/Kconfig +++ b/arch/arm/cpu/armv8/zynqmp/Kconfig @@ -20,6 +20,10 @@ config SYS_SOC config SYS_CONFIG_NAME default "xilinx_zynqmp_ep" if TARGET_ZYNQMP_EP +config SECURE_IOU + bool "Configure ZynqMP secure IOU" + default n + config ZYNQMP_QSPI bool "Configure ZynqMP QSPI" diff --git a/arch/arm/include/asm/arch-zynqmp/hardware.h b/arch/arm/include/asm/arch-zynqmp/hardware.h index 843976af902..a809e0cb529 100644 --- a/arch/arm/include/asm/arch-zynqmp/hardware.h +++ b/arch/arm/include/asm/arch-zynqmp/hardware.h @@ -47,7 +47,11 @@ struct crlapb_regs { #define crlapb_base ((struct crlapb_regs *)ZYNQMP_CRL_APB_BASEADDR) +#if defined(CONFIG_SECURE_IOU) +#define ZYNQMP_IOU_SCNTR 0xFF260000 +#else #define ZYNQMP_IOU_SCNTR 0xFF250000 +#endif #define ZYNQMP_IOU_SCNTR_COUNTER_CONTROL_REGISTER_EN 0x1 #define ZYNQMP_IOU_SCNTR_COUNTER_CONTROL_REGISTER_HDBG 0x2