coreboot/src/soc/mediatek/common
Zexin Wang 2bec5a9d9a soc/mediatek/mt8189: Check eFuse ECC in WDT init
When the number of eFuse reads exceeds a certain limit (with a maximum
of 20 million), a bit flip from 1 to 0 may happen. When that happens,
the bit flip will be automatically corrected by the eFuse hardware via
ECC (Error Correction Code), and the EFUSE_ECC_ERR register bit will be
set for the software to decide how to handle that.

Therefore, this patch adds a check for the EFUSE_ECC_ERR register bit.
If it's set due to a bit flip instead of a real error, we simply clear
it to avoid triggering a WDT reset.

BUG=b:379008996
BRANCH=none
TEST=build passed and check the WDT status debug log. This log is added
in local for test only.
[INFO ]  mtk_wdt_clear_efuse_ecc: wdt_sta = 0x0

Signed-off-by: Zexin Wang <ot_zexin.wang@mediatek.corp-partner.google.com>
Change-Id: Idd2763688c7ab6992a7c185e9e52b60bda88c94c
Reviewed-on: https://review.coreboot.org/c/coreboot/+/87744
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yidi Lin <yidilin@google.com>
2025-05-21 03:43:51 +00:00
..
dp soc/mediatek/common/display: Add force max swing quirk 2025-04-17 14:34:20 +00:00
include/soc soc/mediatek/mt8189: Check eFuse ECC in WDT init 2025-05-21 03:43:51 +00:00
auxadc.c
bl31.c
bootblock.c
cbmem.c
clkbuf.c
cpu_id.c
cpu_segment_id.c soc/mediatek/mt8189: Add CPU segment ID support 2025-05-03 04:43:16 +00:00
ddp.c
devapc.c
dfd.c
display.c soc/mediatek/common/display: Add force max swing quirk 2025-04-17 14:34:20 +00:00
dpm.c soc/mediatek: Extract DPM common code 2025-05-15 12:55:36 +00:00
dpm_4ch.c soc/mediatek: Extract DPM common code 2025-05-15 12:55:36 +00:00
dpm_v1.c soc/mediatek/common: Add DPM V2 non-broadcast mode support 2025-05-20 05:12:04 +00:00
dpm_v2.c soc/mediatek/common: Add DPM V2 non-broadcast mode support 2025-05-20 05:12:04 +00:00
dram_init.c
dramc_info.c soc/mediatek/mt8196: Move TX TRACKING from MT8196 to common folder 2025-04-09 17:30:23 +00:00
dramc_param.c
dsi.c tree: Remove unused <assert.h> 2024-11-19 00:40:04 +00:00
early_init.c
eint_event.c soc/mediatek: Fix register access for EINT 2025-01-22 04:01:27 +00:00
eint_event_info.c soc/mediatek: Allow specifying multiple EINT base registers 2025-01-18 13:09:40 +00:00
emi.c
flash_controller.c soc/mediatek: Remove redundant struct pad_func and PAD_* definitions 2024-09-12 16:57:11 +00:00
gpio.c soc/mediatek/common: Print error if GPIO raw_id is not in the range 2024-08-23 14:33:23 +00:00
gpio_eint_v1.c soc/mediatek/common: Refactor EINT driver 2024-08-10 01:10:20 +00:00
gpio_eint_v2.c soc/mediatek/mt8196: Move common functions to gpio_eint_v2.c 2025-02-21 14:12:23 +00:00
gpio_op.c
i2c.c
i2c_common.c soc/mediatek/common: Move I2C functions to common code 2025-04-24 06:44:59 +00:00
Kconfig soc/mediatek/common: Add DPM V2 non-broadcast mode support 2025-05-20 05:12:04 +00:00
l2c_ops.c soc/mediatek: Refactor MMU operation for L2C SRAM and DMA 2024-08-24 12:59:31 +00:00
lastbus_v1.c
lastbus_v2.c
mcu.c
mcupm.c
memory.c soc/mediatek: Obtain LPDDR type from trained memory info 2024-11-13 02:27:13 +00:00
memory_test.c
mmu_cmops.c soc/mediatek: Refactor MMU operation for L2C SRAM and DMA 2024-08-24 12:59:31 +00:00
mmu_operations.c soc/mediatek/commmon: Set mcupm mcufw_reserved region to non-cacheable 2025-01-27 23:57:42 +00:00
msdc.c soc/mediatek/common: Correct eMMC src clk frequency to 400 MHz 2024-09-20 12:31:09 +00:00
mt6315.c soc/mediatek: Rename is_pmif_init_done to check_init_done 2025-01-15 10:58:23 +00:00
mt6316.c soc/mediatek/mt8196: Set MT6316 deglitch time from 2ns to 4ns 2025-02-13 14:48:19 +00:00
mt6359p.c soc/mediatek/common: Convert mt6359p_read_field() to a general API 2025-04-18 07:18:36 +00:00
mt6363.c soc/mediatek/common: Fix wrong write API for protect_key_setting 2025-01-19 07:59:10 +00:00
mt6363_sdmadc.c soc/mediatek/mt8196: Correct the argument type of MT6363 2025-01-08 02:53:46 +00:00
mt6373.c soc/mediatek: Rename is_pmif_init_done to check_init_done 2025-01-15 10:58:23 +00:00
mt6685.c soc/mediatek/common: Fix wrong write API for protect_key_setting 2025-01-19 07:59:19 +00:00
mtcmos.c soc/mediatek/mt8189: Add MTCMOS init support 2025-05-13 09:05:45 +00:00
mtk_fsp.c soc/mediatek/common: Measure mtk_fsp_load_and_run() execution time 2025-02-09 20:40:11 +00:00
mtk_mipi_dphy.c
pcie.c soc/mediatek: Add mtk_pcie_deassert_perst for early PCIe reset 2024-09-02 09:16:34 +00:00
pll.c
pmic_wrap.c
pmif.c soc/mediatek/common: Add read16/write16 support for PMIF 2024-12-03 07:17:08 +00:00
pmif_clk.c soc/mediatek: Rename pmif_ulposc_* function arguments 2024-11-21 16:13:42 +00:00
pmif_init.c soc/mediatek: Rename is_pmif_init_done to check_init_done 2025-01-15 10:58:23 +00:00
pmif_spi.c soc/mediatek/mt8189: Add SPMI and PWRAP driver 2025-05-17 08:51:00 +00:00
pmif_spmi.c soc/mediatek/common: Update SPMI calibration process 2025-05-03 10:10:25 +00:00
reset.c
rtc.c
rtc_mt6359p.c soc/mediatek/common: Correct MT6359 RTC EOSC setting 2025-05-17 08:50:27 +00:00
rtc_osc_init.c soc/mediatek/mt8196: Add RTC driver 2025-01-23 06:03:46 +00:00
rtc_pwrap_ops.c soc/mediatek/common: Change return type to void for all rtc_{read, write} APIs 2025-03-21 08:01:30 +00:00
spi.c
spm.c soc/mediatek/common: Use array to represent spm_sw_rsv registers 2024-12-18 23:33:39 +00:00
spm_v1.c soc/mediatek/common: Move some functions to spm_v1.c 2024-12-18 23:33:33 +00:00
spm_v2.c soc/mediatek/mt8196: Move SPM loader functions to common part 2025-04-21 03:41:30 +00:00
sspm.c soc/mediatek/mt8196: Initialize SSPM 2024-12-12 11:04:16 +00:00
sspm_sram.c soc/mediatek/mt8196: Move sspm_enable_sram() to common code 2025-05-16 09:18:13 +00:00
timer.c soc/mediatek/common: Rename GPT_MHZ to TIMER_MHZ for readability 2024-12-21 16:09:23 +00:00
timer_prepare.c
tps65132s.c
tracker.c soc/mediatek/common: Use write32p and read32p for tracker 2024-11-07 09:38:37 +00:00
tracker_v1.c soc/mediatek/common: Refactor struct tracker 2024-11-07 09:38:31 +00:00
tracker_v2.c soc/mediatek/common: Use write32p and read32p for tracker 2024-11-07 09:38:37 +00:00
uart.c
ufs.c
usb.c
usb_secondary.c
wdt.c soc/mediatek/mt8189: Check eFuse ECC in WDT init 2025-05-21 03:43:51 +00:00
wdt_req.c