Merge branch '2020-02-28-mpc8xx-fixes'
authorTom Rini <trini@konsulko.com>
Fri, 28 Feb 2020 16:04:50 +0000 (11:04 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 28 Feb 2020 16:04:50 +0000 (11:04 -0500)
- Fix the watchdog on mpc8xx platforms

arch/powerpc/cpu/mpc8xx/Kconfig
drivers/watchdog/Kconfig
drivers/watchdog/mpc8xx_wdt.c

index 3e8ea3852959addb62e032480ddfd45505df0fea..f112317376567b6fbc24c4783b4b6a019a338fc5 100644 (file)
@@ -25,10 +25,6 @@ config MPC885
 
 endchoice
 
-#config MPC8xx_WATCHDOG
-#      bool "Watchdog"
-#      select HW_WATCHDOG
-
 config 8xx_GCLK_FREQ
        int "CPU GCLK Frequency"
 
index 36fbdce55208fda1ce2aa901e8f494a384f09edc..d24c1e48353f420f71b87b35d352ab8715413000 100644 (file)
@@ -2,6 +2,7 @@ menu "Watchdog Timer Support"
 
 config WATCHDOG
        bool "Enable U-Boot watchdog reset"
+       depends on !HW_WATCHDOG
        help
          This option enables U-Boot watchdog support where U-Boot is using
          watchdog_reset function to service watchdog device in U-Boot. Enable
@@ -118,7 +119,7 @@ config WDT_CORTINA
 config WDT_MPC8xx
        bool "MPC8xx watchdog timer support"
        depends on WDT && MPC8xx
-       select CONFIG_MPC8xx_WATCHDOG
+       select HW_WATCHDOG
        help
           Select this to enable mpc8xx watchdog timer
 
index 675b62d8b393ad1562fd56b793551c39ce270bd6..30758aeed4c0acb29d9a22e2942386222b08242c 100644 (file)
@@ -10,7 +10,7 @@
 #include <asm/cpm_8xx.h>
 #include <asm/io.h>
 
-static void hw_watchdog_reset(void)
+void hw_watchdog_reset(void)
 {
        immap_t __iomem *immap = (immap_t __iomem *)CONFIG_SYS_IMMR;