esp-idf/components/soc/esp32c2/include/soc/syscon_struct.h

477 lines
16 KiB
C

/*
* SPDX-FileCopyrightText: 2017-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef volatile struct syscon_dev_s{
union {
struct {
uint32_t pre_div : 10; /*reg_pre_div_cnt*/
uint32_t clk_320m_en : 1; /*reg_clk_320m_en*/
uint32_t clk_en : 1; /*reg_clk_en*/
uint32_t rst_tick : 1; /*reg_rst_tick_cnt*/
uint32_t reserved13 : 19; /*Reserved.*/
};
uint32_t val;
} clk_conf;
union {
struct {
uint32_t xtal_tick : 8; /*reg_xtal_tick_num*/
uint32_t ck8m_tick : 8; /*reg_ck8m_tick_num*/
uint32_t tick_enable : 1; /*reg_tick_enable*/
uint32_t reserved17 : 15; /*Reserved.*/
};
uint32_t val;
} tick_conf;
union {
struct {
uint32_t clk20_oen : 1; /*reg_clk20_oen*/
uint32_t clk22_oen : 1; /*reg_clk22_oen*/
uint32_t clk44_oen : 1; /*reg_clk44_oen*/
uint32_t clk_bb_oen : 1; /*reg_clk_bb_oen*/
uint32_t clk80_oen : 1; /*reg_clk80_oen*/
uint32_t clk160_oen : 1; /*reg_clk160_oen*/
uint32_t clk_320m_oen : 1; /*reg_clk_320m_oen*/
uint32_t clk_adc_inf_oen : 1; /*reg_clk_adc_inf_oen*/
uint32_t clk_dac_cpu_oen : 1; /*reg_clk_dac_cpu_oen*/
uint32_t clk40x_bb_oen : 1; /*reg_clk40x_bb_oen*/
uint32_t clk_xtal_oen : 1; /*reg_clk_xtal_oen*/
uint32_t reserved11 : 21; /*Reserved.*/
};
uint32_t val;
} clk_out_en;
uint32_t wifi_bb_cfg;
uint32_t wifi_bb_cfg_2;
uint32_t wifi_clk_en;
uint32_t wifi_rst_en;
union {
struct {
uint32_t peri_io_swap : 8; /*reg_peri_io_swap*/
uint32_t reserved8 : 24; /*Reserved.*/
};
uint32_t val;
} host_inf_sel;
union {
struct {
uint32_t ext_mem_pms_lock : 1; /*reg_ext_mem_pms_lock*/
uint32_t reserved1 : 31; /*Reserved.*/
};
uint32_t val;
} ext_mem_pms_lock;
uint32_t reserved_24;
union {
struct {
uint32_t flash_ace0_attr : 2; /*reg_flash_ace0_attr*/
uint32_t reserved2 : 30; /*Reserved.*/
};
uint32_t val;
} flash_ace0_attr;
union {
struct {
uint32_t flash_ace1_attr : 2; /*reg_flash_ace1_attr*/
uint32_t reserved2 : 30; /*Reserved.*/
};
uint32_t val;
} flash_ace1_attr;
union {
struct {
uint32_t flash_ace2_attr : 2; /*reg_flash_ace2_attr*/
uint32_t reserved2 : 30; /*Reserved.*/
};
uint32_t val;
} flash_ace2_attr;
union {
struct {
uint32_t flash_ace3_attr : 2; /*reg_flash_ace3_attr*/
uint32_t reserved2 : 30; /*Reserved.*/
};
uint32_t val;
} flash_ace3_attr;
uint32_t flash_ace0_addr;
uint32_t flash_ace1_addr;
uint32_t flash_ace2_addr;
uint32_t flash_ace3_addr;
union {
struct {
uint32_t flash_ace0_size : 13; /*reg_flash_ace0_size*/
uint32_t reserved13 : 19; /*Reserved.*/
};
uint32_t val;
} flash_ace0_size;
union {
struct {
uint32_t flash_ace1_size : 13; /*reg_flash_ace1_size*/
uint32_t reserved13 : 19; /*Reserved.*/
};
uint32_t val;
} flash_ace1_size;
union {
struct {
uint32_t flash_ace2_size : 13; /*reg_flash_ace2_size*/
uint32_t reserved13 : 19; /*Reserved.*/
};
uint32_t val;
} flash_ace2_size;
union {
struct {
uint32_t flash_ace3_size : 13; /*reg_flash_ace3_size*/
uint32_t reserved13 : 19; /*Reserved.*/
};
uint32_t val;
} flash_ace3_size;
uint32_t reserved_58;
uint32_t reserved_5c;
uint32_t reserved_60;
uint32_t reserved_64;
uint32_t reserved_68;
uint32_t reserved_6c;
uint32_t reserved_70;
uint32_t reserved_74;
uint32_t reserved_78;
uint32_t reserved_7c;
uint32_t reserved_80;
uint32_t reserved_84;
union {
struct {
uint32_t spi_mem_reject_int : 1; /*reg_spi_mem_reject_int*/
uint32_t spi_mem_reject_clr : 1; /*reg_spi_mem_reject_clr*/
uint32_t spi_mem_reject_cde : 5; /*reg_spi_mem_reject_cde*/
uint32_t reserved7 : 25; /*Reserved.*/
};
uint32_t val;
} spi_mem_pms_ctrl;
uint32_t spi_mem_reject_addr;
union {
struct {
uint32_t sdio_win_access_en : 1; /*reg_sdio_win_access_en*/
uint32_t reserved1 : 31; /*Reserved.*/
};
uint32_t val;
} sdio_ctrl;
union {
struct {
uint32_t redcy_sig0 : 31; /*reg_redcy_sig0*/
uint32_t redcy_andor : 1; /*reg_redcy_andor*/
};
uint32_t val;
} redcy_sig0;
union {
struct {
uint32_t redcy_sig1 : 31; /*reg_redcy_sig1*/
uint32_t redcy_nandor : 1; /*reg_redcy_nandor*/
};
uint32_t val;
} redcy_sig1;
union {
struct {
uint32_t agc_mem_force_pu : 1; /*reg_agc_mem_force_pu*/
uint32_t agc_mem_force_pd : 1; /*reg_agc_mem_force_pd*/
uint32_t pbus_mem_force_pu : 1; /*reg_pbus_mem_force_pu*/
uint32_t pbus_mem_force_pd : 1; /*reg_pbus_mem_force_pd*/
uint32_t dc_mem_force_pu : 1; /*reg_dc_mem_force_pu*/
uint32_t dc_mem_force_pd : 1; /*reg_dc_mem_force_pd*/
uint32_t freq_mem_force_pu : 1; /*reg_freq_mem_force_pu*/
uint32_t freq_mem_force_pd : 1; /*reg_freq_mem_force_pd*/
uint32_t reserved8 : 24; /*Reserved.*/
};
uint32_t val;
} front_end_mem_pd;
union {
struct {
uint32_t retention_link_addr : 27; /*reg_retention_link_addr*/
uint32_t nobypass_cpu_iso_rst : 1; /*reg_nobypass_cpu_iso_rst*/
uint32_t reserved28 : 4; /*Reserved.*/
};
uint32_t val;
} retention_ctrl;
union {
struct {
uint32_t rom_clkgate_force_on : 3; /*Set the bit to 1 to force rom always have clock, for low power can clear to 0 then only when have access the rom have clock*/
uint32_t sram_clkgate_force_on : 4; /*Set the bit to 1 to force sram always have clock, for low power can clear to 0 then only when have access the sram have clock*/
uint32_t reserved7 : 25; /*Reserved.*/
};
uint32_t val;
} clkgate_force_on;
union {
struct {
uint32_t rom_power_down : 3; /*Set 1 to let rom power down*/
uint32_t sram_power_down : 4; /*Set 1 to let sram power down*/
uint32_t reserved7 : 25; /*Reserved.*/
};
uint32_t val;
} mem_power_down;
union {
struct {
uint32_t rom_power_up : 3; /*Set 1 to let rom power up*/
uint32_t sram_power_up : 4; /*Set 1 to let sram power up*/
uint32_t reserved7 : 25; /*Reserved.*/
};
uint32_t val;
} mem_power_up;
uint32_t rnd_data;
union {
struct {
uint32_t reserved0 : 1; /*Reserved.*/
uint32_t peri_backup_flow_err : 2; /*reg_peri_backup_flow_err*/
uint32_t reserved3 : 1; /*Reserved.*/
uint32_t peri_backup_burst_limit : 5; /*reg_peri_backup_burst_limit*/
uint32_t peri_backup_tout_thres : 10; /*reg_peri_backup_tout_thres*/
uint32_t peri_backup_size : 10; /*reg_peri_backup_size*/
uint32_t peri_backup_start : 1; /*reg_peri_backup_start*/
uint32_t peri_backup_to_mem : 1; /*reg_peri_backup_to_mem*/
uint32_t peri_backup_ena : 1; /*reg_peri_backup_ena*/
};
uint32_t val;
} peri_backup_config;
uint32_t peri_backup_addr;
uint32_t peri_backup_mem_addr;
union {
struct {
uint32_t peri_backup_done : 1; /*reg_peri_backup_done_int_raw*/
uint32_t peri_backup_err : 1; /*reg_peri_backup_err_int_raw*/
uint32_t reserved2 : 30; /*Reserved.*/
};
uint32_t val;
} peri_backup_int_raw;
union {
struct {
uint32_t peri_backup_done : 1; /*reg_peri_backup_done_int_st*/
uint32_t peri_backup_err : 1; /*reg_peri_backup_err_int_st*/
uint32_t reserved2 : 30; /*Reserved.*/
};
uint32_t val;
} peri_backup_int_st;
union {
struct {
uint32_t peri_backup_done : 1; /*reg_peri_backup_done_int_ena*/
uint32_t peri_backup_err : 1; /*reg_peri_backup_err_int_ena*/
uint32_t reserved2 : 30; /*Reserved.*/
};
uint32_t val;
} peri_backup_int_ena;
uint32_t reserved_cc;
union {
struct {
uint32_t peri_backup_done : 1; /*reg_peri_backup_done_int_clr*/
uint32_t peri_backup_err : 1; /*reg_peri_backup_err_int_clr*/
uint32_t reserved2 : 30; /*Reserved.*/
};
uint32_t val;
} peri_backup_int_clr;
uint32_t reserved_d4;
uint32_t reserved_d8;
uint32_t reserved_dc;
uint32_t reserved_e0;
uint32_t reserved_e4;
uint32_t reserved_e8;
uint32_t reserved_ec;
uint32_t reserved_f0;
uint32_t reserved_f4;
uint32_t reserved_f8;
uint32_t reserved_fc;
uint32_t reserved_100;
uint32_t reserved_104;
uint32_t reserved_108;
uint32_t reserved_10c;
uint32_t reserved_110;
uint32_t reserved_114;
uint32_t reserved_118;
uint32_t reserved_11c;
uint32_t reserved_120;
uint32_t reserved_124;
uint32_t reserved_128;
uint32_t reserved_12c;
uint32_t reserved_130;
uint32_t reserved_134;
uint32_t reserved_138;
uint32_t reserved_13c;
uint32_t reserved_140;
uint32_t reserved_144;
uint32_t reserved_148;
uint32_t reserved_14c;
uint32_t reserved_150;
uint32_t reserved_154;
uint32_t reserved_158;
uint32_t reserved_15c;
uint32_t reserved_160;
uint32_t reserved_164;
uint32_t reserved_168;
uint32_t reserved_16c;
uint32_t reserved_170;
uint32_t reserved_174;
uint32_t reserved_178;
uint32_t reserved_17c;
uint32_t reserved_180;
uint32_t reserved_184;
uint32_t reserved_188;
uint32_t reserved_18c;
uint32_t reserved_190;
uint32_t reserved_194;
uint32_t reserved_198;
uint32_t reserved_19c;
uint32_t reserved_1a0;
uint32_t reserved_1a4;
uint32_t reserved_1a8;
uint32_t reserved_1ac;
uint32_t reserved_1b0;
uint32_t reserved_1b4;
uint32_t reserved_1b8;
uint32_t reserved_1bc;
uint32_t reserved_1c0;
uint32_t reserved_1c4;
uint32_t reserved_1c8;
uint32_t reserved_1cc;
uint32_t reserved_1d0;
uint32_t reserved_1d4;
uint32_t reserved_1d8;
uint32_t reserved_1dc;
uint32_t reserved_1e0;
uint32_t reserved_1e4;
uint32_t reserved_1e8;
uint32_t reserved_1ec;
uint32_t reserved_1f0;
uint32_t reserved_1f4;
uint32_t reserved_1f8;
uint32_t reserved_1fc;
uint32_t reserved_200;
uint32_t reserved_204;
uint32_t reserved_208;
uint32_t reserved_20c;
uint32_t reserved_210;
uint32_t reserved_214;
uint32_t reserved_218;
uint32_t reserved_21c;
uint32_t reserved_220;
uint32_t reserved_224;
uint32_t reserved_228;
uint32_t reserved_22c;
uint32_t reserved_230;
uint32_t reserved_234;
uint32_t reserved_238;
uint32_t reserved_23c;
uint32_t reserved_240;
uint32_t reserved_244;
uint32_t reserved_248;
uint32_t reserved_24c;
uint32_t reserved_250;
uint32_t reserved_254;
uint32_t reserved_258;
uint32_t reserved_25c;
uint32_t reserved_260;
uint32_t reserved_264;
uint32_t reserved_268;
uint32_t reserved_26c;
uint32_t reserved_270;
uint32_t reserved_274;
uint32_t reserved_278;
uint32_t reserved_27c;
uint32_t reserved_280;
uint32_t reserved_284;
uint32_t reserved_288;
uint32_t reserved_28c;
uint32_t reserved_290;
uint32_t reserved_294;
uint32_t reserved_298;
uint32_t reserved_29c;
uint32_t reserved_2a0;
uint32_t reserved_2a4;
uint32_t reserved_2a8;
uint32_t reserved_2ac;
uint32_t reserved_2b0;
uint32_t reserved_2b4;
uint32_t reserved_2b8;
uint32_t reserved_2bc;
uint32_t reserved_2c0;
uint32_t reserved_2c4;
uint32_t reserved_2c8;
uint32_t reserved_2cc;
uint32_t reserved_2d0;
uint32_t reserved_2d4;
uint32_t reserved_2d8;
uint32_t reserved_2dc;
uint32_t reserved_2e0;
uint32_t reserved_2e4;
uint32_t reserved_2e8;
uint32_t reserved_2ec;
uint32_t reserved_2f0;
uint32_t reserved_2f4;
uint32_t reserved_2f8;
uint32_t reserved_2fc;
uint32_t reserved_300;
uint32_t reserved_304;
uint32_t reserved_308;
uint32_t reserved_30c;
uint32_t reserved_310;
uint32_t reserved_314;
uint32_t reserved_318;
uint32_t reserved_31c;
uint32_t reserved_320;
uint32_t reserved_324;
uint32_t reserved_328;
uint32_t reserved_32c;
uint32_t reserved_330;
uint32_t reserved_334;
uint32_t reserved_338;
uint32_t reserved_33c;
uint32_t reserved_340;
uint32_t reserved_344;
uint32_t reserved_348;
uint32_t reserved_34c;
uint32_t reserved_350;
uint32_t reserved_354;
uint32_t reserved_358;
uint32_t reserved_35c;
uint32_t reserved_360;
uint32_t reserved_364;
uint32_t reserved_368;
uint32_t reserved_36c;
uint32_t reserved_370;
uint32_t reserved_374;
uint32_t reserved_378;
uint32_t reserved_37c;
uint32_t reserved_380;
uint32_t reserved_384;
uint32_t reserved_388;
uint32_t reserved_38c;
uint32_t reserved_390;
uint32_t reserved_394;
uint32_t reserved_398;
uint32_t reserved_39c;
uint32_t reserved_3a0;
uint32_t reserved_3a4;
uint32_t reserved_3a8;
uint32_t reserved_3ac;
uint32_t reserved_3b0;
uint32_t reserved_3b4;
uint32_t reserved_3b8;
uint32_t reserved_3bc;
uint32_t reserved_3c0;
uint32_t reserved_3c4;
uint32_t reserved_3c8;
uint32_t reserved_3cc;
uint32_t reserved_3d0;
uint32_t reserved_3d4;
uint32_t reserved_3d8;
uint32_t reserved_3dc;
uint32_t reserved_3e0;
uint32_t reserved_3e4;
uint32_t reserved_3e8;
uint32_t reserved_3ec;
uint32_t reserved_3f0;
uint32_t reserved_3f4;
uint32_t reserved_3f8;
uint32_t date;
} syscon_dev_t;
extern syscon_dev_t SYSCON;
#ifdef __cplusplus
}
#endif