diff options
Diffstat (limited to 'chip/mec1322/registers.h')
-rw-r--r-- | chip/mec1322/registers.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chip/mec1322/registers.h b/chip/mec1322/registers.h index edc276f0eb..396b9efbe7 100644 --- a/chip/mec1322/registers.h +++ b/chip/mec1322/registers.h @@ -44,6 +44,7 @@ #define MEC1322_EC_TRACE_EN REG32(MEC1322_EC_BASE + 0x1c) #define MEC1322_EC_JTAG_EN REG32(MEC1322_EC_BASE + 0x20) #define MEC1322_EC_WDT_CNT REG32(MEC1322_EC_BASE + 0x28) +#define MEC1322_EC_ADC_VREF_PD REG32(MEC1322_EC_BASE + 0x38) /* Interrupt aggregator */ @@ -285,6 +286,13 @@ static inline uintptr_t gpio_port_base(int port_id) #define MEC1322_ADC_READ(x) REG32(MEC1322_ADC_BASE + 0x14 + (x) * 0x4) +/* Hibernation timer */ +#define MEC1322_HTIMER_BASE 0x40009800 +#define MEC1322_HTIMER_PRELOAD REG16(MEC1322_HTIMER_BASE + 0x0) +#define MEC1322_HTIMER_CONTROL REG16(MEC1322_HTIMER_BASE + 0x4) +#define MEC1322_HTIMER_COUNT REG16(MEC1322_HTIMER_BASE + 0x8) + + /* IRQ Numbers */ #define MEC1322_IRQ_I2C_0 0 #define MEC1322_IRQ_I2C_1 1 |