mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(soc): c61 update pmu_struct to v1.1.14
This commit is contained in:
parent
fd69a7cf6b
commit
c00b55e9e6
@ -14,7 +14,6 @@ extern "C" {
|
|||||||
#include "soc.h"
|
#include "soc.h"
|
||||||
#include "soc/pmu_reg.h"
|
#include "soc/pmu_reg.h"
|
||||||
|
|
||||||
// TODO: [ESP32C61] This file comes from verification branch
|
|
||||||
typedef union {
|
typedef union {
|
||||||
struct {
|
struct {
|
||||||
uint32_t reserved0 : 21;
|
uint32_t reserved0 : 21;
|
||||||
@ -377,6 +376,16 @@ typedef union {
|
|||||||
uint32_t val;
|
uint32_t val;
|
||||||
} pmu_power_wait_timer1_reg_t;
|
} pmu_power_wait_timer1_reg_t;
|
||||||
|
|
||||||
|
typedef union {
|
||||||
|
struct {
|
||||||
|
uint32_t lp_iso_wait_timer: 8;
|
||||||
|
uint32_t lp_rst_wait_timer: 8;
|
||||||
|
uint32_t hp_iso_wait_timer: 8;
|
||||||
|
uint32_t hp_rst_wait_timer: 8;
|
||||||
|
};
|
||||||
|
uint32_t val;
|
||||||
|
} pmu_power_wait_timer2_reg_t;
|
||||||
|
|
||||||
typedef union {
|
typedef union {
|
||||||
struct {
|
struct {
|
||||||
uint32_t force_reset : 1;
|
uint32_t force_reset : 1;
|
||||||
@ -446,6 +455,7 @@ typedef union {
|
|||||||
typedef struct pmu_power_hw_regmap_t{
|
typedef struct pmu_power_hw_regmap_t{
|
||||||
pmu_power_wait_timer0_reg_t wait_timer0;
|
pmu_power_wait_timer0_reg_t wait_timer0;
|
||||||
pmu_power_wait_timer1_reg_t wait_timer1;
|
pmu_power_wait_timer1_reg_t wait_timer1;
|
||||||
|
pmu_power_wait_timer2_reg_t wait_timer2;
|
||||||
pmu_power_domain_cntl_reg_t hp_pd[5];
|
pmu_power_domain_cntl_reg_t hp_pd[5];
|
||||||
pmu_power_domain_cntl_reg_t lp_peri;
|
pmu_power_domain_cntl_reg_t lp_peri;
|
||||||
pmu_power_memory_cntl_reg_t mem_cntl;
|
pmu_power_memory_cntl_reg_t mem_cntl;
|
||||||
@ -555,7 +565,9 @@ typedef union {
|
|||||||
|
|
||||||
typedef union {
|
typedef union {
|
||||||
struct {
|
struct {
|
||||||
uint32_t reserved0 : 26;
|
uint32_t reserved0 : 24;
|
||||||
|
uint32_t xpd_tc5g_i2c : 1;
|
||||||
|
uint32_t xpd_rx5g_i2c : 1;
|
||||||
uint32_t perif_i2c_rstb: 1;
|
uint32_t perif_i2c_rstb: 1;
|
||||||
uint32_t xpd_perif_i2c : 1;
|
uint32_t xpd_perif_i2c : 1;
|
||||||
uint32_t xpd_txrf_i2c : 1;
|
uint32_t xpd_txrf_i2c : 1;
|
||||||
@ -732,7 +744,7 @@ typedef struct pmu_dev_t{
|
|||||||
volatile uint32_t val;
|
volatile uint32_t val;
|
||||||
} vdd_spi_status;
|
} vdd_spi_status;
|
||||||
|
|
||||||
uint32_t reserved[150];
|
uint32_t reserved[0];
|
||||||
|
|
||||||
union {
|
union {
|
||||||
struct {
|
struct {
|
||||||
@ -746,9 +758,9 @@ typedef struct pmu_dev_t{
|
|||||||
extern pmu_dev_t PMU;
|
extern pmu_dev_t PMU;
|
||||||
|
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
// _Static_assert(sizeof(pmu_dev_t) == 0x400, "Invalid size of pmu_dev_t structure");
|
_Static_assert(sizeof(pmu_dev_t) == 0x1AC, "Invalid size of pmu_dev_t structure");
|
||||||
|
|
||||||
// _Static_assert(offsetof(pmu_dev_t, reserved) == (PMU_VDD_SPI_STATUS_REG - DR_REG_PMU_BASE) + 4, "Invalid size of pmu_dev_t structure");
|
_Static_assert(offsetof(pmu_dev_t, reserved) == (PMU_VDD_SPI_STATUS_REG - DR_REG_PMU_BASE) + 4, "Invalid size of pmu_dev_t structure");
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user