soc/mediatek/mt8192: Initialize watch dog in bootblock
Initialize watch dog so the system won't reboot on timeout. In addition, print the reason of reboot triggered by watch dog. Signed-off-by: CK Hu <ck.hu@mediatek.com> Change-Id: I7e849659700218f1c50365c2d68a32be2f703d94 Reviewed-on: https://review.coreboot.org/c/coreboot/+/44434 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Hung-Te Lin <hungte@chromium.org>
This commit is contained in:
@@ -6,6 +6,7 @@ bootblock-y += ../common/mmu_operations.c
|
|||||||
bootblock-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c
|
bootblock-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c
|
||||||
bootblock-y += ../common/timer.c
|
bootblock-y += ../common/timer.c
|
||||||
bootblock-y += ../common/uart.c
|
bootblock-y += ../common/uart.c
|
||||||
|
bootblock-y += ../common/wdt.c
|
||||||
|
|
||||||
verstage-y += ../common/gpio.c gpio.c
|
verstage-y += ../common/gpio.c gpio.c
|
||||||
verstage-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c
|
verstage-$(CONFIG_SPI_FLASH) += ../common/spi.c spi.c
|
||||||
|
@@ -2,8 +2,10 @@
|
|||||||
|
|
||||||
#include <bootblock_common.h>
|
#include <bootblock_common.h>
|
||||||
#include <soc/mmu_operations.h>
|
#include <soc/mmu_operations.h>
|
||||||
|
#include <soc/wdt.h>
|
||||||
|
|
||||||
void bootblock_soc_init(void)
|
void bootblock_soc_init(void)
|
||||||
{
|
{
|
||||||
mtk_mmu_init();
|
mtk_mmu_init();
|
||||||
|
mtk_wdt_init();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user