| 1 | /* SPDX-License-Identifier: GPL-2.0-only OR MIT */ |
| 2 | |
| 3 | #include <device/mmio.h> |
| 4 | #include <soc/addressmap.h> |
| 5 | #include <soc/efuse.h> |
| 6 | |
| 7 | #define MTK_EFUSE_ECC_ERROR_BIT BIT(7) |
| 8 | |
| 9 | bool mtk_efuse_ecc_has_error(void) |
| 10 | { |
| 11 | return !!(read32(&mtk_efuse->ecc_status_reg) & MTK_EFUSE_ECC_ERROR_BIT); |
| 12 | } |