diff options
author | danh-arm <dan.handley@arm.com> | 2016-05-27 14:10:42 +0100 |
---|---|---|
committer | danh-arm <dan.handley@arm.com> | 2016-05-27 14:10:42 +0100 |
commit | a7e530331d7cf4b58618f0715e61b5a872176f07 (patch) | |
tree | b8f1fcb1b1a9e2ba1e18cc09f70be3046cac2bb8 /plat/rockchip/common/plat_pm.c | |
parent | aa037ca9a0b3ae52e1df5bfb4ddf273215b75877 (diff) | |
parent | 86c253e450a6506a95d4fa846945b769026cf72c (diff) |
Merge pull request #632 from rockchip-linux/support-for-gpio-driver-v2
rockchip/rk3399: Support the gpio driver and configure
Diffstat (limited to 'plat/rockchip/common/plat_pm.c')
-rw-r--r-- | plat/rockchip/common/plat_pm.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plat/rockchip/common/plat_pm.c b/plat/rockchip/common/plat_pm.c index 43558b65..d20a683b 100644 --- a/plat/rockchip/common/plat_pm.c +++ b/plat/rockchip/common/plat_pm.c @@ -253,6 +253,16 @@ static void __dead2 rockchip_system_reset(void) } /******************************************************************************* + * RockChip handlers to power off the system + ******************************************************************************/ +static void __dead2 rockchip_system_poweroff(void) +{ + assert(rockchip_ops && rockchip_ops->system_off); + + rockchip_ops->system_off(); +} + +/******************************************************************************* * Export the platform handlers via plat_rockchip_psci_pm_ops. The rockchip * standard * platform layer will take care of registering the handlers with PSCI. @@ -265,6 +275,7 @@ const plat_psci_ops_t plat_rockchip_psci_pm_ops = { .pwr_domain_on_finish = rockchip_pwr_domain_on_finish, .pwr_domain_suspend_finish = rockchip_pwr_domain_suspend_finish, .system_reset = rockchip_system_reset, + .system_off = rockchip_system_poweroff, .validate_power_state = rockchip_validate_power_state, .get_sys_suspend_power_state = rockchip_get_sys_suspend_power_state }; |