1#![allow(unused)]
9
10use super::EfuseField;
11
12pub(crate) const BLOCK_SIZES: &[u32] = &[23, 24, 32, 32, 32, 32, 32, 32, 32, 32, 32];
14
15pub const WR_DIS: EfuseField = EfuseField::new(0, 0, 0, 32);
17pub const RD_DIS: EfuseField = EfuseField::new(0, 1, 32, 7);
19pub const DIS_RTC_RAM_BOOT: EfuseField = EfuseField::new(0, 1, 39, 1);
21pub const DIS_ICACHE: EfuseField = EfuseField::new(0, 1, 40, 1);
23pub const DIS_USB_JTAG: EfuseField = EfuseField::new(0, 1, 41, 1);
26pub const DIS_DOWNLOAD_ICACHE: EfuseField = EfuseField::new(0, 1, 42, 1);
29pub const DIS_USB_SERIAL_JTAG: EfuseField = EfuseField::new(0, 1, 43, 1);
31pub const DIS_FORCE_DOWNLOAD: EfuseField = EfuseField::new(0, 1, 44, 1);
33pub const RPT4_RESERVED6: EfuseField = EfuseField::new(0, 1, 45, 1);
35pub const DIS_TWAI: EfuseField = EfuseField::new(0, 1, 46, 1);
37pub const JTAG_SEL_ENABLE: EfuseField = EfuseField::new(0, 1, 47, 1);
41pub const SOFT_DIS_JTAG: EfuseField = EfuseField::new(0, 1, 48, 3);
44pub const DIS_PAD_JTAG: EfuseField = EfuseField::new(0, 1, 51, 1);
46pub const DIS_DOWNLOAD_MANUAL_ENCRYPT: EfuseField = EfuseField::new(0, 1, 52, 1);
48pub const USB_DREFH: EfuseField = EfuseField::new(0, 1, 53, 2);
51pub const USB_DREFL: EfuseField = EfuseField::new(0, 1, 55, 2);
54pub const USB_EXCHG_PINS: EfuseField = EfuseField::new(0, 1, 57, 1);
56pub const VDD_SPI_AS_GPIO: EfuseField = EfuseField::new(0, 1, 58, 1);
58pub const BTLC_GPIO_ENABLE: EfuseField = EfuseField::new(0, 1, 59, 2);
60pub const POWERGLITCH_EN: EfuseField = EfuseField::new(0, 1, 61, 1);
62pub const POWER_GLITCH_DSENSE: EfuseField = EfuseField::new(0, 1, 62, 2);
64pub const RPT4_RESERVED2: EfuseField = EfuseField::new(0, 2, 64, 16);
66pub const WDT_DELAY_SEL: EfuseField = EfuseField::new(0, 2, 80, 2);
68pub const SPI_BOOT_CRYPT_CNT: EfuseField = EfuseField::new(0, 2, 82, 3);
70pub const SECURE_BOOT_KEY_REVOKE0: EfuseField = EfuseField::new(0, 2, 85, 1);
72pub const SECURE_BOOT_KEY_REVOKE1: EfuseField = EfuseField::new(0, 2, 86, 1);
74pub const SECURE_BOOT_KEY_REVOKE2: EfuseField = EfuseField::new(0, 2, 87, 1);
76pub const KEY_PURPOSE_0: EfuseField = EfuseField::new(0, 2, 88, 4);
78pub const KEY_PURPOSE_1: EfuseField = EfuseField::new(0, 2, 92, 4);
80pub const KEY_PURPOSE_2: EfuseField = EfuseField::new(0, 3, 96, 4);
82pub const KEY_PURPOSE_3: EfuseField = EfuseField::new(0, 3, 100, 4);
84pub const KEY_PURPOSE_4: EfuseField = EfuseField::new(0, 3, 104, 4);
86pub const KEY_PURPOSE_5: EfuseField = EfuseField::new(0, 3, 108, 4);
88pub const RPT4_RESERVED3: EfuseField = EfuseField::new(0, 3, 112, 4);
90pub const SECURE_BOOT_EN: EfuseField = EfuseField::new(0, 3, 116, 1);
92pub const SECURE_BOOT_AGGRESSIVE_REVOKE: EfuseField = EfuseField::new(0, 3, 117, 1);
94pub const RPT4_RESERVED0: EfuseField = EfuseField::new(0, 3, 118, 6);
96pub const FLASH_TPUW: EfuseField = EfuseField::new(0, 3, 124, 4);
100pub const DIS_DOWNLOAD_MODE: EfuseField = EfuseField::new(0, 4, 128, 1);
102pub const DIS_DIRECT_BOOT: EfuseField = EfuseField::new(0, 4, 129, 1);
104pub const DIS_USB_SERIAL_JTAG_ROM_PRINT: EfuseField = EfuseField::new(0, 4, 130, 1);
106pub const FLASH_ECC_MODE: EfuseField = EfuseField::new(0, 4, 131, 1);
108pub const DIS_USB_SERIAL_JTAG_DOWNLOAD_MODE: EfuseField = EfuseField::new(0, 4, 132, 1);
110pub const ENABLE_SECURITY_DOWNLOAD: EfuseField = EfuseField::new(0, 4, 133, 1);
112pub const UART_PRINT_CONTROL: EfuseField = EfuseField::new(0, 4, 134, 2);
114pub const PIN_POWER_SELECTION: EfuseField = EfuseField::new(0, 4, 136, 1);
116pub const FLASH_TYPE: EfuseField = EfuseField::new(0, 4, 137, 1);
118pub const FLASH_PAGE_SIZE: EfuseField = EfuseField::new(0, 4, 138, 2);
120pub const FLASH_ECC_EN: EfuseField = EfuseField::new(0, 4, 140, 1);
122pub const FORCE_SEND_RESUME: EfuseField = EfuseField::new(0, 4, 141, 1);
124pub const SECURE_VERSION: EfuseField = EfuseField::new(0, 4, 142, 16);
126pub const RESERVED_0_158: EfuseField = EfuseField::new(0, 4, 158, 1);
128pub const ERR_RST_ENABLE: EfuseField = EfuseField::new(0, 4, 159, 1);
130pub const DISABLE_WAFER_VERSION_MAJOR: EfuseField = EfuseField::new(0, 5, 160, 1);
132pub const DISABLE_BLK_VERSION_MAJOR: EfuseField = EfuseField::new(0, 5, 161, 1);
134pub const RESERVED_0_162: EfuseField = EfuseField::new(0, 5, 162, 22);
136pub const MAC0: EfuseField = EfuseField::new(1, 0, 0, 32);
138pub const MAC1: EfuseField = EfuseField::new(1, 1, 32, 16);
140pub const SPI_PAD_CONFIG_CLK: EfuseField = EfuseField::new(1, 1, 48, 6);
142pub const SPI_PAD_CONFIG_Q: EfuseField = EfuseField::new(1, 1, 54, 6);
144pub const SPI_PAD_CONFIG_D: EfuseField = EfuseField::new(1, 1, 60, 6);
146pub const SPI_PAD_CONFIG_CS: EfuseField = EfuseField::new(1, 2, 66, 6);
148pub const SPI_PAD_CONFIG_HD: EfuseField = EfuseField::new(1, 2, 72, 6);
150pub const SPI_PAD_CONFIG_WP: EfuseField = EfuseField::new(1, 2, 78, 6);
152pub const SPI_PAD_CONFIG_DQS: EfuseField = EfuseField::new(1, 2, 84, 6);
154pub const SPI_PAD_CONFIG_D4: EfuseField = EfuseField::new(1, 2, 90, 6);
156pub const SPI_PAD_CONFIG_D5: EfuseField = EfuseField::new(1, 3, 96, 6);
158pub const SPI_PAD_CONFIG_D6: EfuseField = EfuseField::new(1, 3, 102, 6);
160pub const SPI_PAD_CONFIG_D7: EfuseField = EfuseField::new(1, 3, 108, 6);
162pub const WAFER_VERSION_MINOR_LO: EfuseField = EfuseField::new(1, 3, 114, 3);
164pub const PKG_VERSION: EfuseField = EfuseField::new(1, 3, 117, 3);
166pub const BLK_VERSION_MINOR: EfuseField = EfuseField::new(1, 3, 120, 3);
168pub const FLASH_CAP: EfuseField = EfuseField::new(1, 3, 123, 3);
170pub const FLASH_TEMP: EfuseField = EfuseField::new(1, 3, 126, 2);
172pub const FLASH_VENDOR: EfuseField = EfuseField::new(1, 4, 128, 3);
174pub const RESERVED_1_131: EfuseField = EfuseField::new(1, 4, 131, 4);
176pub const K_RTC_LDO: EfuseField = EfuseField::new(1, 4, 135, 7);
178pub const K_DIG_LDO: EfuseField = EfuseField::new(1, 4, 142, 7);
180pub const V_RTC_DBIAS20: EfuseField = EfuseField::new(1, 4, 149, 8);
182pub const V_DIG_DBIAS20: EfuseField = EfuseField::new(1, 4, 157, 8);
184pub const DIG_DBIAS_HVT: EfuseField = EfuseField::new(1, 5, 165, 5);
186pub const THRES_HVT: EfuseField = EfuseField::new(1, 5, 170, 10);
188pub const RESERVED_1_180: EfuseField = EfuseField::new(1, 5, 180, 3);
190pub const WAFER_VERSION_MINOR_HI: EfuseField = EfuseField::new(1, 5, 183, 1);
192pub const WAFER_VERSION_MAJOR: EfuseField = EfuseField::new(1, 5, 184, 2);
194pub const RESERVED_1_186: EfuseField = EfuseField::new(1, 5, 186, 6);
196pub const OPTIONAL_UNIQUE_ID: EfuseField = EfuseField::new(2, 0, 0, 128);
198pub const BLK_VERSION_MAJOR: EfuseField = EfuseField::new(2, 4, 128, 2);
200pub const RESERVED_2_130: EfuseField = EfuseField::new(2, 4, 130, 1);
202pub const TEMP_CALIB: EfuseField = EfuseField::new(2, 4, 131, 9);
204pub const OCODE: EfuseField = EfuseField::new(2, 4, 140, 8);
206pub const ADC1_INIT_CODE_ATTEN0: EfuseField = EfuseField::new(2, 4, 148, 10);
208pub const ADC1_INIT_CODE_ATTEN1: EfuseField = EfuseField::new(2, 4, 158, 10);
210pub const ADC1_INIT_CODE_ATTEN2: EfuseField = EfuseField::new(2, 5, 168, 10);
212pub const ADC1_INIT_CODE_ATTEN3: EfuseField = EfuseField::new(2, 5, 178, 10);
214pub const ADC1_CAL_VOL_ATTEN0: EfuseField = EfuseField::new(2, 5, 188, 10);
216pub const ADC1_CAL_VOL_ATTEN1: EfuseField = EfuseField::new(2, 6, 198, 10);
218pub const ADC1_CAL_VOL_ATTEN2: EfuseField = EfuseField::new(2, 6, 208, 10);
220pub const ADC1_CAL_VOL_ATTEN3: EfuseField = EfuseField::new(2, 6, 218, 10);
222pub const RESERVED_2_228: EfuseField = EfuseField::new(2, 7, 228, 28);
224pub const BLOCK_USR_DATA: EfuseField = EfuseField::new(3, 0, 0, 192);
226pub const RESERVED_3_192: EfuseField = EfuseField::new(3, 6, 192, 8);
228pub const CUSTOM_MAC: EfuseField = EfuseField::new(3, 6, 200, 48);
230pub const RESERVED_3_248: EfuseField = EfuseField::new(3, 7, 248, 8);
232pub const BLOCK_KEY0: EfuseField = EfuseField::new(4, 0, 0, 256);
234pub const BLOCK_KEY1: EfuseField = EfuseField::new(5, 0, 0, 256);
236pub const BLOCK_KEY2: EfuseField = EfuseField::new(6, 0, 0, 256);
238pub const BLOCK_KEY3: EfuseField = EfuseField::new(7, 0, 0, 256);
240pub const BLOCK_KEY4: EfuseField = EfuseField::new(8, 0, 0, 256);
242pub const BLOCK_KEY5: EfuseField = EfuseField::new(9, 0, 0, 256);
244pub const BLOCK_SYS_DATA2: EfuseField = EfuseField::new(10, 0, 0, 256);