diff options
author | Pavel Machek <pavel@denx.de> | 2014-09-09 16:03:28 +0400 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2014-10-06 19:46:48 +0400 |
commit | de6da9255ac4017e6bf6c98f533829a6eb67f3f6 (patch) | |
tree | b704a6d12e3bfaf45dbdcaea346ef3061320e44b /arch/arm/include/asm/arch-socfpga | |
parent | be324354eebcd809bf539d2414c7c0a370847f26 (diff) | |
download | u-boot-de6da9255ac4017e6bf6c98f533829a6eb67f3f6.tar.xz |
arm: socfpga: Add watchdog disable for socfpga
This adds watchdog disable. It is neccessary for running Linux kernel.
Signed-off-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@altera.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Tom Rini <trini@ti.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Pavel Machek <pavel@denx.de>
V2: Move RSTMGR_PERMODRST_L4WD0_LSB to reset_manager.h
Reset watchdog only if CONFIG_HW_WATCHDOG is undefined (the default)
Diffstat (limited to 'arch/arm/include/asm/arch-socfpga')
-rw-r--r-- | arch/arm/include/asm/arch-socfpga/reset_manager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-socfpga/reset_manager.h b/arch/arm/include/asm/arch-socfpga/reset_manager.h index 3e95476828..18506e69fd 100644 --- a/arch/arm/include/asm/arch-socfpga/reset_manager.h +++ b/arch/arm/include/asm/arch-socfpga/reset_manager.h @@ -10,6 +10,8 @@ void reset_cpu(ulong addr); void reset_deassert_peripherals_handoff(void); +void socfpga_watchdog_reset(void); + struct socfpga_reset_manager { u32 status; u32 ctrl; @@ -27,4 +29,6 @@ struct socfpga_reset_manager { #define RSTMGR_CTRL_SWWARMRSTREQ_LSB 1 #endif +#define RSTMGR_PERMODRST_L4WD0_LSB 6 + #endif /* _RESET_MANAGER_H_ */ |