mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 20:41:14 +00:00
soc: regenerate modem header with regtool
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
/**
|
||||
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
@@ -10,226 +10,169 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef volatile struct {
|
||||
union {
|
||||
struct {
|
||||
uint32_t reg_clk_en : 1;
|
||||
uint32_t reg_clk_debug_ena : 1;
|
||||
uint32_t reserved2 : 30;
|
||||
};
|
||||
uint32_t val;
|
||||
} test_conf;
|
||||
union {
|
||||
struct {
|
||||
uint32_t reg_clk_lp_timer_sel_osc_slow : 1;
|
||||
uint32_t reg_clk_lp_timer_sel_osc_fast : 1;
|
||||
uint32_t reg_clk_lp_timer_sel_xtal : 1;
|
||||
uint32_t reg_clk_lp_timer_sel_xtal32k : 1;
|
||||
uint32_t reg_clk_lp_timer_div_num : 12;
|
||||
uint32_t reserved16 : 16;
|
||||
};
|
||||
uint32_t val;
|
||||
} lp_timer_conf;
|
||||
union {
|
||||
struct {
|
||||
uint32_t reg_clk_coex_lp_sel_osc_slow : 1;
|
||||
uint32_t reg_clk_coex_lp_sel_osc_fast : 1;
|
||||
uint32_t reg_clk_coex_lp_sel_xtal : 1;
|
||||
uint32_t reg_clk_coex_lp_sel_xtal32k : 1;
|
||||
uint32_t reg_clk_coex_lp_div_num : 12;
|
||||
uint32_t reserved16 : 16;
|
||||
};
|
||||
uint32_t val;
|
||||
} coex_lp_clk_conf;
|
||||
union {
|
||||
struct {
|
||||
uint32_t reg_clk_wifipwr_lp_sel_osc_slow: 1;
|
||||
uint32_t reg_clk_wifipwr_lp_sel_osc_fast: 1;
|
||||
uint32_t reg_clk_wifipwr_lp_sel_xtal : 1;
|
||||
uint32_t reg_clk_wifipwr_lp_sel_xtal32k: 1;
|
||||
uint32_t reg_clk_wifipwr_lp_div_num : 12;
|
||||
uint32_t reserved16 : 16;
|
||||
};
|
||||
uint32_t val;
|
||||
} wifi_lp_clk_conf;
|
||||
union {
|
||||
struct {
|
||||
uint32_t reg_clk_i2c_mst_sel_160m : 1;
|
||||
uint32_t reserved1 : 31;
|
||||
};
|
||||
uint32_t val;
|
||||
} i2c_mst_clk_conf;
|
||||
union {
|
||||
struct {
|
||||
uint32_t reg_clk_modem_32k_sel : 2;
|
||||
uint32_t reserved2 : 30;
|
||||
};
|
||||
uint32_t val;
|
||||
} modem_32k_clk_conf;
|
||||
union {
|
||||
struct {
|
||||
uint32_t reg_clk_wifipwr_en : 1;
|
||||
uint32_t reg_clk_coex_en : 1;
|
||||
uint32_t reg_clk_i2c_mst_en : 1;
|
||||
uint32_t reg_clk_lp_timer_en : 1;
|
||||
uint32_t reserved4 : 1;
|
||||
uint32_t reserved5 : 1;
|
||||
uint32_t reserved6 : 1;
|
||||
uint32_t reserved7 : 1;
|
||||
uint32_t reserved8 : 1;
|
||||
uint32_t reserved9 : 1;
|
||||
uint32_t reserved10 : 1;
|
||||
uint32_t reserved11 : 1;
|
||||
uint32_t reserved12 : 1;
|
||||
uint32_t reserved13 : 1;
|
||||
uint32_t reserved14 : 1;
|
||||
uint32_t reserved15 : 1;
|
||||
uint32_t reserved16 : 1;
|
||||
uint32_t reserved17 : 1;
|
||||
uint32_t reserved18 : 1;
|
||||
uint32_t reserved19 : 1;
|
||||
uint32_t reserved20 : 1;
|
||||
uint32_t reserved21 : 1;
|
||||
uint32_t reserved22 : 1;
|
||||
uint32_t reserved23 : 1;
|
||||
uint32_t reserved24 : 1;
|
||||
uint32_t reserved25 : 1;
|
||||
uint32_t reserved26 : 1;
|
||||
uint32_t reserved27 : 1;
|
||||
uint32_t reserved28 : 1;
|
||||
uint32_t reserved29 : 1;
|
||||
uint32_t reserved30 : 1;
|
||||
uint32_t reserved31 : 1;
|
||||
};
|
||||
uint32_t val;
|
||||
} clk_conf;
|
||||
union {
|
||||
struct {
|
||||
uint32_t reg_clk_wifipwr_fo : 1;
|
||||
uint32_t reg_clk_coex_fo : 1;
|
||||
uint32_t reg_clk_i2c_mst_fo : 1;
|
||||
uint32_t reg_clk_lp_timer_fo : 1;
|
||||
uint32_t reg_clk_bcmem_fo : 1;
|
||||
uint32_t reg_clk_i2c_mst_mem_fo : 1;
|
||||
uint32_t reg_clk_chan_freq_mem_fo : 1;
|
||||
uint32_t reg_clk_pbus_mem_fo : 1;
|
||||
uint32_t reg_clk_agc_mem_fo : 1;
|
||||
uint32_t reg_clk_dc_mem_fo : 1;
|
||||
uint32_t reserved10 : 1;
|
||||
uint32_t reserved11 : 1;
|
||||
uint32_t reserved12 : 1;
|
||||
uint32_t reserved13 : 1;
|
||||
uint32_t reserved14 : 1;
|
||||
uint32_t reserved15 : 1;
|
||||
uint32_t reserved16 : 1;
|
||||
uint32_t reserved17 : 1;
|
||||
uint32_t reserved18 : 1;
|
||||
uint32_t reserved19 : 1;
|
||||
uint32_t reserved20 : 1;
|
||||
uint32_t reserved21 : 1;
|
||||
uint32_t reserved22 : 1;
|
||||
uint32_t reserved23 : 1;
|
||||
uint32_t reserved24 : 1;
|
||||
uint32_t reserved25 : 1;
|
||||
uint32_t reserved26 : 1;
|
||||
uint32_t reserved27 : 1;
|
||||
uint32_t reserved28 : 1;
|
||||
uint32_t reserved29 : 1;
|
||||
uint32_t reserved30 : 1;
|
||||
uint32_t reserved31 : 1;
|
||||
};
|
||||
uint32_t val;
|
||||
} clk_conf_force_on;
|
||||
union {
|
||||
struct {
|
||||
uint32_t reserved0 : 16;
|
||||
uint32_t reg_clk_wifipwr_st_map : 4;
|
||||
uint32_t reg_clk_coex_st_map : 4;
|
||||
uint32_t reg_clk_i2c_mst_st_map : 4;
|
||||
uint32_t reg_clk_lp_apb_st_map : 4;
|
||||
};
|
||||
uint32_t val;
|
||||
} clk_conf_power_st;
|
||||
union {
|
||||
struct {
|
||||
uint32_t reg_rst_wifipwr : 1;
|
||||
uint32_t reg_rst_coex : 1;
|
||||
uint32_t reg_rst_i2c_mst : 1;
|
||||
uint32_t reg_rst_lp_timer : 1;
|
||||
uint32_t reserved4 : 1;
|
||||
uint32_t reserved5 : 1;
|
||||
uint32_t reserved6 : 1;
|
||||
uint32_t reserved7 : 1;
|
||||
uint32_t reserved8 : 1;
|
||||
uint32_t reserved9 : 1;
|
||||
uint32_t reserved10 : 1;
|
||||
uint32_t reserved11 : 1;
|
||||
uint32_t reserved12 : 1;
|
||||
uint32_t reserved13 : 1;
|
||||
uint32_t reserved14 : 1;
|
||||
uint32_t reserved15 : 1;
|
||||
uint32_t reserved16 : 1;
|
||||
uint32_t reserved17 : 1;
|
||||
uint32_t reserved18 : 1;
|
||||
uint32_t reserved19 : 1;
|
||||
uint32_t reserved20 : 1;
|
||||
uint32_t reserved21 : 1;
|
||||
uint32_t reserved22 : 1;
|
||||
uint32_t reserved23 : 1;
|
||||
uint32_t reserved24 : 1;
|
||||
uint32_t reserved25 : 1;
|
||||
uint32_t reserved26 : 1;
|
||||
uint32_t reserved27 : 1;
|
||||
uint32_t reserved28 : 1;
|
||||
uint32_t reserved29 : 1;
|
||||
uint32_t reserved30 : 1;
|
||||
uint32_t reserved31 : 1;
|
||||
};
|
||||
uint32_t val;
|
||||
} rst_conf;
|
||||
union {
|
||||
struct {
|
||||
uint32_t reg_dc_mem_force_pu : 1;
|
||||
uint32_t reg_dc_mem_force_pd : 1;
|
||||
uint32_t reg_agc_mem_force_pu : 1;
|
||||
uint32_t reg_agc_mem_force_pd : 1;
|
||||
uint32_t reg_pbus_mem_force_pu : 1;
|
||||
uint32_t reg_pbus_mem_force_pd : 1;
|
||||
uint32_t reg_bc_mem_force_pu : 1;
|
||||
uint32_t reg_bc_mem_force_pd : 1;
|
||||
uint32_t reg_i2c_mst_mem_force_pu : 1;
|
||||
uint32_t reg_i2c_mst_mem_force_pd : 1;
|
||||
uint32_t reg_chan_freq_mem_force_pu : 1;
|
||||
uint32_t reg_chan_freq_mem_force_pd : 1;
|
||||
uint32_t reg_modem_pwr_mem_wp : 3;
|
||||
uint32_t reg_modem_pwr_mem_wa : 3;
|
||||
uint32_t reg_modem_pwr_mem_ra : 2;
|
||||
uint32_t reserved20 : 1;
|
||||
uint32_t reserved21 : 1;
|
||||
uint32_t reserved22 : 1;
|
||||
uint32_t reserved23 : 1;
|
||||
uint32_t reserved24 : 1;
|
||||
uint32_t reserved25 : 1;
|
||||
uint32_t reserved26 : 1;
|
||||
uint32_t reserved27 : 1;
|
||||
uint32_t reserved28 : 1;
|
||||
uint32_t reserved29 : 1;
|
||||
uint32_t reserved30 : 1;
|
||||
uint32_t reserved31 : 1;
|
||||
};
|
||||
uint32_t val;
|
||||
} mem_conf;
|
||||
union {
|
||||
struct {
|
||||
uint32_t reg_date : 28;
|
||||
uint32_t reserved28 : 4;
|
||||
};
|
||||
uint32_t val;
|
||||
} date;
|
||||
typedef union {
|
||||
struct {
|
||||
uint32_t clk_en:1;
|
||||
uint32_t clk_debug_ena:1;
|
||||
uint32_t reserved_2:30;
|
||||
};
|
||||
uint32_t val;
|
||||
} modem_lpcon_test_conf_reg_t;
|
||||
|
||||
typedef union {
|
||||
struct {
|
||||
uint32_t clk_lp_timer_sel_osc_slow:1;
|
||||
uint32_t clk_lp_timer_sel_osc_fast:1;
|
||||
uint32_t clk_lp_timer_sel_xtal:1;
|
||||
uint32_t clk_lp_timer_sel_xtal32k:1;
|
||||
uint32_t clk_lp_timer_div_num:12;
|
||||
uint32_t reserved_16:16;
|
||||
};
|
||||
uint32_t val;
|
||||
} modem_lpcon_lp_timer_conf_reg_t;
|
||||
|
||||
typedef union {
|
||||
struct {
|
||||
uint32_t clk_coex_lp_sel_osc_slow:1;
|
||||
uint32_t clk_coex_lp_sel_osc_fast:1;
|
||||
uint32_t clk_coex_lp_sel_xtal:1;
|
||||
uint32_t clk_coex_lp_sel_xtal32k:1;
|
||||
uint32_t clk_coex_lp_div_num:12;
|
||||
uint32_t reserved_16:16;
|
||||
};
|
||||
uint32_t val;
|
||||
} modem_lpcon_coex_lp_clk_conf_reg_t;
|
||||
|
||||
typedef union {
|
||||
struct {
|
||||
uint32_t clk_wifipwr_lp_sel_osc_slow:1;
|
||||
uint32_t clk_wifipwr_lp_sel_osc_fast:1;
|
||||
uint32_t clk_wifipwr_lp_sel_xtal:1;
|
||||
uint32_t clk_wifipwr_lp_sel_xtal32k:1;
|
||||
uint32_t clk_wifipwr_lp_div_num:12;
|
||||
uint32_t reserved_16:16;
|
||||
};
|
||||
uint32_t val;
|
||||
} modem_lpcon_wifi_lp_clk_conf_reg_t;
|
||||
|
||||
typedef union {
|
||||
struct {
|
||||
uint32_t clk_i2c_mst_sel_160m:1;
|
||||
uint32_t reserved_1:31;
|
||||
};
|
||||
uint32_t val;
|
||||
} modem_lpcon_i2c_mst_clk_conf_reg_t;
|
||||
|
||||
typedef union {
|
||||
struct {
|
||||
uint32_t clk_modem_32k_sel:2;
|
||||
uint32_t reserved_2:30;
|
||||
};
|
||||
uint32_t val;
|
||||
} modem_lpcon_modem_32k_clk_conf_reg_t;
|
||||
|
||||
typedef union {
|
||||
struct {
|
||||
uint32_t clk_wifipwr_en:1;
|
||||
uint32_t clk_coex_en:1;
|
||||
uint32_t clk_i2c_mst_en:1;
|
||||
uint32_t clk_lp_timer_en:1;
|
||||
uint32_t reserved_4:28;
|
||||
};
|
||||
uint32_t val;
|
||||
} modem_lpcon_clk_conf_reg_t;
|
||||
|
||||
typedef union {
|
||||
struct {
|
||||
uint32_t clk_wifipwr_fo:1;
|
||||
uint32_t clk_coex_fo:1;
|
||||
uint32_t clk_i2c_mst_fo:1;
|
||||
uint32_t clk_lp_timer_fo:1;
|
||||
uint32_t clk_bcmem_fo:1;
|
||||
uint32_t clk_i2c_mst_mem_fo:1;
|
||||
uint32_t clk_chan_freq_mem_fo:1;
|
||||
uint32_t clk_pbus_mem_fo:1;
|
||||
uint32_t clk_agc_mem_fo:1;
|
||||
uint32_t clk_dc_mem_fo:1;
|
||||
uint32_t reserved_10:22;
|
||||
};
|
||||
uint32_t val;
|
||||
} modem_lpcon_clk_conf_force_on_reg_t;
|
||||
|
||||
typedef union {
|
||||
struct {
|
||||
uint32_t reserved_0:16;
|
||||
uint32_t clk_wifipwr_st_map:4;
|
||||
uint32_t clk_coex_st_map:4;
|
||||
uint32_t clk_i2c_mst_st_map:4;
|
||||
uint32_t clk_lp_apb_st_map:4;
|
||||
};
|
||||
uint32_t val;
|
||||
} modem_lpcon_clk_conf_power_st_reg_t;
|
||||
|
||||
typedef union {
|
||||
struct {
|
||||
uint32_t rst_wifipwr:1;
|
||||
uint32_t rst_coex:1;
|
||||
uint32_t rst_i2c_mst:1;
|
||||
uint32_t rst_lp_timer:1;
|
||||
uint32_t reserved_4:28;
|
||||
};
|
||||
uint32_t val;
|
||||
} modem_lpcon_rst_conf_reg_t;
|
||||
|
||||
typedef union {
|
||||
struct {
|
||||
uint32_t dc_mem_force_pu:1;
|
||||
uint32_t dc_mem_force_pd:1;
|
||||
uint32_t agc_mem_force_pu:1;
|
||||
uint32_t agc_mem_force_pd:1;
|
||||
uint32_t pbus_mem_force_pu:1;
|
||||
uint32_t pbus_mem_force_pd:1;
|
||||
uint32_t bc_mem_force_pu:1;
|
||||
uint32_t bc_mem_force_pd:1;
|
||||
uint32_t i2c_mst_mem_force_pu:1;
|
||||
uint32_t i2c_mst_mem_force_pd:1;
|
||||
uint32_t chan_freq_mem_force_pu:1;
|
||||
uint32_t chan_freq_mem_force_pd:1;
|
||||
uint32_t modem_pwr_mem_wp:3;
|
||||
uint32_t modem_pwr_mem_wa:3;
|
||||
uint32_t modem_pwr_mem_ra:2;
|
||||
uint32_t reserved_20:12;
|
||||
};
|
||||
uint32_t val;
|
||||
} modem_lpcon_mem_conf_reg_t;
|
||||
|
||||
typedef union {
|
||||
struct {
|
||||
uint32_t date:28;
|
||||
uint32_t reserved_28:4;
|
||||
};
|
||||
uint32_t val;
|
||||
} modem_lpcon_date_reg_t;
|
||||
|
||||
|
||||
typedef struct {
|
||||
volatile modem_lpcon_test_conf_reg_t test_conf;
|
||||
volatile modem_lpcon_lp_timer_conf_reg_t lp_timer_conf;
|
||||
volatile modem_lpcon_coex_lp_clk_conf_reg_t coex_lp_clk_conf;
|
||||
volatile modem_lpcon_wifi_lp_clk_conf_reg_t wifi_lp_clk_conf;
|
||||
volatile modem_lpcon_i2c_mst_clk_conf_reg_t i2c_mst_clk_conf;
|
||||
volatile modem_lpcon_modem_32k_clk_conf_reg_t modem_32k_clk_conf;
|
||||
volatile modem_lpcon_clk_conf_reg_t clk_conf;
|
||||
volatile modem_lpcon_clk_conf_force_on_reg_t clk_conf_force_on;
|
||||
volatile modem_lpcon_clk_conf_power_st_reg_t clk_conf_power_st;
|
||||
volatile modem_lpcon_rst_conf_reg_t rst_conf;
|
||||
volatile modem_lpcon_mem_conf_reg_t mem_conf;
|
||||
volatile modem_lpcon_date_reg_t date;
|
||||
} modem_lpcon_dev_t;
|
||||
|
||||
extern modem_lpcon_dev_t MODEM_LPCON;
|
||||
|
||||
#ifndef __cplusplus
|
||||
_Static_assert(sizeof(modem_lpcon_dev_t) == 0x30, "Invalid size of modem_lpcon_dev_t structure");
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user