RTEMS 6.1-rc5
|
Data Structures | |
struct | _gpc_tran_step_config |
Configuration for GPC transition step. More... | |
Macros | |
#define | GPC_RESERVED_USE_MACRO 0xFFFFFFFFU |
#define | GPC_CM_SLEEP_SSAR_CTRL_OFFSET (0x200) |
#define | GPC_CM_SLEEP_LPCG_CTRL_OFFSET (0x208) |
#define | GPC_CM_SLEEP_PLL_CTRL_OFFSET (0x210) |
#define | GPC_CM_SLEEP_ISO_CTRL_OFFSET (0x218) |
#define | GPC_CM_SLEEP_RESET_CTRL_OFFSET (0x220) |
#define | GPC_CM_SLEEP_POWER_CTRL_OFFSET (0x228) |
#define | GPC_CM_WAKEUP_POWER_CTRL_OFFSET (0x290) |
#define | GPC_CM_WAKEUP_RESET_CTRL_OFFSET (0x298) |
#define | GPC_CM_WAKEUP_ISO_CTRL_OFFSET (0x2A0) |
#define | GPC_CM_WAKEUP_PLL_CTRL_OFFSET (0x2A8) |
#define | GPC_CM_WAKEUP_LPCG_CTRL_OFFSET (0x2B0) |
#define | GPC_CM_WAKEUP_SSAR_CTRL_OFFSET (0x2B8) |
#define | GPC_SP_SSAR_SAVE_CTRL_OFFSET (0x100) |
#define | GPC_SP_LPCG_OFF_CTRL_OFFSET (0x110) |
#define | GPC_SP_GROUP_DOWN_CTRL_OFFSET (0x120) |
#define | GPC_SP_ROOT_DOWN_CTRL_OFFSET (0x130) |
#define | GPC_SP_PLL_OFF_CTRL_OFFSET (0x140) |
#define | GPC_SP_ISO_ON_CTRL_OFFSET (0x150) |
#define | GPC_SP_RESET_EARLY_CTRL_OFFSET (0x160) |
#define | GPC_SP_POWER_OFF_CTRL_OFFSET (0x170) |
#define | GPC_SP_BIAS_OFF_CTRL_OFFSET (0x180) |
#define | GPC_SP_BG_PLDO_OFF_CTRL_OFFSET (0x190) |
#define | GPC_SP_LDO_PRE_CTRL_OFFSET (0x1A0) |
#define | GPC_SP_DCDC_DOWN_CTRL_OFFSET (0x1B0) |
#define | GPC_SP_DCDC_UP_CTRL_OFFSET (0x2B0) |
#define | GPC_SP_LDO_POST_CTRL_OFFSET (0x210) |
#define | GPC_SP_BG_PLDO_ON_CTRL_OFFSET (0x220) |
#define | GPC_SP_BIAS_ON_CTRL_OFFSET (0x230) |
#define | GPC_SP_POWER_ON_CTRL_OFFSET (0x240) |
#define | GPC_SP_RESET_LATE_CTRL_OFFSET (0x250) |
#define | GPC_SP_ISO_OFF_CTRL_OFFSET (0x260) |
#define | GPC_SP_PLL_ON_CTRL_OFFSET (0x270) |
#define | GPC_SP_ROOT_UP_CTRL_OFFSET (0x280) |
#define | GPC_SP_GROUP_UP_CTRL_OFFSET (0x290) |
#define | GPC_SP_LPCG_ON_CTRL_OFFSET (0x2A0) |
#define | GPC_SP_SSAR_RESTORE_CTRL_OFFSET (0x2B0) |
#define | GPC_STBY_LPCG_IN_CTRL_OFFSET (0xF0) |
#define | GPC_STBY_PLL_IN_CTRL_OFFSET (0x100) |
#define | GPC_STBY_BIAS_IN_CTRL_OFFSET (0x110) |
#define | GPC_STBY_PLDO_IN_CTRL_OFFSET (0x120) |
#define | GPC_STBY_BANDGAP_IN_CTRL_OFFSET (0x128) |
#define | GPC_STBY_LDO_IN_CTRL_OFFSET (0x130) |
#define | GPC_STBY_DCDC_IN_CTRL_OFFSET (0x140) |
#define | GPC_STBY_PMIC_IN_CTRL_OFFSET (0x150) |
#define | GPC_STBY_PMIC_OUT_CTRL_OFFSET (0x200) |
#define | GPC_STBY_DCDC_OUT_CTRL_OFFSET (0x210) |
#define | GPC_STBY_LDO_OUT_CTRL_OFFSET (0x220) |
#define | GPC_STBY_BANDGAP_OUT_CTRL_OFFSET (0x238) |
#define | GPC_STBY_PLDO_OUT_CTRL_OFFSET (0x238) |
#define | GPC_STBY_BIAS_OUT_CTRL_OFFSET (0x240) |
#define | GPC_STBY_PLL_OUT_CTRL_OFFSET (0x250) |
#define | GPC_STBY_LPCG_OUT_CTRL_OFFSET (0x260) |
#define | GPC_CM_STEP_REG_OFFSET |
#define | GPC_SP_STEP_REG_OFFSET |
#define | GPC_STBY_STEP_REG_OFFSET |
#define | GPC_STAT(mask, shift) (uint32_t)(((uint32_t)(shift) << 16UL) + ((uint32_t)(mask) >> (uint32_t)(shift))) |
#define | GPC_CM_ALL_INTERRUPT_STATUS |
Typedefs | |
typedef enum _gpc_cm_standby_mode_status | gpc_cm_standby_mode_status_t |
CPU standby mode status. | |
typedef enum _gpc_cm_tran_step | gpc_cm_tran_step_t |
CPU mode transition step in sleep/wakeup sequence. | |
typedef enum _gpc_tran_step_counter_mode | gpc_tran_step_counter_mode_t |
Step counter work mode. | |
typedef enum _gpc_sp_tran_step | gpc_sp_tran_step_t |
GPC set point transition steps. | |
typedef enum _gpc_cpu_mode | gpc_cpu_mode_t |
CPU mode. | |
typedef struct _gpc_tran_step_config | gpc_tran_step_config_t |
Configuration for GPC transition step. | |
typedef enum _gpc_cm_wakeup_sp_sel | gpc_cm_wakeup_sp_sel_t |
CPU wakeup sequence setpoint options. | |
typedef enum _gpc_stby_tran_step | gpc_stby_tran_step_t |
GPC standby mode transition steps. | |
CPU mode control | |
void | GPC_CM_EnableIrqWakeup (GPC_CPU_MODE_CTRL_Type *base, uint32_t irqId, bool enable) |
Enable IRQ wakeup request. | |
bool | GPC_CM_GetIrqWakeupStatus (GPC_CPU_MODE_CTRL_Type *base, uint32_t irqId) |
Get the status of the IRQ wakeup request. | |
void | GPC_CM_ConfigCpuModeTransitionStep (GPC_CPU_MODE_CTRL_Type *base, gpc_cm_tran_step_t step, const gpc_tran_step_config_t *config) |
Config the cpu mode transition step. | |
void | GPC_CM_RequestSleepModeSetPointTransition (GPC_CPU_MODE_CTRL_Type *base, uint8_t setPointSleep, uint8_t setPointWakeup, gpc_cm_wakeup_sp_sel_t wakeupSel) |
Request a set point transition before the CPU transfers into a sleep mode. | |
void | GPC_CM_RequestRunModeSetPointTransition (GPC_CPU_MODE_CTRL_Type *base, uint8_t setPointRun) |
Request a set point transition during run mode. | |
void | GPC_CM_SetCpuModeSetPointMapping (GPC_CPU_MODE_CTRL_Type *base, gpc_cpu_mode_t mode, uint32_t map) |
Set the set point mapping value for each cpu mode. | |
void | GPC_CM_RequestStandbyMode (GPC_CPU_MODE_CTRL_Type *base, const gpc_cpu_mode_t mode) |
Request the chip into standby mode. | |
void | GPC_CM_ClearStandbyModeRequest (GPC_CPU_MODE_CTRL_Type *base, const gpc_cpu_mode_t mode) |
Clear the standby mode request. | |
void | GPC_CM_ClearInterruptStatusFlags (GPC_CPU_MODE_CTRL_Type *base, uint32_t mask) |
Clears CPU module interrut status flags. | |
Set point request control | |
void | GPC_SP_ConfigSetPointTransitionStep (GPC_SET_POINT_CTRL_Type *base, gpc_sp_tran_step_t step, const gpc_tran_step_config_t *config) |
Config the set point transition step. | |
Standby mode control | |
void | GPC_STBY_ConfigStandbyTransitionStep (GPC_STBY_CTRL_Type *base, gpc_stby_tran_step_t step, const gpc_tran_step_config_t *config) |
Config the standby transition step. | |
Driver version | |
void | GPC_EnableIRQ (GPC_Type *base, uint32_t irqId) |
Enable the IRQ. | |
void | GPC_DisableIRQ (GPC_Type *base, uint32_t irqId) |
Disable the IRQ. | |
bool | GPC_GetIRQStatusFlag (GPC_Type *base, uint32_t irqId) |
Get the IRQ/Event flag. | |
#define | FSL_GPC_DRIVER_VERSION (MAKE_VERSION(2, 1, 1)) |
GPC driver version 2.1.1. | |
Driver version | |
#define | FSL_GPC_RIVER_VERSION (MAKE_VERSION(2, 2, 0)) |
GPC driver version 2.2.0. | |
#define GPC_CM_ALL_INTERRUPT_STATUS |
#define GPC_CM_STEP_REG_OFFSET |
#define GPC_SP_STEP_REG_OFFSET |
#define GPC_STBY_STEP_REG_OFFSET |
anonymous enum |
anonymous enum |
enum _gpc_cm_tran_step |
CPU mode transition step in sleep/wakeup sequence.
enum _gpc_cpu_mode |
enum _gpc_sp_tran_step |
GPC set point transition steps.
enum _gpc_stby_tran_step |
GPC standby mode transition steps.
Step counter work mode.
void GPC_CM_ClearInterruptStatusFlags | ( | GPC_CPU_MODE_CTRL_Type * | base, |
uint32_t | mask | ||
) |
Clears CPU module interrut status flags.
base | GPC CPU module base address. |
mask | The interrupt status flags to be cleared. Should be the OR'ed value of _gpc_cm_interrupt_status_flag. |
brief Clears CPU module interrut status flags.
param base GPC CPU module base address. param mask The interrupt status flags to be cleared. Should be the OR'ed value of _gpc_cm_interrupt_status_flag.
void GPC_CM_ClearStandbyModeRequest | ( | GPC_CPU_MODE_CTRL_Type * | base, |
const gpc_cpu_mode_t | mode | ||
) |
Clear the standby mode request.
base | GPC CPU module base address. |
mode | CPU mode. Refer to "gpc_cpu_mode_t". |
void GPC_CM_ConfigCpuModeTransitionStep | ( | GPC_CPU_MODE_CTRL_Type * | base, |
gpc_cm_tran_step_t | step, | ||
const gpc_tran_step_config_t * | config | ||
) |
Config the cpu mode transition step.
base | GPC CPU module base address. |
step | step type, refer to "gpc_cm_tran_step_t". |
config | transition step configuration, refer to "gpc_tran_step_config_t". |
brief Config the cpu mode transition step.
note This function can not config the setpoint sleep/wakeup operation for those operation is controlled by setpoint control. This funcion can not config the standby sleep/wakeup too, because those operation is controlled by standby controlled.
param base GPC CPU module base address. param step step type, refer to "gpc_cm_tran_step_t". param config transition step configuration, refer to "gpc_tran_step_config_t".
void GPC_CM_EnableIrqWakeup | ( | GPC_CPU_MODE_CTRL_Type * | base, |
uint32_t | irqId, | ||
bool | enable | ||
) |
Enable IRQ wakeup request.
This function enables the IRQ request which can wakeup the CPU platform.
base | GPC CPU module base address. |
irqId | ID of the IRQ, accessible range is 0-255. |
enable | Enable the IRQ request or not. |
brief Enable IRQ wakeup request.
This function enables the IRQ request which can wakeup the CPU platform.
param base GPC CPU module base address. param irqId ID of the IRQ, accessible range is 0-255. param enable Enable the IRQ request or not.
bool GPC_CM_GetIrqWakeupStatus | ( | GPC_CPU_MODE_CTRL_Type * | base, |
uint32_t | irqId | ||
) |
Get the status of the IRQ wakeup request.
base | GPC CPU module base address. |
irqId | ID of the IRQ, accessible range is 0-255. |
brief Get the status of the IRQ wakeup request.
param base GPC CPU module base address. param irqId ID of the IRQ, accessible range is 0-255. return Indicate the IRQ request is asserted or not.
void GPC_CM_RequestRunModeSetPointTransition | ( | GPC_CPU_MODE_CTRL_Type * | base, |
uint8_t | setPointRun | ||
) |
Request a set point transition during run mode.
This function triggers the set point transition and selects which one the CMC want to transfer to.
base | GPC CPU module base address. |
setPointRun | The set point CPU want the system to transit in the run mode. |
brief Request a set point transition during run mode.
This function triggers the set point transition and selects which one the CMC want to transfer to.
param base GPC CPU module base address. param setPointRun The set point CPU want the system to transit in the run mode.
void GPC_CM_RequestSleepModeSetPointTransition | ( | GPC_CPU_MODE_CTRL_Type * | base, |
uint8_t | setPointSleep, | ||
uint8_t | setPointWakeup, | ||
gpc_cm_wakeup_sp_sel_t | wakeupSel | ||
) |
Request a set point transition before the CPU transfers into a sleep mode.
This function triggers the set point transition during a CPU Sleep/wakeup event and selects which one the CMC want to transfer to.
base | GPC CPU module base address. |
setPointSleep | The set point CPU want the system to transit to on next CPU platform sleep sequence. |
setPointWakeup | The set point CPU want the system to transit to on next CPU platform wakeup sequence. |
wakeupSel | Select the set point transition on the next CPU platform wakeup sequence. |
brief Request a set point transition before the CPU transfers into a sleep mode.
This function triggers the set point transition during a CPU Sleep/wakeup event and selects which one the CMC want to transfer to.
param base GPC CPU module base address. param setPointSleep The set point CPU want the system to transit to on next CPU platform sleep sequence. param setPointWakeup The set point CPU want the system to transit to on next CPU platform wakeup sequence. param wakeupSel Select the set point transition on the next CPU platform wakeup sequence.
void GPC_CM_RequestStandbyMode | ( | GPC_CPU_MODE_CTRL_Type * | base, |
const gpc_cpu_mode_t | mode | ||
) |
Request the chip into standby mode.
base | GPC CPU module base address. |
mode | CPU mode. Refer to "gpc_cpu_mode_t". |
void GPC_CM_SetCpuModeSetPointMapping | ( | GPC_CPU_MODE_CTRL_Type * | base, |
gpc_cpu_mode_t | mode, | ||
uint32_t | map | ||
) |
Set the set point mapping value for each cpu mode.
This function configures which set point is allowed when CPU enters RUN/WAIT/STOP/SUSPEND. If there are multiple setpoints, use:
base | GPC CPU module base address. |
mode | CPU mode. Refer to "gpc_cpu_mode_t". |
map | Map value of the set point. Refer to "_gpc_setpoint_map". |
void GPC_DisableIRQ | ( | GPC_Type * | base, |
uint32_t | irqId | ||
) |
Disable the IRQ.
base | GPC peripheral base address. |
irqId | ID number of IRQ to be disabled, available range is 32-159. 0-31 is available in some platforms. |
brief Disable the IRQ.
param base GPC peripheral base address. param irqId ID number of IRQ to be disabled, available range is 32-159. 0-31 is available in some platforms.
void GPC_EnableIRQ | ( | GPC_Type * | base, |
uint32_t | irqId | ||
) |
Enable the IRQ.
base | GPC peripheral base address. |
irqId | ID number of IRQ to be enabled, available range is 32-159. 0-31 is available in some platforms. |
brief Enable the IRQ.
param base GPC peripheral base address. param irqId ID number of IRQ to be enabled, available range is 32-159. 0-31 is available in some platforms.
bool GPC_GetIRQStatusFlag | ( | GPC_Type * | base, |
uint32_t | irqId | ||
) |
Get the IRQ/Event flag.
base | GPC peripheral base address. |
irqId | ID number of IRQ to be enabled, available range is 32-159. 0-31 is available in some platforms. |
brief Get the IRQ/Event flag.
param base GPC peripheral base address. param irqId ID number of IRQ to be enabled, available range is 32-159. 0-31 is available in some platforms. return Indicated IRQ/Event is asserted or not.
void GPC_SP_ConfigSetPointTransitionStep | ( | GPC_SET_POINT_CTRL_Type * | base, |
gpc_sp_tran_step_t | step, | ||
const gpc_tran_step_config_t * | config | ||
) |
Config the set point transition step.
base | GPC Setpoint controller base address. |
step | step type, refer to "gpc_sp_tran_step_t". |
config | transition step configuration, refer to "gpc_tran_step_config_t". |
brief Config the set point transition step.
param base GPC Setpoint controller base address. param step step type, refer to "gpc_sp_tran_step_t". param config transition step configuration, refer to "gpc_tran_step_config_t".
void GPC_STBY_ConfigStandbyTransitionStep | ( | GPC_STBY_CTRL_Type * | base, |
gpc_stby_tran_step_t | step, | ||
const gpc_tran_step_config_t * | config | ||
) |
Config the standby transition step.
base | GPC Setpoint controller base address. |
step | step type, refer to "gpc_stby_tran_step_t". |
config | transition step configuration, refer to "gpc_tran_step_config_t". |
brief Config the standby transition step.
param base GPC Setpoint controller base address. param step step type, refer to "gpc_stby_tran_step_t". param config transition step configuration, refer to "gpc_tran_step_config_t".