This module contains APIs to program and use the PSCI module.
◆ PSCI_BASE_FUNC
#define PSCI_BASE_FUNC (uint32_t) 0x84000000U |
◆ PSCI_FUNC
◆ PSCI_FUNC_OFF_64BIT
#define PSCI_FUNC_OFF_64BIT (uint32_t) 0x40000000U |
◆ PSCI_BASE_FUNC_64BIT
◆ PSCI_FUNC_64BIT
◆ PSCI_FUNC_PSCI_VERSION
◆ PSCI_FUNC_CPU_OFF
◆ PSCI_FUNC_SYSTEM_RESET
◆ PSCI_FUNC_CPU_ON_64BIT
◆ PSCI_FUNC_PSCI_FEATURES
#define PSCI_FUNC_PSCI_FEATURES PSCI_FUNC(10) |
◆ PSCI_MAJOR_VERSION_SHIFT
#define PSCI_MAJOR_VERSION_SHIFT (16U) |
◆ PSCI_MINOR_VERSION_MASK
◆ PSCI_MAJOR_VERSION_MASK
◆ PSCI_MAJOR_VERSION
◆ PSCI_MINOR_VERSION
◆ PSCI_SUCCESS
◆ PSCI_NOT_SUPPORTED
#define PSCI_NOT_SUPPORTED (-1) |
◆ PSCI_INVALID_PARAMS
#define PSCI_INVALID_PARAMS (-2) |
◆ PSCI_DENIED
◆ PSCI_ALREADY_ON
#define PSCI_ALREADY_ON (-4) |
◆ PSCI_ON_PENDING
#define PSCI_ON_PENDING (-5) |
◆ PSCI_INTERNAL_FAILURE
#define PSCI_INTERNAL_FAILURE (-6) |
◆ PSCI_NOT_PRESENT
#define PSCI_NOT_PRESENT (-7) |
◆ PSCI_DISABLED
#define PSCI_DISABLED (-8) |
◆ PSCI_INVALID_ADDRESS
#define PSCI_INVALID_ADDRESS (-9) |
◆ PSCI_Handle
◆ PSCI_init()
Initialize the PSCI module.
◆ PSCI_deinit()
void PSCI_deinit |
( |
void |
| ) |
|
Deinitialize the PSCI module.
◆ PSCI_open()
Open the PSCI at index idx.
- Parameters
-
idx | [IN] Index of PSCI to open in global config |
- Returns
- PSCI_Handle
◆ PSCI_close()
Function to close the PSCI instance specified by the handle.
- Precondition
- PSCI_open() has to be called first
- Parameters
-
- See also
- PSCI_open()
◆ PSCI_getHandle()
PSCI_Handle PSCI_getHandle |
( |
uint32_t |
driverInstanceIndex | ) |
|
This function returns the handle of an open PSCI Instance from the instance index.
- Parameters
-
driverInstanceIndex | Index of config to use in the PSCI_Config array |
- Returns
- An PSCI_Handle if it has been opened already or NULL otherwise
◆ PSCI_getInitDriverIndex()
uint32_t PSCI_getInitDriverIndex |
( |
void |
| ) |
|
This function returns the initialised instance index.
- Returns
- instanceIndex First instance which is open for PSCI driver
◆ PSCI_getPSCIVersion()
int32_t PSCI_getPSCIVersion |
( |
PSCI_Handle |
handle, |
|
|
uint32_t * |
psciVer |
|
) |
| |
Get the PSCI version.
- Parameters
-
- Returns
- PSCI_StatusCode
◆ PSCI_cpuOff()
Power off the calling CPU.
- Parameters
-
- Returns
- SystemP_FAILURE if failure, else should never return.
◆ PSCI_cpuOn()
int32_t PSCI_cpuOn |
( |
PSCI_Handle |
handle, |
|
|
uint32_t |
cpuId, |
|
|
uint32_t |
entryPoint |
|
) |
| |
Power on the CPU required.
- Parameters
-
handle | [IN] PSCI_Handle returned from PSCI_open() |
cpuId | [IN] CPU ID of the CPU required to be powered on. |
entryPoint | [IN] Entry Point of the CPU in the non-secure world. |
- Returns
- PSCI_StatusCode
◆ PSCI_systemReset()
Cold reset of the entire system.
- Parameters
-
- Returns
- SystemP_FAILURE if failure, else should never return.
◆ PSCI_getFeatures()
int32_t PSCI_getFeatures |
( |
PSCI_Handle |
handle, |
|
|
uint32_t |
functionId, |
|
|
uint32_t * |
feature |
|
) |
| |
Get the features of a PSCI function.
- Parameters
-
handle | [IN] PSCI_Handle returned from PSCI_open() |
functionId | [IN] PSCI Function ID whose features are needed. |
feature | [OUT] Pointer to the PSCI feature result. |
- Returns
- PSCI_StatusCode