summaryrefslogtreecommitdiff
path: root/arch/arm/mach-zynqmp/psu_spl_init.c
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2019-12-03 15:02:50 +0100
committerMichal Simek <michal.simek@xilinx.com>2020-01-14 09:05:53 +0100
commite82024def64569bd7cabb430b4cef9a4c102f2be (patch)
treee9ff522f48ff611690df50af3457e2b776bd0311 /arch/arm/mach-zynqmp/psu_spl_init.c
parentfc274a593217de8f8450274275528c29c7678064 (diff)
arm64: zynqmp: Do not assing MIO34 that early on zcu100
MIO34 is connected to POWER_KILL signal. When MIO configuration is done in psu_init() and this pin is assigned to PMU but PMU configuration is not loaded yet. PMU gpio output is high that means board is powered off immediately. The patch is fixing this sequence that MIO34 stays assing to ps gpio IP. PMU config is loaded in SPL and then pin assigned to PMU through psu_post_config_data(). Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm/mach-zynqmp/psu_spl_init.c')
-rw-r--r--arch/arm/mach-zynqmp/psu_spl_init.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-zynqmp/psu_spl_init.c b/arch/arm/mach-zynqmp/psu_spl_init.c
index b357de32358..b6abdfd608e 100644
--- a/arch/arm/mach-zynqmp/psu_spl_init.c
+++ b/arch/arm/mach-zynqmp/psu_spl_init.c
@@ -77,3 +77,12 @@ __weak int psu_init(void)
*/
return -1;
}
+
+__weak unsigned long psu_post_config_data(void)
+{
+ /*
+ * This function is overridden by the one in
+ * board/xilinx/zynqmp/(platform)/psu_init_gpl.c, if it exists.
+ */
+ return 0;
+}