summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2019-04-10 10:37:37 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-04-23 10:33:45 +0200
commit1e8ff7b5025120aedd915dbbdf6b534a446b3827 (patch)
tree932b11d44ad5a87644f624bf47e107a88718158c
parentfd074a7a7961af9db076f2b82ccb9d9ba2a63f43 (diff)
downloadbarebox-1e8ff7b5025120aedd915dbbdf6b534a446b3827.tar.gz
ARM: socfpga: Cyclone5: remove watchdog_disable()
watchdog_disable() is left over from the original SoCFPGA commit and nothing calls it. Remove it to avoid a '-Wmissing-prototypes' warning from the compiler. Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/mach-socfpga/cyclone5-reset-manager.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/arch/arm/mach-socfpga/cyclone5-reset-manager.c b/arch/arm/mach-socfpga/cyclone5-reset-manager.c
index 4bbe1a8..8635806 100644
--- a/arch/arm/mach-socfpga/cyclone5-reset-manager.c
+++ b/arch/arm/mach-socfpga/cyclone5-reset-manager.c
@@ -22,23 +22,6 @@
#include <mach/cyclone5-regs.h>
#include <mach/cyclone5-reset-manager.h>
-/* Disable the watchdog (toggle reset to watchdog) */
-void watchdog_disable(void)
-{
- void __iomem *rm = (void *)CYCLONE5_RSTMGR_ADDRESS;
- uint32_t val;
-
- /* assert reset for watchdog */
- val = readl(rm + RESET_MGR_PER_MOD_RESET_OFS);
- val |= 1 << RSTMGR_PERMODRST_L4WD0_LSB;
- writel(val, rm + RESET_MGR_PER_MOD_RESET_OFS);
-
- /* deassert watchdog from reset (watchdog in not running state) */
- val = readl(rm + RESET_MGR_PER_MOD_RESET_OFS);
- val &= ~(1 << RSTMGR_PERMODRST_L4WD0_LSB);
- writel(val, rm + RESET_MGR_PER_MOD_RESET_OFS);
-}
-
/* Write the reset manager register to cause reset */
static void __noreturn socfpga_restart_soc(struct restart_handler *rst)
{