aboutsummaryrefslogtreecommitdiff
path: root/drivers/watchdog/mpc8xx_wdt.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2019-04-11 15:58:46 +0200
committerStefan Roese <sr@denx.de>2019-04-26 09:16:32 +0200
commitf3729ba6e7b2dff9a6f6e72e8839d99c2e3dbb03 (patch)
tree93c47901092d63d2c64216a0c27a30a8f497a8d2 /drivers/watchdog/mpc8xx_wdt.c
parent782ef57edc69652d6f3874e51a47f56d739167bc (diff)
downloadu-boot-f3729ba6e7b2dff9a6f6e72e8839d99c2e3dbb03.zip
u-boot-f3729ba6e7b2dff9a6f6e72e8839d99c2e3dbb03.tar.gz
u-boot-f3729ba6e7b2dff9a6f6e72e8839d99c2e3dbb03.tar.bz2
watchdog: mpc8xx_wdt: Watchdog driver and macros cleanup
With the generic watchdog driver now implemented, this patch removes some legacy stuff from the MPC8xx watchdog driver and its Kconfig integration. CONFIG_MPC8xx_WATCHDOG is completely removed and hw_watchdog_reset() is made static, as the watchdog will now get serviced via the DM infrastructure if enabled via CONFIG_WATCHDOG. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Christophe Leroy <christophe.leroy@c-s.fr>
Diffstat (limited to 'drivers/watchdog/mpc8xx_wdt.c')
-rw-r--r--drivers/watchdog/mpc8xx_wdt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/watchdog/mpc8xx_wdt.c b/drivers/watchdog/mpc8xx_wdt.c
index c24c2a9..675b62d 100644
--- a/drivers/watchdog/mpc8xx_wdt.c
+++ b/drivers/watchdog/mpc8xx_wdt.c
@@ -10,7 +10,7 @@
#include <asm/cpm_8xx.h>
#include <asm/io.h>
-void hw_watchdog_reset(void)
+static void hw_watchdog_reset(void)
{
immap_t __iomem *immap = (immap_t __iomem *)CONFIG_SYS_IMMR;
@@ -18,7 +18,6 @@ void hw_watchdog_reset(void)
out_be16(&immap->im_siu_conf.sc_swsr, 0xaa39); /* write magic2 */
}
-#ifdef CONFIG_WDT_MPC8xx
static int mpc8xx_wdt_start(struct udevice *dev, u64 timeout, ulong flags)
{
immap_t __iomem *immap = (immap_t __iomem *)CONFIG_SYS_IMMR;
@@ -66,4 +65,3 @@ U_BOOT_DRIVER(wdt_mpc8xx) = {
.of_match = mpc8xx_wdt_ids,
.ops = &mpc8xx_wdt_ops,
};
-#endif /* CONFIG_WDT_MPC8xx */