Werner Lewis | f32d2ad | 2023-02-21 14:40:12 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2023, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #include <lib/psci/psci.h> |
| 8 | #include <plat/arm/common/plat_arm.h> |
| 9 | #include <plat/arm/css/common/css_pm.h> |
| 10 | |
| 11 | #include "n1sdp_private.h" |
| 12 | |
| 13 | /******************************************************************************* |
| 14 | * N1SDP specific functions called when turning off or suspending a power |
| 15 | * domain. Both additionally disable the GIC redistributor interface as cores |
| 16 | * are disabled to let cluster-PPU state transition to completion when a |
| 17 | * cluster is powered down. |
| 18 | ******************************************************************************/ |
| 19 | void n1sdp_pwr_domain_off(const psci_power_state_t *target_state) |
| 20 | { |
| 21 | css_pwr_domain_off(target_state); |
| 22 | plat_arm_gic_redistif_off(); |
| 23 | } |
| 24 | |
| 25 | void n1sdp_pwr_domain_suspend(const psci_power_state_t *target_state) |
| 26 | { |
| 27 | css_pwr_domain_suspend(target_state); |
| 28 | plat_arm_gic_redistif_off(); |
| 29 | } |