From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Tue, 16 Sep 2014 15:58:39 +0200 Subject: [U-Boot] [PATCH 10/35] arm: socfpga: Add watchdog disable for socfpga In-Reply-To: <541713A4.2060205@opensource.altera.com> References: <1410779188-6880-1-git-send-email-marex@denx.de> <1410779188-6880-11-git-send-email-marex@denx.de> <541713A4.2060205@opensource.altera.com> Message-ID: <201409161558.39402.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday, September 15, 2014 at 06:28:20 PM, Dinh Nguyen wrote: > On 09/15/2014 06:06 AM, Marek Vasut wrote: > > From: Pavel Machek > > > > This adds watchdog disable. It is neccessary for running Linux kernel. > > > > Signed-off-by: Pavel Machek > > Signed-off-by: Marek Vasut > > Cc: Chin Liang See > > Cc: Dinh Nguyen > > Cc: Albert Aribaud > > Cc: Tom Rini > > Cc: Wolfgang Denk > > Cc: Pavel Machek > > --- > > > > arch/arm/cpu/armv7/socfpga/misc.c | 4 ++++ > > arch/arm/cpu/armv7/socfpga/reset_manager.c | 13 +++++++++++++ > > arch/arm/include/asm/arch-socfpga/reset_manager.h | 2 ++ > > 3 files changed, 19 insertions(+) > > > > diff --git a/arch/arm/cpu/armv7/socfpga/misc.c > > b/arch/arm/cpu/armv7/socfpga/misc.c index ecae393..15cd8c2 100644 > > --- a/arch/arm/cpu/armv7/socfpga/misc.c > > +++ b/arch/arm/cpu/armv7/socfpga/misc.c > > @@ -8,6 +8,7 @@ > > > > #include > > #include > > #include > > > > +#include > > > > DECLARE_GLOBAL_DATA_PTR; > > > > @@ -38,6 +39,9 @@ int overwrite_console(void) > > > > int misc_init_r(void) > > { > > > > + /* This is needed, otherwise kernel is rebooted by watchdog. */ > > + watchdog_disable(); > > + > > > > return 0; > > > > } > > > > diff --git a/arch/arm/cpu/armv7/socfpga/reset_manager.c > > b/arch/arm/cpu/armv7/socfpga/reset_manager.c index e320c01..07b8c4f > > 100644 > > --- a/arch/arm/cpu/armv7/socfpga/reset_manager.c > > +++ b/arch/arm/cpu/armv7/socfpga/reset_manager.c > > @@ -14,6 +14,19 @@ DECLARE_GLOBAL_DATA_PTR; > > > > static const struct socfpga_reset_manager *reset_manager_base = > > > > (void *)SOCFPGA_RSTMGR_ADDRESS; > > > > +#define RSTMGR_PERMODRST_L4WD0_LSB 6 > > Should this define go into -> arch-socfpga/reset_manager.h ? Yeah, done. And fixed this for the EMAC reset patch as well. Thanks!