From 558d7d898f1d4061f68ed9399f2fefc8758d6176 Mon Sep 17 00:00:00 2001 From: Ye Li Date: Mon, 22 Apr 2019 23:53:15 -0700 Subject: [PATCH] MLK-21848-4 iMX8QXP/QM: SPL: Disable power domain before booting into next level Disable the power domain for the devices we used in SPL before we booting into ATF Signed-off-by: Ye Li --- board/freescale/imx8qm_arm2/spl.c | 6 ++++++ board/freescale/imx8qm_mek/spl.c | 6 ++++++ board/freescale/imx8qxp_arm2/spl.c | 6 ++++++ board/freescale/imx8qxp_mek/spl.c | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/board/freescale/imx8qm_arm2/spl.c b/board/freescale/imx8qm_arm2/spl.c index cb4006eb2a..a38d947bb5 100644 --- a/board/freescale/imx8qm_arm2/spl.c +++ b/board/freescale/imx8qm_arm2/spl.c @@ -12,6 +12,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -37,6 +38,11 @@ void spl_board_init(void) puts("Normal Boot\n"); } +void spl_board_prepare_for_boot(void) +{ + board_quiesce_devices(); +} + #ifdef CONFIG_SPL_LOAD_FIT int board_fit_config_name_match(const char *name) { diff --git a/board/freescale/imx8qm_mek/spl.c b/board/freescale/imx8qm_mek/spl.c index cb4006eb2a..a38d947bb5 100644 --- a/board/freescale/imx8qm_mek/spl.c +++ b/board/freescale/imx8qm_mek/spl.c @@ -12,6 +12,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -37,6 +38,11 @@ void spl_board_init(void) puts("Normal Boot\n"); } +void spl_board_prepare_for_boot(void) +{ + board_quiesce_devices(); +} + #ifdef CONFIG_SPL_LOAD_FIT int board_fit_config_name_match(const char *name) { diff --git a/board/freescale/imx8qxp_arm2/spl.c b/board/freescale/imx8qxp_arm2/spl.c index cb4006eb2a..a38d947bb5 100644 --- a/board/freescale/imx8qxp_arm2/spl.c +++ b/board/freescale/imx8qxp_arm2/spl.c @@ -12,6 +12,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -37,6 +38,11 @@ void spl_board_init(void) puts("Normal Boot\n"); } +void spl_board_prepare_for_boot(void) +{ + board_quiesce_devices(); +} + #ifdef CONFIG_SPL_LOAD_FIT int board_fit_config_name_match(const char *name) { diff --git a/board/freescale/imx8qxp_mek/spl.c b/board/freescale/imx8qxp_mek/spl.c index cb4006eb2a..a38d947bb5 100644 --- a/board/freescale/imx8qxp_mek/spl.c +++ b/board/freescale/imx8qxp_mek/spl.c @@ -12,6 +12,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -37,6 +38,11 @@ void spl_board_init(void) puts("Normal Boot\n"); } +void spl_board_prepare_for_boot(void) +{ + board_quiesce_devices(); +} + #ifdef CONFIG_SPL_LOAD_FIT int board_fit_config_name_match(const char *name) { -- 2.17.1