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>
93 #define PowerCtrlSourceSet NOROM_PowerCtrlSourceSet
101 #define PWRCTRL_ACTIVE 0x00000001
102 #define PWRCTRL_STANDBY 0x00000002
103 #define PWRCTRL_POWER_DOWN 0x00000004
104 #define PWRCTRL_SHUTDOWN 0x00000008
111 #define PWRCTRL_IOSEG3_ENABLE 0x00000800
112 #define PWRCTRL_IOSEG2_ENABLE 0x00000400
113 #define PWRCTRL_IOSEG3_DISABLE 0x00000200
114 #define PWRCTRL_IOSEG2_DISABLE 0x00000100
115 #define PWRCTRL_PWRSRC_DCDC 0x00000001
116 #define PWRCTRL_PWRSRC_GLDO 0x00000000
117 #define PWRCTRL_PWRSRC_ULDO 0x00000002
124 #define PWRCTRL_RST_POWER_ON 0x00000000 // Reset by power on
125 #define PWRCTRL_RST_PIN 0x00000001 // Pin reset
126 #define PWRCTRL_RST_VDDS_BOD 0x00000002 // VDDS Brown Out Detect
127 #define PWRCTRL_RST_VDD_BOD 0x00000003 // VDD Brown Out Detect
128 #define PWRCTRL_RST_VDDR_BOD 0x00000004 // VDDR Brown Out Detect
129 #define PWRCTRL_RST_CLK_LOSS 0x00000005 // Clock loss Reset
130 #define PWRCTRL_RST_SW_PIN 0x00000006 // SYSRESET or pin reset
131 #define PWRCTRL_RST_WARM 0x00000007 // Reset via PRCM warm reset request
179 __STATIC_INLINE uint32_t
182 uint32_t ui32PowerConfig;
221 __STATIC_INLINE uint32_t
287 #if !defined(DRIVERLIB_NOROM) && !defined(DOXYGEN)
289 #ifdef ROM_PowerCtrlSourceSet
290 #undef PowerCtrlSourceSet
291 #define PowerCtrlSourceSet ROM_PowerCtrlSourceSet
304 #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
static uint32_t PowerCtrlResetSourceGet(void)
OBSOLETE: Get the last known reset source of the system.
static uint32_t PowerCtrlSourceGet(void)
Get the main power source.
#define PWRCTRL_PWRSRC_DCDC