From 0ea482052d49209d776451846d3570e305619d69 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Thu, 28 Sep 2017 17:37:40 +0800 Subject: [PATCH] core: imx: implement psci reset Implement psci reset support. Signed-off-by: Peng Fan --- core/arch/arm/plat-imx/conf.mk | 1 + core/arch/arm/plat-imx/pm/psci.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/core/arch/arm/plat-imx/conf.mk b/core/arch/arm/plat-imx/conf.mk index 20bc7d050ba..c9144d16bfc 100644 --- a/core/arch/arm/plat-imx/conf.mk +++ b/core/arch/arm/plat-imx/conf.mk @@ -80,6 +80,7 @@ endif ifeq ($(filter y, $(CFG_PSCI_ARM32)), y) CFG_HWSUPP_MEM_PERM_WXN = n +CFG_IMX_WDOG ?= y endif CFG_MMAP_REGIONS ?= 24 diff --git a/core/arch/arm/plat-imx/pm/psci.c b/core/arch/arm/plat-imx/pm/psci.c index a7de449e9c4..47e8b56b87e 100644 --- a/core/arch/arm/plat-imx/pm/psci.c +++ b/core/arch/arm/plat-imx/pm/psci.c @@ -28,6 +28,7 @@ */ #include #include +#include #include #include #include @@ -205,3 +206,8 @@ int psci_cpu_suspend(uint32_t power_state, return ret; } + +void psci_system_reset(void) +{ + imx_wdog_restart(); +}