diff options
author | Varun Wadekar <vwadekar@nvidia.com> | 2015-07-23 10:07:54 +0530 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2015-07-24 09:08:27 +0530 |
commit | 93eafbcad46b83bb0db3b86b1508f08efce25519 (patch) | |
tree | 2019de1ff4cfa73e2458d1deae26404ef82ed15f /plat/nvidia/tegra/include | |
parent | fb11a62fede3d76506ba353f93264569e711cf74 (diff) |
Tegra: implement per-SoC validate_power_state() handler
The validate_power_state() handler checks the power_state for a valid afflvl
and state id. Although the afflvl check is common, the state ids are implementation
defined.
This patch moves the handler to the tegra/soc folder to allow each SoC to validate
the power_state for supported parameters.
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'plat/nvidia/tegra/include')
-rw-r--r-- | plat/nvidia/tegra/include/tegra_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plat/nvidia/tegra/include/tegra_private.h b/plat/nvidia/tegra/include/tegra_private.h index d0cde2af..dbd66893 100644 --- a/plat/nvidia/tegra/include/tegra_private.h +++ b/plat/nvidia/tegra/include/tegra_private.h @@ -45,6 +45,9 @@ typedef struct plat_params_from_bl2 { uintptr_t bl32_params; } plat_params_from_bl2_t; +/* Declarations for plat_psci_handlers.c */ +int32_t tegra_soc_validate_power_state(unsigned int power_state); + /* Declarations for plat_setup.c */ const mmap_region_t *plat_get_mmio_map(void); uint64_t plat_get_syscnt_freq(void); |