RTEMS 6.1-rc5
|
Data Structures | |
struct | _src_setpoint_authentication |
The structure of setpoint authentication. More... | |
struct | _src_domain_mode_authentication |
The stucture of domain mode authentication. More... | |
Driver version | |
enum | _src_core_name { kSRC_CM7Core = 0x1U , kSRC_CM4Core = 0x2U } |
System core. More... | |
enum | _src_boot_fuse_selection { kSRC_SerialDownloaderBootFlow = 0U , kSRC_NormalBootFlow = 1U } |
The enumeration of the boot fuse selection. More... | |
enum | _src_global_system_reset_source { kSRC_WdogReset = 0U , kSRC_Wdog3Reset = 2U , kSRC_Wdog4Reset = 4U , kSRC_M4LockUpReset = 6U , kSRC_M7LockUpReset = 8U , kSRC_M4RequestReset = 10U , kSRC_M7RequestReset = 12U , kSRC_TempsenseReset = 14U , kSRC_CSUReset = 16U , kSRC_JageSoftwareReset = 18U , kSRC_OverVoltageReset = 20U } |
The enumeration of global system reset sources. More... | |
enum | _src_global_system_reset_status_flags { kSRC_M7CoreIppResetFlag = 1UL << 0UL , kSRC_M7CoreM7RequestResetFlag = 1UL << 1UL , kSRC_M7CoreM7LockUpResetFlag = 1UL << 2UL , kSRC_M7CoreCSUResetFlag = 1UL << 3UL , kSRC_M7CoreIppUserResetFlag = 1UL << 4UL , kSRC_M7CoreWdogResetFlag = 1UL << 5UL , kSRC_M7CoreJtagResetFlag = 1UL << 6UL , kSRC_M7CoreJtagSWResetFlag = 1UL << 7UL , kSRC_M7CoreWdog3ResetFlag = 1UL << 8UL , kSRC_M7CoreWdog4ResetFlag = 1UL << 9UL , kSRC_M7CoreTempsenseResetFlag = 1UL << 10UL , kSRC_M7CoreM4RequestResetFlag = 1UL << 11UL , kSRC_M7CoreM4LockUpResetFlag = 1UL << 12UL , kSRC_M7CoreOverVoltageResetFlag = 1UL << 13UL , kSRC_M7CoreCdogResetFlag = 1UL << 14UL , kSRC_M4CoreIppResetFlag = 1UL << 16UL , kSRC_M4CoreM4RequestResetFlag = 1UL << 17UL , kSRC_M4CoreM4LockUpResetFlag = 1UL << 18UL , kSRC_M4CoreCSUResetFlag = 1UL << 19UL , kSRC_M4CoreIppUserResetFlag = 1UL << 20UL , kSRC_M4CoreWdogResetFlag = 1UL << 21UL , kSRC_M4CoreJtagResetFlag = 1UL << 22UL , kSRC_M4CoreJtagSWResetFlag = 1UL << 23UL , kSRC_M4CoreWdog3ResetFlag = 1UL << 24UL , kSRC_M4CoreWdog4ResetFlag = 1UL << 25UL , kSRC_M4CoreTempsenseResetFlag = 1UL << 26UL , kSRC_M4CoreM7RequestResetFlag = 1UL << 27UL , kSRC_M4CoreM7LockUpResetFlag = 1UL << 28UL , kSRC_M4CoreOverVoltageResetFlag = 1UL << 29UL , kSRC_M4CoreCdogResetFlag = 1UL << 30UL } |
The enumeration of reset status flags. More... | |
enum | _src_global_system_reset_mode { kSRC_ResetSystem = 0x0U , kSRC_DoNotResetSystem = 0x3U } |
The enumeration of global system reset mode. More... | |
enum | _src_reset_slice_name { kSRC_MegaSlice = 0x0U , kSRC_DisplaySlice = 0x1U , kSRC_WakeUpSlice = 0x2U , kSRC_LpsrSlice = 0x3U , kSRC_M4CoreSlice = 0x4U , kSRC_M7CoreSlice = 0x5U , kSRC_M4DebugSlice = 0x6U , kSRC_M7DebugSlice = 0x7U , kSRC_Usbphy1Slice = 0x8U , kSRC_Usbphy2Slice = 0x9U } |
The enumeration of the slice name. More... | |
enum | _src_domain_mode_selection { kSRC_Cpu0RunModeAssertReset = 1UL << 0UL , kSRC_Cpu0WaitModeAssertReset = 1UL << 1UL , kSRC_Cpu0StopModeAssertReset = 1UL << 2UL , kSRC_Cpu0SuspendModeAssertReset = 1UL << 3UL , kSRC_Cpu1RunModeAssertReset = 1UL << 4UL , kSRC_Cpu1WaitModeAssertReset = 1UL << 5UL , kSRC_Cpu1StopModeAssertReset = 1UL << 6UL , kSRC_Cpu1SuspendModeAssertReset = 1UL << 7UL } |
The enumeration of the domain mode. More... | |
enum | _src_setpoint_selection { kSRC_SetPoint0AssertReset = 1UL << 0UL , kSRC_SetPoint1AssertReset = 1UL << 1UL , kSRC_SetPoint2AssertReset = 1UL << 2UL , kSRC_SetPoint3AssertReset = 1UL << 3UL , kSRC_SetPoint4AssertReset = 1UL << 4UL , kSRC_SetPoint5AssertReset = 1UL << 5UL , kSRC_SetPoint6AssertReset = 1UL << 6UL , kSRC_SetPoint7AssertReset = 1UL << 7UL , kSRC_SetPoint8AssertReset = 1UL << 8UL , kSRC_SetPoint9AssertReset = 1UL << 9UL , kSRC_SetPoint10AssertReset = 1UL << 10UL , kSRC_SetPoint11AssertReset = 1UL << 11UL , kSRC_SetPoint12AssertReset = 1UL << 12UL , kSRC_SetPoint13AssertReset = 1UL << 13UL , kSRC_SetPoint14AssertReset = 1UL << 14UL , kSRC_SetPoint15AssertReset = 1UL << 15UL } |
The enumeration of setpoint. More... | |
enum | _src_general_purpose_register_index { kSRC_GeneralPurposeRegister1 = 0U , kSRC_GeneralPurposeRegister2 , kSRC_GeneralPurposeRegister3 , kSRC_GeneralPurposeRegister4 , kSRC_GeneralPurposeRegister5 , kSRC_GeneralPurposeRegister6 , kSRC_GeneralPurposeRegister7 , kSRC_GeneralPurposeRegister8 , kSRC_GeneralPurposeRegister9 , kSRC_GeneralPurposeRegister10 , kSRC_GeneralPurposeRegister11 , kSRC_GeneralPurposeRegister12 , kSRC_GeneralPurposeRegister13 , kSRC_GeneralPurposeRegister14 , kSRC_GeneralPurposeRegister15 , kSRC_GeneralPurposeRegister16 , kSRC_GeneralPurposeRegister17 , kSRC_GeneralPurposeRegister18 , kSRC_GeneralPurposeRegister19 , kSRC_GeneralPurposeRegister20 } |
The index of each general purpose register. More... | |
enum | _src_slice_reset_source { kSRC_SoftwareReset = SRC_SLICE_STAT_RST_BY_SW_MASK , kSRC_PowerModeTransferReset = SRC_SLICE_STAT_RST_BY_HW_MASK } |
The enumeration of the reset source of each slice. More... | |
enum | _src_slice_reset_state { kSRC_SliceResetFinished = 0U , kSRC_SliceResetInProcess = 1U } |
The enumeration of the reset state of each slice. More... | |
typedef enum _src_core_name | src_core_name_t |
System core. | |
typedef enum _src_boot_fuse_selection | src_boot_fuse_selection_t |
The enumeration of the boot fuse selection. | |
typedef enum _src_global_system_reset_source | src_global_system_reset_source_t |
The enumeration of global system reset sources. | |
typedef enum _src_global_system_reset_mode | src_global_system_reset_mode_t |
The enumeration of global system reset mode. | |
typedef enum _src_reset_slice_name | src_reset_slice_name_t |
The enumeration of the slice name. | |
typedef enum _src_general_purpose_register_index | src_general_purpose_register_index_t |
The index of each general purpose register. | |
typedef struct _src_setpoint_authentication | src_setpoint_authentication_t |
The structure of setpoint authentication. | |
typedef struct _src_domain_mode_authentication | src_domain_mode_authentication_t |
The stucture of domain mode authentication. | |
typedef enum _src_slice_reset_state | src_slice_reset_state_t |
The enumeration of the reset state of each slice. | |
#define | FSL_SRC_DRIVER_VERSION (MAKE_VERSION(2, 1, 1)) |
SRC driver version 2.1.1. | |
#define | SRC_SLICE_ADDRESS_OFFSET (0x200U) |
#define | SRC_SLICE_AUTHENTICATION_REGISTER_OFFSET (0x0U) |
#define | SRC_SLICE_CONTROL_REGISTER_OFFSET (0x4U) |
#define | SRC_SLICE_SETPOINT_CONFIG_REGISTER_OFFSET (0x8U) |
#define | SRC_SLICE_DOMAIN_CONFIG_REGISTER_OFFSET (0x0CU) |
#define | SRC_SLICE_STATUS_REGISTER_OFFSET (0x10U) |
#define | SRC_GET_SLICE_REGISTER_ADDRESS(base, sliceName, registerOffset) (((uint32_t)base) + SRC_SLICE_ADDRESS_OFFSET + ((uint32_t)(sliceName) << 5UL) + (registerOffset)) |
#define | SRC_SLICE_STAT_UNDER_RST_MASK (0x1U) |
#define | SRC_SLICE_STAT_RST_BY_HW_MASK (0x4U) |
#define | SRC_SLICE_STAT_RST_BY_SW_MASK (0x8U) |
#define | SRC_WHITE_LIST_VALUE(coreName) (1UL << (uint32_t)(coreName)) |
#define | SRC_ASSIGN_LIST_VALUE(coreName) (1UL << (uint32_t)(coreName)) |
#define | SRC_SLICE_AUTHEN_DOMAIN_MODE_MASK (0x1U) |
#define | SRC_SLICE_AUTHEN_SETPOINT_MODE_MASK (0x2U) |
#define | SRC_SLICE_AUTHEN_LOCK_MODE_MASK (0x80U) |
#define | SRC_SLICE_AUTHEN_LOCK_MODE_SHIFT (7U) |
#define | SRC_SLICE_AUTHEN_LOCK_MODE(x) (((uint32_t)(((uint32_t)(x)) << SRC_SLICE_AUTHEN_LOCK_MODE_SHIFT)) & SRC_SLICE_AUTHEN_LOCK_MODE_MASK) |
#define | SRC_SLICE_AUTHEN_ASSIGN_LIST_MASK (0xF00U) |
#define | SRC_SLICE_AUTHEN_ASSIGN_LIST_SHIFT (8U) |
#define | SRC_SLICE_AUTHEN_ASSIGN_LIST(x) (((uint32_t)(((uint32_t)(x)) << SRC_SLICE_AUTHEN_ASSIGN_LIST_SHIFT)) & SRC_SLICE_AUTHEN_ASSIGN_LIST_MASK) |
#define | SRC_SLICE_AUTHEN_LOCK_ASSIGN_MASK (0x8000U) |
#define | SRC_SLICE_AUTHEN_LOCK_ASSIGN_SHIFT (15) |
#define | SRC_SLICE_AUTHEN_LOCK_ASSIGN(x) (((uint32_t)(((uint32_t)(x)) << SRC_SLICE_AUTHEN_LOCK_ASSIGN_SHIFT)) & SRC_SLICE_AUTHEN_LOCK_ASSIGN_MASK) |
#define | SRC_SLICE_AUTHEN_WHITE_LIST_MASK (0xF0000U) |
#define | SRC_SLICE_AUTHEN_WHITE_LIST_SHIFT (16U) |
#define | SRC_SLICE_AUTHEN_WHITE_LIST(x) (((uint32_t)(((uint32_t)(x)) << SRC_SLICE_AUTHEN_WHITE_LIST_SHIFT)) & SRC_SLICE_AUTHEN_WHITE_LIST_MASK) |
#define | SRC_SLICE_AUTHEN_LOCK_LIST_MASK (0x800000U) |
#define | SRC_SLICE_AUTHEN_LOCK_LIST_SHIFT (23U) |
#define | SRC_SLICE_AUTHEN_LOCK_LIST(x) (((uint32_t)(((uint32_t)(x)) << SRC_SLICE_AUTHEN_LOCK_LIST_SHIFT)) & SRC_SLICE_AUTHEN_LOCK_LIST_MASK) |
#define | SRC_SLICE_AUTHEN_USER_MASK (0x1000000U) |
#define | SRC_SLICE_AUTHEN_USER_SHIFT (24U) |
#define | SRC_SLICE_AUTHEN_USER(x) (((uint32_t)(((uint32_t)(x)) << SRC_SLICE_AUTHEN_USER_SHIFT)) & SRC_SLICE_AUTHEN_USER_MASK) |
#define | SRC_SLICE_AUTHEN_NONSECURE_MASK (0x2000000U) |
#define | SRC_SLICE_AUTHEN_NONSECURE_SHIFT (25U) |
#define | SRC_SLICE_AUTHEN_NONSECURE(x) (((uint32_t)(((uint32_t)(x)) << SRC_SLICE_AUTHEN_NONSECURE_SHIFT)) & SRC_SLICE_AUTHEN_NONSECURE_MASK) |
#define | SRC_SLICE_AUTHEN_LOCK_SETTING_MASK (0x80000000U) |
#define | SRC_SLICE_AUTHEN_LOCK_SETTING_SHIFT (31U) |
#define | SRC_SLICE_AUTHEN_LOCK_SETTING(x) (((uint32_t)(((uint32_t)(x)) << SRC_SLICE_AUTHEN_LOCK_SETTING_SHIFT)) & SRC_SLICE_AUTHEN_LOCK_SETTING_MASK) |
Core Reset release | |
void | SRC_ReleaseCoreReset (SRC_Type *base, src_core_name_t coreName) |
Releases related core reset operation. | |
Global System Related Interfaces | |
void | SRC_SetGlobalSystemResetMode (SRC_Type *base, src_global_system_reset_source_t resetSource, src_global_system_reset_mode_t resetMode) |
Sets the reset mode of global system reset source. | |
Slice Software Reset Related Interfaces | |
void | SRC_AssertSliceSoftwareReset (SRC_Type *base, src_reset_slice_name_t sliceName) |
Asserts software reset for the selected slice. | |
Slice Low-Power Mode Transition Related Interfaces | |
void | SRC_SetSliceSetPointConfig (SRC_Type *base, src_reset_slice_name_t sliceName, uint32_t setpointConfig) |
Sets setpoint configuration for the selected reset slice. | |
void | SRC_SetSliceDomainModeConfig (SRC_Type *base, src_reset_slice_name_t sliceName, uint32_t domainConfig) |
Sets domain mode configuration for the selected reset slice. | |
void | SRC_LockSliceMode (SRC_Type *base, src_reset_slice_name_t sliceName) |
Locks the value of SETPOINT_MODE and DOMAIN_MODE for the selected reset slice. | |
Get Slice Reset State | |
src_slice_reset_state_t | SRC_GetSliceResetState (SRC_Type *base, src_reset_slice_name_t sliceName) |
Gets the reset state of the selected slice. | |
enum _src_core_name |
The enumeration of the domain mode.
The index of each general purpose register.
The enumeration of global system reset sources.
The enumeration of reset status flags.
The enumeration of the slice name.
The enumeration of setpoint.
void SRC_AssertSliceSoftwareReset | ( | SRC_Type * | base, |
src_reset_slice_name_t | sliceName | ||
) |
Asserts software reset for the selected slice.
base | SRC peripheral base address. |
sliceName | The slice to be reset. See src_reset_slice_name_t for more details. |
brief Asserts software reset for the selected slice.
param base SRC peripheral base address. param sliceName The selected reset slice. See src_reset_slice_name_t for more details.
src_slice_reset_state_t SRC_GetSliceResetState | ( | SRC_Type * | base, |
src_reset_slice_name_t | sliceName | ||
) |
Gets the reset state of the selected slice.
base | SRC peripheral base address. |
sliceName | The selected slice. See src_reset_slice_name_t for more details. |
kSRC_SliceResetInProcess | The reset is in process. |
kSRC_SliceResetFinished | The reset is finished. |
brief Gets the reset state of the selected slice.
param base SRC peripheral base address. param sliceName The selected slice. See src_reset_slice_name_t for more details. retval kSRC_SliceResetInProcess The reset is in process. retval kSRC_SliceResetFinished The reset is finished.
void SRC_LockSliceMode | ( | SRC_Type * | base, |
src_reset_slice_name_t | sliceName | ||
) |
Locks the value of SETPOINT_MODE and DOMAIN_MODE for the selected reset slice.
base | SRC peripheral base address. |
sliceName | The selected reset slice. See src_reset_slice_name_t for more details. |
brief Locks the value of SETPOINT_MODE and DOMAIN_MODE for the selected reset slice.
param base SRC peripheral base address. param sliceName The selected reset slice. See src_reset_slice_name_t for more details.
void SRC_ReleaseCoreReset | ( | SRC_Type * | base, |
src_core_name_t | coreName | ||
) |
Releases related core reset operation.
The core reset will be held until the boot core to release it.
base | SRC peripheral base address. |
coreName | The name of the reset core to be released. |
brief Release related core reset operation.
The core reset will be held until boot core to release it.
param base SRC peripheral base address. param coreName The name of the reset core to be released.
void SRC_SetGlobalSystemResetMode | ( | SRC_Type * | base, |
src_global_system_reset_source_t | resetSource, | ||
src_global_system_reset_mode_t | resetMode | ||
) |
Sets the reset mode of global system reset source.
This function sets the selected mode of the input global system reset sources.
base | SRC peripheral base address. |
resetSource | The global system reset source. See src_global_system_reset_source_t for more details. |
resetMode | The reset mode of each reset source. See src_global_system_reset_mode_t for more details. |
brief Sets the reset mode of global system reset source.
This function sets the selected mode of the input global system reset sources. This function will return as soon as the reset if finished.
param base SRC peripheral base address. param resetSource The global system reset source. See src_global_system_reset_source_t for more details. param resetMode The reset mode of each reset source. See src_global_system_reset_mode_t for more details.
void SRC_SetSliceDomainModeConfig | ( | SRC_Type * | base, |
src_reset_slice_name_t | sliceName, | ||
uint32_t | domainConfig | ||
) |
Sets domain mode configuration for the selected reset slice.
base | SRC peripheral base address. |
sliceName | The selected reset slice. See src_reset_slice_name_t for more details. |
domainConfig | The logic OR'ed value of _src_domain_mode_selection enumerations. |
brief Sets domain mode configuration for the selected reset slice.
param base SRC peripheral base address. param sliceName The selected reset slice. See src_reset_slice_name_t for more details. param domainConfig The logic OR'ed value of _src_domain_mode_selection.
void SRC_SetSliceSetPointConfig | ( | SRC_Type * | base, |
src_reset_slice_name_t | sliceName, | ||
uint32_t | setpointConfig | ||
) |
Sets setpoint configuration for the selected reset slice.
base | SRC peripheral base address. |
sliceName | The selected reset slice. See src_reset_slice_name_t for more details. |
setpointConfig | The logic OR'ed value of _src_setpoint_selection enumeration, when the system in the selected setpoint slice reset will be asserted. |
brief Sets setpoint configuration for the selected reset slice.
param base SRC peripheral base address. param sliceName The selected reset slice. See src_reset_slice_name_t for more details. param setPointConfig The logic OR'ed value of _src_setpoint_selection. When the system in the selected setpoint slice reset will be assert.