diff options
author | Bai Ping <ping.bai@nxp.com> | 2018-05-22 14:58:10 +0800 |
---|---|---|
committer | Abel Vesa <abel.vesa@nxp.com> | 2018-06-11 10:33:03 +0300 |
commit | e57c29571ea864871bdd91f364b6c77d5de5f671 (patch) | |
tree | e0a58a5564c1789584ecaa61675862f91cbd75d5 | |
parent | b21783f0968e2c17de59956d8bb59dd7ca133b7c (diff) |
plat: imx8mm: enable the wait mode support on imx8mm
Enable the WAIT mode support in cpuilde to save power.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
-rw-r--r-- | plat/imx/imx8mm/imx8mm_bl31_setup.c | 2 | ||||
-rw-r--r-- | plat/imx/imx8mm/imx8mm_psci.c | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/plat/imx/imx8mm/imx8mm_bl31_setup.c b/plat/imx/imx8mm/imx8mm_bl31_setup.c index 861d788c..00c46534 100644 --- a/plat/imx/imx8mm/imx8mm_bl31_setup.c +++ b/plat/imx/imx8mm/imx8mm_bl31_setup.c @@ -208,8 +208,6 @@ void bl31_plat_arch_setup(void) void bl31_platform_setup(void) { - /* enable the GIC clock */ - mmio_write_32(0x303845c0, 0x3); /* init the GICv3 cpu and distributor interface */ plat_gic_driver_init(); plat_gic_init(); diff --git a/plat/imx/imx8mm/imx8mm_psci.c b/plat/imx/imx8mm/imx8mm_psci.c index f4521e64..6925257a 100644 --- a/plat/imx/imx8mm/imx8mm_psci.c +++ b/plat/imx/imx8mm/imx8mm_psci.c @@ -87,8 +87,7 @@ int imx_validate_power_state(unsigned int power_state, if (pwr_type == PSTATE_TYPE_POWERDOWN && state_id == 0x33) { CORE_PWR_STATE(req_state) = PLAT_MAX_OFF_STATE; - // CLUSTER_PWR_STATE(req_state) = PLAT_WAIT_OFF_STATE; - CLUSTER_PWR_STATE(req_state) = PLAT_MAX_RET_STATE; + CLUSTER_PWR_STATE(req_state) = PLAT_WAIT_OFF_STATE; } return PSCI_E_SUCCESS; |