mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-14 16:37:05 +02:00
allwinner: psci: Drop MPIDR check from .pwr_domain_on
This duplicated the logic in psci_validate_mpidr() which was already called from psci_cpu_on(). Change-Id: I96ee92f1ce3e9cc2985b4e229ba86ebd27b79915 Signed-off-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:
parent
a1473c99e6
commit
772ef7e7af
@ -37,8 +37,6 @@
|
|||||||
#define SYSTEM_PWR_STATE(state) \
|
#define SYSTEM_PWR_STATE(state) \
|
||||||
((state)->pwr_domain_state[SYSTEM_PWR_LVL])
|
((state)->pwr_domain_state[SYSTEM_PWR_LVL])
|
||||||
|
|
||||||
#define mpidr_is_valid(mpidr) (plat_core_pos_by_mpidr(mpidr) >= 0)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The addresses for the SCP exception vectors are defined in the or1k
|
* The addresses for the SCP exception vectors are defined in the or1k
|
||||||
* architecture specification.
|
* architecture specification.
|
||||||
@ -78,9 +76,6 @@ static void sunxi_cpu_standby(plat_local_state_t cpu_state)
|
|||||||
|
|
||||||
static int sunxi_pwr_domain_on(u_register_t mpidr)
|
static int sunxi_pwr_domain_on(u_register_t mpidr)
|
||||||
{
|
{
|
||||||
if (mpidr_is_valid(mpidr) == 0)
|
|
||||||
return PSCI_E_INTERN_FAIL;
|
|
||||||
|
|
||||||
if (scpi_available) {
|
if (scpi_available) {
|
||||||
scpi_set_css_power_state(mpidr,
|
scpi_set_css_power_state(mpidr,
|
||||||
scpi_power_on,
|
scpi_power_on,
|
||||||
|
Loading…
Reference in New Issue
Block a user