Functions | |
void | PowerCtrlStateSet (uint32_t ui32Powerstate) |
Force the system into low power modes. More... | |
void | PowerCtrlSourceSet (uint32_t ui32PowerConfig) |
Set (Request) the main power source. More... | |
static uint32_t | PowerCtrlSourceGet (void) |
Get the main power source. More... | |
static uint32_t | PowerCtrlResetSourceGet (void) |
OBSOLETE: Get the last known reset source of the system. More... | |
static void | PowerCtrlIOFreezeEnable (void) |
Close the latches in the AON IOC interface and in padring. More... | |
static void | PowerCtrlIOFreezeDisable (void) |
|
inlinestatic |
Open the latches in the AON IOC interface and in padring.
Use this function to unfreeze the latches that retained on the IOs driven by the device. This function should not be called before the application has reinitialized the IO configuration that will drive the IOs to the desired level.
Definition at line 307 of file pwr_ctrl.h.
|
inlinestatic |
Close the latches in the AON IOC interface and in padring.
Use this function to unfreeze the current value retained on the IOs driven by the device. This is required if it is desired to maintain the level of any IO driven when going through a shutdown/powerdown cycle.
Definition at line 282 of file pwr_ctrl.h.
Referenced by PowerCtrlStateSet().
|
inlinestatic |
OBSOLETE: Get the last known reset source of the system.
Recommend using function SysCtrlResetSourceGet() instead of this one. This function returns reset source but does not cover if waking up from shutdown. This function can be seen as a subset of function SysCtrlResetSourceGet() and will be removed in a future release.
Definition at line 258 of file pwr_ctrl.h.
|
inlinestatic |
Get the main power source.
Use this function to retrieve the current active power source.
When the System CPU is active it can never be powered by uLDO as this is too weak a power source.
Definition at line 215 of file pwr_ctrl.h.
void PowerCtrlSourceSet | ( | uint32_t | ui32PowerConfig | ) |
Set (Request) the main power source.
ui32PowerConfig | is a bitmask indicating the target power source. |
Definition at line 260 of file pwr_ctrl.c.
Referenced by PowerCtrlStateSet().
void PowerCtrlStateSet | ( | uint32_t | ui32Powerstate | ) |
Force the system into low power modes.
The device has 4 main power states where PWRCTRL_ACTIVE is the default state. If the CPU is running the system is considered to be in the active state. The three other states are:
ui32Powerstate | defines the next power state for the system. |
Definition at line 60 of file pwr_ctrl.c.
Referenced by SysCtrlPowerdown(), SysCtrlShutdown(), and SysCtrlStandby().
#define PWRCTRL_ACTIVE 0x00000001 |
Definition at line 104 of file pwr_ctrl.h.
#define PWRCTRL_IOSEG2_DISABLE 0x00000100 |
Definition at line 117 of file pwr_ctrl.h.
#define PWRCTRL_IOSEG2_ENABLE 0x00000400 |
Definition at line 115 of file pwr_ctrl.h.
#define PWRCTRL_IOSEG3_DISABLE 0x00000200 |
Definition at line 116 of file pwr_ctrl.h.
#define PWRCTRL_IOSEG3_ENABLE 0x00000800 |
Definition at line 114 of file pwr_ctrl.h.
#define PWRCTRL_POWER_DOWN 0x00000004 |
Definition at line 106 of file pwr_ctrl.h.
Referenced by PowerCtrlStateSet(), and SysCtrlPowerdown().
#define PWRCTRL_PWRSRC_DCDC 0x00000001 |
Definition at line 118 of file pwr_ctrl.h.
Referenced by PowerCtrlSourceGet(), and PowerCtrlSourceSet().
#define PWRCTRL_PWRSRC_GLDO 0x00000000 |
Definition at line 119 of file pwr_ctrl.h.
Referenced by PowerCtrlSourceGet(), and PowerCtrlSourceSet().
#define PWRCTRL_PWRSRC_ULDO 0x00000002 |
Definition at line 120 of file pwr_ctrl.h.
Referenced by PowerCtrlSourceSet(), and PowerCtrlStateSet().
#define PWRCTRL_RST_CLK_LOSS 0x00000005 |
Definition at line 132 of file pwr_ctrl.h.
#define PWRCTRL_RST_PIN 0x00000001 |
Definition at line 128 of file pwr_ctrl.h.
#define PWRCTRL_RST_POWER_ON 0x00000000 |
Definition at line 127 of file pwr_ctrl.h.
#define PWRCTRL_RST_SW_PIN 0x00000006 |
Definition at line 133 of file pwr_ctrl.h.
#define PWRCTRL_RST_VDD_BOD 0x00000003 |
Definition at line 130 of file pwr_ctrl.h.
#define PWRCTRL_RST_VDDR_BOD 0x00000004 |
Definition at line 131 of file pwr_ctrl.h.
#define PWRCTRL_RST_VDDS_BOD 0x00000002 |
Definition at line 129 of file pwr_ctrl.h.
#define PWRCTRL_RST_WARM 0x00000007 |
Definition at line 134 of file pwr_ctrl.h.
#define PWRCTRL_SHUTDOWN 0x00000008 |
Definition at line 107 of file pwr_ctrl.h.
Referenced by PowerCtrlStateSet(), and SysCtrlShutdown().
#define PWRCTRL_STANDBY 0x00000002 |
Definition at line 105 of file pwr_ctrl.h.
Referenced by PowerCtrlStateSet(), and SysCtrlStandby().