]> Git Repo - J-u-boot.git/commitdiff
powerpc: mpc83xx: remove unused watchdog_reset() function
authorRasmus Villemoes <[email protected]>
Tue, 28 May 2024 11:13:24 +0000 (13:13 +0200)
committerStefan Roese <[email protected]>
Sun, 16 Jun 2024 10:14:14 +0000 (12:14 +0200)
There is no longer any code in tree that calls a watchdog_reset()
function. The macro WATCHDOG_RESET, which used to emit a call to
watchdog_reset(), got removed two years ago.

Cc: Christophe Leroy <[email protected]>
Signed-off-by: Rasmus Villemoes <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
arch/powerpc/cpu/mpc83xx/cpu.c

index e0be938ea9825576baeb93848b1287b4203aab0d..3c8cbd4252d0861fce3fc94acffc5dcb6d5b152e 100644 (file)
@@ -164,21 +164,6 @@ unsigned long get_tbclk(void)
 }
 #endif
 
-#if defined(CONFIG_WATCHDOG) && !defined(CONFIG_WDT)
-void watchdog_reset (void)
-{
-       int re_enable = disable_interrupts();
-
-       /* Reset the 83xx watchdog */
-       volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
-       immr->wdt.swsrr = 0x556c;
-       immr->wdt.swsrr = 0xaa39;
-
-       if (re_enable)
-               enable_interrupts();
-}
-#endif
-
 /*
  * Initializes on-chip MMC controllers.
  * to override, implement board_mmc_init()
This page took 0.033497 seconds and 4 git commands to generate.