48 #ifndef __PWR_CTRL_H__
49 #define __PWR_CTRL_H__
64 #include <inc/hw_types.h>
65 #include <inc/hw_memmap.h>
66 #include <inc/hw_ints.h>
67 #include <inc/hw_aon_wuc.h>
68 #include <inc/hw_aon_sysctl.h>
69 #include <inc/hw_aon_rtc.h>
70 #include <inc/hw_adi_2_refsys.h>
95 #define PowerCtrlStateSet NOROM_PowerCtrlStateSet
96 #define PowerCtrlSourceSet NOROM_PowerCtrlSourceSet
104 #define PWRCTRL_ACTIVE 0x00000001
105 #define PWRCTRL_STANDBY 0x00000002
106 #define PWRCTRL_POWER_DOWN 0x00000004
107 #define PWRCTRL_SHUTDOWN 0x00000008
114 #define PWRCTRL_IOSEG3_ENABLE 0x00000800
115 #define PWRCTRL_IOSEG2_ENABLE 0x00000400
116 #define PWRCTRL_IOSEG3_DISABLE 0x00000200
117 #define PWRCTRL_IOSEG2_DISABLE 0x00000100
118 #define PWRCTRL_PWRSRC_DCDC 0x00000001
119 #define PWRCTRL_PWRSRC_GLDO 0x00000000
120 #define PWRCTRL_PWRSRC_ULDO 0x00000002
127 #define PWRCTRL_RST_POWER_ON 0x00000000 // Reset by power on
128 #define PWRCTRL_RST_PIN 0x00000001 // Pin reset
129 #define PWRCTRL_RST_VDDS_BOD 0x00000002 // VDDS Brown Out Detect
130 #define PWRCTRL_RST_VDD_BOD 0x00000003 // VDD Brown Out Detect
131 #define PWRCTRL_RST_VDDR_BOD 0x00000004 // VDDR Brown Out Detect
132 #define PWRCTRL_RST_CLK_LOSS 0x00000005 // Clock loss Reset
133 #define PWRCTRL_RST_SW_PIN 0x00000006 // Clock loss Reset
134 #define PWRCTRL_RST_WARM 0x00000007 // Warm Reset
214 __STATIC_INLINE uint32_t
217 uint32_t ui32PowerConfig;
250 __STATIC_INLINE uint32_t
315 #if !defined(DRIVERLIB_NOROM) && !defined(DOXYGEN)
317 #ifdef ROM_PowerCtrlStateSet
318 #undef PowerCtrlStateSet
319 #define PowerCtrlStateSet ROM_PowerCtrlStateSet
321 #ifdef ROM_PowerCtrlSourceSet
322 #undef PowerCtrlSourceSet
323 #define PowerCtrlSourceSet ROM_PowerCtrlSourceSet
336 #endif // __PWR_CTRL_H__
static void AONIOCFreezeEnable(void)
Freeze the IOs.
void PowerCtrlSourceSet(uint32_t ui32PowerConfig)
Set (Request) the main power source.
static void PowerCtrlIOFreezeDisable(void)
static void AONIOCFreezeDisable(void)
Un-freeze the IOs.
static void PowerCtrlIOFreezeEnable(void)
Close the latches in the AON IOC interface and in padring.
#define PWRCTRL_PWRSRC_GLDO
void PowerCtrlStateSet(uint32_t ui32Powerstate)
Force the system into low power modes.
static uint32_t PowerCtrlResetSourceGet(void)
Get the last known reset source of the system.
static uint32_t PowerCtrlSourceGet(void)
Get the main power source.
#define PWRCTRL_PWRSRC_DCDC