zynqmp: Enable U-Boot run in EL3
authorMichal Simek <michal.simek@xilinx.com>
Wed, 29 Jul 2015 11:10:02 +0000 (13:10 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 19 Aug 2015 09:23:13 +0000 (11:23 +0200)
Enable Secure IOU setup to enable U-Boot to run in EL3 without
setting from ATF.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/cpu/armv8/zynqmp/Kconfig
arch/arm/include/asm/arch-zynqmp/hardware.h

index c8fcfb6abbc115521ccacc8bd0d94e788f8a366f..5f797406bf86172bfba5c59333efabe7dc29fedf 100644 (file)
@@ -20,4 +20,8 @@ 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
+
 endif
index 7640eabad13e2ad6138aa490520d749bc48f96b5..f655d72d2ce1eeadba8a0b136257586bec02ed18 100644 (file)
@@ -44,7 +44,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