Skip to content

Commit

Permalink
core: imx: implement psci reset
Browse files Browse the repository at this point in the history
Implement psci reset support.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
  • Loading branch information
MrVan committed Oct 7, 2017
1 parent f65725a commit d4f4bc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/arch/arm/plat-imx/conf.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions core/arch/arm/plat-imx/pm/psci.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
*/
#include <console.h>
#include <drivers/imx_uart.h>
#include <drivers/imx_wdog.h>
#include <io.h>
#include <imx.h>
#include <imx_pm.h>
Expand Down Expand Up @@ -205,3 +206,8 @@ int psci_cpu_suspend(uint32_t power_state,

return ret;
}

void psci_system_reset(void)
{
imx_wdog_restart();
}

0 comments on commit d4f4bc2

Please sign in to comment.