arm-trusted-firmware-mediatek: fix hang on reboot on MT7622
[openwrt/staging/jow.git] / package / boot / arm-trusted-firmware-mediatek / patches / 002-mt7622-move-wdt-init-after-dram-init.patch
1 From 9e8cb08bc64530e7511b86a131cfad1ae0199586 Mon Sep 17 00:00:00 2001
2 From: Daniel Golle <daniel@makrotopia.org>
3 Date: Sun, 10 Sep 2023 23:35:47 +0100
4 Subject: [PATCH] mt7622: move wdt init after dram init
5
6 resolves hang on reboot
7 ---
8 plat/mediatek/mt7622/bl2/bl2_plat_init.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11 --- a/plat/mediatek/mt7622/bl2/bl2_plat_init.c
12 +++ b/plat/mediatek/mt7622/bl2/bl2_plat_init.c
13 @@ -40,7 +40,6 @@ bool plat_is_my_cpu_primary(void)
14 const struct initcall bl2_initcalls[] = {
15 INITCALL(plat_mt_cpuxgpt_init),
16 INITCALL(generic_delay_timer_init),
17 - INITCALL(mtk_wdt_init),
18 INITCALL(mtk_print_cpu),
19 INITCALL(mtk_pin_init),
20 #ifndef IMAGE_BL2PL
21 @@ -49,6 +48,7 @@ const struct initcall bl2_initcalls[] =
22 INITCALL(mtk_pwrap_init),
23 INITCALL(mtk_pmic_init),
24 INITCALL(mtk_mem_init),
25 + INITCALL(mtk_wdt_init),
26
27 INITCALL(NULL)
28 };