Browse Source
Add system power off support for i.MX8QX, when Linux kernel issues "poweroff" command, TF-A will send command to inform system controller to power off whole board according to board design, tested on i.MX8QX MEK board. Signed-off-by: Anson Huang <Anson.Huang@nxp.com>pull/1471/head
Anson Huang
6 years ago
4 changed files with 25 additions and 0 deletions
@ -0,0 +1,22 @@ |
|||
/*
|
|||
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. |
|||
* |
|||
* SPDX-License-Identifier: BSD-3-Clause |
|||
*/ |
|||
|
|||
#include <arch.h> |
|||
#include <arch_helpers.h> |
|||
#include <debug.h> |
|||
#include <plat_imx8.h> |
|||
#include <sci/sci.h> |
|||
#include <stdbool.h> |
|||
|
|||
void __dead2 imx_system_off(void) |
|||
{ |
|||
sc_pm_set_sys_power_mode(ipc_handle, SC_PM_PW_MODE_OFF); |
|||
wfi(); |
|||
ERROR("power off failed.\n"); |
|||
panic(); |
|||
} |
|||
|
|||
|
Loading…
Reference in new issue