Manish Pandey
2 years ago
committed by
TrustedFirmware Code Review
4 changed files with 48 additions and 0 deletions
@ -0,0 +1,29 @@ |
|||
/*
|
|||
* Copyright (c) 2023, Arm Limited. All rights reserved. |
|||
* |
|||
* SPDX-License-Identifier: BSD-3-Clause |
|||
*/ |
|||
|
|||
#include <lib/psci/psci.h> |
|||
#include <plat/arm/common/plat_arm.h> |
|||
#include <plat/arm/css/common/css_pm.h> |
|||
|
|||
#include "morello_private.h" |
|||
|
|||
/*******************************************************************************
|
|||
* Morello specific functions called when turning off or suspending a power |
|||
* domain. Both additionally disable the GIC redistributor interface as cores |
|||
* are disabled to let cluster-PPU state transition to completion when a |
|||
* cluster is powered down. |
|||
******************************************************************************/ |
|||
void morello_pwr_domain_off(const psci_power_state_t *target_state) |
|||
{ |
|||
css_pwr_domain_off(target_state); |
|||
plat_arm_gic_redistif_off(); |
|||
} |
|||
|
|||
void morello_pwr_domain_suspend(const psci_power_state_t *target_state) |
|||
{ |
|||
css_pwr_domain_suspend(target_state); |
|||
plat_arm_gic_redistif_off(); |
|||
} |
@ -0,0 +1,15 @@ |
|||
/*
|
|||
* Copyright (c) 2023, Arm Limited. All rights reserved. |
|||
* |
|||
* SPDX-License-Identifier: BSD-3-Clause |
|||
*/ |
|||
|
|||
#ifndef MORELLO_PRIVATE_H |
|||
#define MORELLO_PRIVATE_H |
|||
|
|||
#include <lib/psci/psci.h> |
|||
|
|||
void morello_pwr_domain_off(const psci_power_state_t *target_state); |
|||
void morello_pwr_domain_suspend(const psci_power_state_t *target_state); |
|||
|
|||
#endif /* MORELLO_PRIVATE_H */ |
Loading…
Reference in new issue