Created
October 19, 2021 08:31
-
-
Save LeeTroy/4b168212beb0c3a070b973e3b6c8f408 to your computer and use it in GitHub Desktop.
disable wdt2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/arch/arm/mach-aspeed/ast2600/board_common.c b/arch/arm/mach-aspeed/ast2600/board_common.c | |
index 99a9e1273a..fcc27683c1 100644 | |
--- a/arch/arm/mach-aspeed/ast2600/board_common.c | |
+++ b/arch/arm/mach-aspeed/ast2600/board_common.c | |
@@ -51,6 +51,11 @@ void reset_eth_phy(void) | |
} | |
#endif | |
+static void __maybe_unused disable_wdt2(void) | |
+{ | |
+ writeb(0x00, ASPEED_FMC_WDT2); | |
+} | |
+ | |
__weak int board_init(void) | |
{ | |
struct udevice *dev; | |
@@ -91,6 +96,8 @@ __weak int board_init(void) | |
break; | |
} | |
+ disable_wdt2(); | |
+ | |
return 0; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment