#![allow(unused)]
use super::{EfuseBlock, EfuseField};
pub(crate) const BLOCKS: &[EfuseBlock] = &[
EfuseBlock {
index: 0u8,
length: 7u8,
read_address: 0x3ff5a000u32,
write_address: 0x3ff5a01cu32,
},
EfuseBlock {
index: 1u8,
length: 8u8,
read_address: 0x3ff5a038u32,
write_address: 0x3ff5a098u32,
},
EfuseBlock {
index: 2u8,
length: 8u8,
read_address: 0x3ff5a058u32,
write_address: 0x3ff5a0b8u32,
},
EfuseBlock {
index: 3u8,
length: 8u8,
read_address: 0x3ff5a078u32,
write_address: 0x3ff5a0d8u32,
},
];
pub(crate) mod defines {
use super::super::EfuseBlockErrors;
pub(crate) const BLOCK_ERRORS: &[EfuseBlockErrors] = &[];
pub(crate) const CODING_SCHEME_NONE: u32 = 0x0;
pub(crate) const EFUSE_CLK_SEL1_MASK: u32 = 0xff00;
pub(crate) const EFUSE_BLK0_RDATA3_REG: u32 = 0x3ff5a00c;
pub(crate) const EFUSE_REG_CMD: u32 = 0x3ff5a104;
pub(crate) const CODING_SCHEME_NONE_RECOVERY: u32 = 0x3;
pub(crate) const EFUSE_CMD_WRITE: u32 = 0x2;
pub(crate) const CODING_SCHEME_RS: u32 = 0x4;
pub(crate) const EFUSE_REG_CONF: u32 = 0x3ff5a0fc;
pub(crate) const CODING_SCHEME_REPEAT: u32 = 0x2;
pub(crate) const EFUSE_MEM_SIZE: u32 = 0x120;
pub(crate) const EFUSE_RD_CHIP_VER_REV2: u32 = 0x100000;
pub(crate) const EFUSE_DAC_CONF_REG: u32 = 0x3ff5a118;
pub(crate) const EFUSE_CLK_REG: u32 = 0x3ff5a0f8;
pub(crate) const EFUSE_CODING_SCHEME_MASK: u32 = 0x3;
pub(crate) const EFUSE_CLK_SEL0_MASK: u32 = 0xff;
pub(crate) const EFUSE_REG_DEC_STATUS: u32 = 0x3ff5a11c;
pub(crate) const EFUSE_RD_CHIP_VER_REV1: u32 = 0x8000;
pub(crate) const EFUSE_DAC_CLK_DIV_MASK: u32 = 0xff;
pub(crate) const EFUSE_BLK0_RDATA5_REG: u32 = 0x3ff5a014;
pub(crate) const CODING_SCHEME_34: u32 = 0x1;
pub(crate) const EFUSE_REG_DEC_STATUS_MASK: u32 = 0xfff;
pub(crate) const EFUSE_CODING_SCHEME_WORD: u32 = 0x6;
pub(crate) const EFUSE_CONF_WRITE: u32 = 0x5a5a;
pub(crate) const EFUSE_CMD_OP_MASK: u32 = 0x3;
pub(crate) const EFUSE_CONF_READ: u32 = 0x5aa5;
pub(crate) const EFUSE_CMD_READ: u32 = 0x1;
}
pub const WR_DIS: EfuseField = EfuseField::new(0, 0, 0, 16);
pub const RD_DIS: EfuseField = EfuseField::new(0, 0, 16, 4);
pub const FLASH_CRYPT_CNT: EfuseField = EfuseField::new(0, 0, 20, 7);
pub const UART_DOWNLOAD_DIS: EfuseField = EfuseField::new(0, 0, 27, 1);
pub const RESERVED_0_28: EfuseField = EfuseField::new(0, 0, 28, 4);
pub const MAC0: EfuseField = EfuseField::new(0, 1, 32, 32);
pub const MAC1: EfuseField = EfuseField::new(0, 2, 64, 16);
pub const MAC_CRC: EfuseField = EfuseField::new(0, 2, 80, 8);
pub const RESERVE_0_88: EfuseField = EfuseField::new(0, 2, 88, 8);
pub const DISABLE_APP_CPU: EfuseField = EfuseField::new(0, 3, 96, 1);
pub const DISABLE_BT: EfuseField = EfuseField::new(0, 3, 97, 1);
pub const CHIP_PACKAGE_4BIT: EfuseField = EfuseField::new(0, 3, 98, 1);
pub const DIS_CACHE: EfuseField = EfuseField::new(0, 3, 99, 1);
pub const SPI_PAD_CONFIG_HD: EfuseField = EfuseField::new(0, 3, 100, 5);
pub const CHIP_PACKAGE: EfuseField = EfuseField::new(0, 3, 105, 3);
pub const CHIP_CPU_FREQ_LOW: EfuseField = EfuseField::new(0, 3, 108, 1);
pub const CHIP_CPU_FREQ_RATED: EfuseField = EfuseField::new(0, 3, 109, 1);
pub const BLK3_PART_RESERVE: EfuseField = EfuseField::new(0, 3, 110, 1);
pub const CHIP_VER_REV1: EfuseField = EfuseField::new(0, 3, 111, 1);
pub const RESERVE_0_112: EfuseField = EfuseField::new(0, 3, 112, 16);
pub const CLK8M_FREQ: EfuseField = EfuseField::new(0, 4, 128, 8);
pub const ADC_VREF: EfuseField = EfuseField::new(0, 4, 136, 5);
pub const RESERVE_0_141: EfuseField = EfuseField::new(0, 4, 141, 1);
pub const XPD_SDIO_REG: EfuseField = EfuseField::new(0, 4, 142, 1);
pub const XPD_SDIO_TIEH: EfuseField = EfuseField::new(0, 4, 143, 1);
pub const XPD_SDIO_FORCE: EfuseField = EfuseField::new(0, 4, 144, 1);
pub const RESERVE_0_145: EfuseField = EfuseField::new(0, 4, 145, 15);
pub const SPI_PAD_CONFIG_CLK: EfuseField = EfuseField::new(0, 5, 160, 5);
pub const SPI_PAD_CONFIG_Q: EfuseField = EfuseField::new(0, 5, 165, 5);
pub const SPI_PAD_CONFIG_D: EfuseField = EfuseField::new(0, 5, 170, 5);
pub const SPI_PAD_CONFIG_CS0: EfuseField = EfuseField::new(0, 5, 175, 5);
pub const CHIP_VER_REV2: EfuseField = EfuseField::new(0, 5, 180, 1);
pub const RESERVE_0_181: EfuseField = EfuseField::new(0, 5, 181, 1);
pub const VOL_LEVEL_HP_INV: EfuseField = EfuseField::new(0, 5, 182, 2);
pub const WAFER_VERSION_MINOR: EfuseField = EfuseField::new(0, 5, 184, 2);
pub const RESERVE_0_186: EfuseField = EfuseField::new(0, 5, 186, 2);
pub const FLASH_CRYPT_CONFIG: EfuseField = EfuseField::new(0, 5, 188, 4);
pub const CODING_SCHEME: EfuseField = EfuseField::new(0, 6, 192, 2);
pub const CONSOLE_DEBUG_DISABLE: EfuseField = EfuseField::new(0, 6, 194, 1);
pub const DISABLE_SDIO_HOST: EfuseField = EfuseField::new(0, 6, 195, 1);
pub const ABS_DONE_0: EfuseField = EfuseField::new(0, 6, 196, 1);
pub const ABS_DONE_1: EfuseField = EfuseField::new(0, 6, 197, 1);
pub const JTAG_DISABLE: EfuseField = EfuseField::new(0, 6, 198, 1);
pub const DISABLE_DL_ENCRYPT: EfuseField = EfuseField::new(0, 6, 199, 1);
pub const DISABLE_DL_DECRYPT: EfuseField = EfuseField::new(0, 6, 200, 1);
pub const DISABLE_DL_CACHE: EfuseField = EfuseField::new(0, 6, 201, 1);
pub const KEY_STATUS: EfuseField = EfuseField::new(0, 6, 202, 1);
pub const RESERVE_0_203: EfuseField = EfuseField::new(0, 6, 203, 21);
pub const BLOCK1: EfuseField = EfuseField::new(1, 0, 0, 256);
pub const BLOCK2: EfuseField = EfuseField::new(2, 0, 0, 256);
pub const CUSTOM_MAC_CRC: EfuseField = EfuseField::new(3, 0, 0, 8);
pub const CUSTOM_MAC: EfuseField = EfuseField::new(3, 0, 8, 48);
pub const RESERVED_3_56: EfuseField = EfuseField::new(3, 1, 56, 8);
pub const BLK3_RESERVED_2: EfuseField = EfuseField::new(3, 2, 64, 32);
pub const ADC1_TP_LOW: EfuseField = EfuseField::new(3, 3, 96, 7);
pub const ADC1_TP_HIGH: EfuseField = EfuseField::new(3, 3, 103, 9);
pub const ADC2_TP_LOW: EfuseField = EfuseField::new(3, 3, 112, 7);
pub const ADC2_TP_HIGH: EfuseField = EfuseField::new(3, 3, 119, 9);
pub const SECURE_VERSION: EfuseField = EfuseField::new(3, 4, 128, 32);
pub const RESERVED_3_160: EfuseField = EfuseField::new(3, 5, 160, 24);
pub const MAC_VERSION: EfuseField = EfuseField::new(3, 5, 184, 8);
pub const BLK3_RESERVED_6: EfuseField = EfuseField::new(3, 6, 192, 32);
pub const BLK3_RESERVED_7: EfuseField = EfuseField::new(3, 7, 224, 32);