esp_hw_support: Removes efuse dependency

This commit is contained in:
KonstantinKondrashov
2022-11-23 00:39:25 +08:00
parent 1b09f26419
commit 741e89cbaa
26 changed files with 249 additions and 170 deletions

View File

@@ -112,6 +112,14 @@ __attribute__((always_inline)) static inline uint32_t efuse_ll_get_sdio_drefh(vo
return EFUSE.rd_repeat_data0.sdio_drefh;
}
__attribute__((always_inline)) static inline uint32_t efuse_ll_get_ocode(void)
{
// OCODE1, BLOCK2, 128, 4, (#4 reg, pos 0)
// OCODE2, BLOCK2, 144, 3, (#4 reg, pos 16)
// OCODE = (ocode2 << 4) + ocode1
return (EFUSE.rd_sys_data4.ocode_hi << 4) + EFUSE.rd_sys_data4.ocode_low;
}
/******************* eFuse control functions *************************/
__attribute__((always_inline)) static inline bool efuse_ll_get_read_cmd(void)