imx: imx8qm/imx8qxp: Power down the resources before SPL jump to u-boot
[oweals/u-boot.git] / board / freescale / imx8qxp_mek / spl.c
index e4e4cbe7163cd46091f77a92ed709ae9bbded823..32b61095b0671689951dda7251dcec7fc6daf51b 100644 (file)
@@ -17,6 +17,7 @@
 #include <asm/arch/sci/sci.h>
 #include <asm/arch/imx8-pins.h>
 #include <asm/arch/iomux.h>
+#include <asm/arch/sys_proto.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -55,6 +56,11 @@ void spl_board_init(void)
        puts("Normal Boot\n");
 }
 
+void spl_board_prepare_for_boot(void)
+{
+       imx_power_off_pd_devices(NULL, 0);
+}
+
 #ifdef CONFIG_SPL_LOAD_FIT
 int board_fit_config_name_match(const char *name)
 {