#include <stdbool.h>
#include <stdint.h>
#include "../inc/hw_types.h"
#include "../inc/hw_memmap.h"
#include "../inc/hw_ints.h"
#include "../inc/hw_aon_pmctl.h"
#include "../inc/hw_aon_rtc.h"
#include "../inc/hw_adi_2_refsys.h"
#include "debug.h"
#include "interrupt.h"
#include "osc.h"
#include "cpu.h"
#include "prcm.h"
#include "aon_ioc.h"
#include "adi.h"
Macros | |
#define | PWRCTRL_ACTIVE 0x00000001 |
#define | PWRCTRL_STANDBY 0x00000002 |
#define | PWRCTRL_POWER_DOWN 0x00000004 |
#define | PWRCTRL_SHUTDOWN 0x00000008 |
#define | PWRCTRL_IOSEG3_ENABLE 0x00000800 |
#define | PWRCTRL_IOSEG2_ENABLE 0x00000400 |
#define | PWRCTRL_IOSEG3_DISABLE 0x00000200 |
#define | PWRCTRL_IOSEG2_DISABLE 0x00000100 |
#define | PWRCTRL_PWRSRC_DCDC 0x00000001 |
#define | PWRCTRL_PWRSRC_GLDO 0x00000000 |
#define | PWRCTRL_PWRSRC_ULDO 0x00000002 |
#define | PWRCTRL_RST_POWER_ON 0x00000000 |
#define | PWRCTRL_RST_PIN 0x00000001 |
#define | PWRCTRL_RST_VDDS_BOD 0x00000002 |
#define | PWRCTRL_RST_VDD_BOD 0x00000003 |
#define | PWRCTRL_RST_VDDR_BOD 0x00000004 |
#define | PWRCTRL_RST_CLK_LOSS 0x00000005 |
#define | PWRCTRL_RST_SW_PIN 0x00000006 |
#define | PWRCTRL_RST_WARM 0x00000007 |
Functions | |
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 | PowerCtrlPadSleepEnable (void) |
Enables pad sleep in order to latch device outputs before shutdown. More... | |
static void | PowerCtrlPadSleepDisable (void) |
Disables pad sleep in order to unlatch device outputs after wakeup from shutdown. More... | |