]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynqmp: Enable U-Boot run without ATF
authorMichal Simek <michal.simek@xilinx.com>
Wed, 29 Jul 2015 11:10:02 +0000 (13:10 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 29 Jul 2015 11:12:41 +0000 (13:12 +0200)
Enable Secure IOU setup to enable U-Boot to run 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 ebabfc12f627b31b5870d5a744267c42c0f7ade0..9548ab29110fe00e0cf423a32070c3ae2ecf5b6b 100644 (file)
@@ -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"
 
index 843976af902ae1df0abe9314d2bd080a63a9289a..a809e0cb5296402a145c1d130ab1be7e674dd66a 100644 (file)
@@ -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