mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 09:34:18 +00:00

When using SCPI as the PSCI backend, firmware can wake up the CPUs and cluster from sleep, so CPU idle states are available for the rich OS to use. In that case, advertise them to the rich OS via the DTB. Change-Id: I718ef6ef41212fe5213b11b4799613adbbe6e0eb Signed-off-by: Samuel Holland <samuel@sholland.org>
27 lines
566 B
C
27 lines
566 B
C
/*
|
|
* Copyright (c) 2022, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <sunxi_private.h>
|
|
|
|
const struct psci_cpu_idle_state sunxi_idle_states[] = {
|
|
{
|
|
.name = "cpu-sleep",
|
|
.power_state = 0x00010003,
|
|
.local_timer_stop = true,
|
|
.entry_latency_us = 800,
|
|
.exit_latency_us = 1500,
|
|
.min_residency_us = 25000
|
|
},
|
|
{
|
|
.name = "cluster-sleep",
|
|
.power_state = 0x01010013,
|
|
.local_timer_stop = true,
|
|
.entry_latency_us = 850,
|
|
.exit_latency_us = 1500,
|
|
.min_residency_us = 50000
|
|
},
|
|
{}
|
|
};
|