Skip to content

Commit

Permalink
plat-rockchip: rk322x: add PSCI features
Browse files Browse the repository at this point in the history
Add currently implemented PSCI functions.

Signed-off-by: Joseph Chen <[email protected]>
Acked-by: Jerome Forissier <[email protected]>
  • Loading branch information
JosephChen2017 committed Aug 9, 2017
1 parent 76d56b0 commit 237a87c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions core/arch/arm/plat-rockchip/psci_rk322x.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,19 @@ uint32_t psci_version(void)
return PSCI_VERSION_1_0;
}

int psci_features(uint32_t psci_fid)
{
if ((psci_fid == PSCI_PSCI_FEATURES) ||
(psci_fid == PSCI_VERSION) ||
(psci_fid == PSCI_CPU_ON) ||
(psci_fid == PSCI_CPU_OFF) ||
(psci_fid == PSCI_AFFINITY_INFO) ||
(psci_fid == PSCI_SYSTEM_RESET))
return PSCI_RET_SUCCESS;

return PSCI_RET_NOT_SUPPORTED;
}

int psci_cpu_on(uint32_t core_idx, uint32_t entry,
uint32_t context_id __unused)
{
Expand Down

0 comments on commit 237a87c

Please sign in to comment.