From 96d3378dde3d5fe7334086c38b0c0db0864fc58e Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Sat, 6 Oct 2018 18:49:47 +0200 Subject: [PATCH] soc/mediatek: Convert to `board_reset()` Note, MT8183 didn't select HAVE_HARD_RESET before. So it might still need an update. Change-Id: Ic850f2775ada5e6e543ffb92aaa033b9209596f5 Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/29051 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner --- src/soc/mediatek/common/wdt.c | 2 +- src/soc/mediatek/mt8173/Kconfig | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/soc/mediatek/common/wdt.c b/src/soc/mediatek/common/wdt.c index c2617531a6..9964c5ab72 100644 --- a/src/soc/mediatek/common/wdt.c +++ b/src/soc/mediatek/common/wdt.c @@ -57,7 +57,7 @@ int mtk_wdt_init(void) return wdt_sta; } -void do_hard_reset(void) +void do_board_reset(void) { write32(&mtk_wdt->wdt_swrst, MTK_WDT_SWRST_KEY); } diff --git a/src/soc/mediatek/mt8173/Kconfig b/src/soc/mediatek/mt8173/Kconfig index de9b932339..cf0c8d9df7 100644 --- a/src/soc/mediatek/mt8173/Kconfig +++ b/src/soc/mediatek/mt8173/Kconfig @@ -12,7 +12,6 @@ config SOC_MEDIATEK_MT8173 select HAVE_MONOTONIC_TIMER select GENERIC_UDELAY select GENERIC_GPIO_LIB - select HAVE_HARD_RESET select RTC if SOC_MEDIATEK_MT8173