summaryrefslogtreecommitdiffstats
path: root/lib/reg/pmc.h
blob: 4aef0bed935a02b6759055594ff0a08fa91ba4e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef LIB_REG_PMC_H
#define LIB_REG_PMC_H

#include <reg/regdefs.h>

#define PMC_LVDSC1 REG_8(0x4007D000) /* Low Voltage Detect Status And Control 1 register */
#define LVDSC1_LVDF 7 /* Low-Voltage Detect Flag */
#define LVDSC1_LVDACK 6 /* Low-Voltage Detect Acknowledge */
#define LVDSC1_LVDIE 5 /* Low-Voltage Detect Interrupt Enable */
#define LVDSC1_LVDRE 4 /* Low-Voltage Detect Reset Enable */
#define LVDSC1_LVDV 0 /* Low-Voltage Detect Voltage Select */
#define LVDSC1_LVDV_M (uint8_t)(BITS(2) << LVDSC1_LVDV)

#define PMC_LVDSC2 REG_8(0x4007D001) /* Low Voltage Detect Status And Control 2 register */
#define LVDSC2_LVWF 7 /* Low-Voltage Warning Flag */
#define LVDSC2_LVWACK 6 /* Low-Voltage Warning Acknowledge */
#define LVDSC2_LVWIE 5 /* Low-Voltage Warning Interrupt Enable */
#define LVDSC2_LVWV 0 /* Low-Voltage Warning Voltage Select */
#define LVDSC2_LVWV_M (uint8_t)(BITS(2) << LVDSC2_LVWV)

#define PMC_REGSC REG_8(0x4007D002) /* Regulator Status And Control register */
#define REGSC_BGEN 4 /* Bandgap Enable In VLPx Operation */
#define REGSC_ACKISO 3 /* Acknowledge Isolation */
#define REGSC_REGONS 2 /* Regulator In Run Regulation Status */
#define REGSC_BGBE 1 /* Bandgap Buffer Enable */

#endif /* LIB_REG_PMC_H */