Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1572726
| From | Florian Fainelli <f.fainelli@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH RESEND] ARM: ep93xx: Disable TS-72xx watchdog before uncompressing |
| Date | 2017-02-02 21:20 +0100 |
| Message-ID | <t6w1j-eC-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
The TS-72xx/73xx boards have a CPLD watchdog which is configured to
reset the board after 8 seconds, if the kernel is large enough that this
takes about this time to decompress the kernel, we will encounter a
spurious reboot.
Do not pull ts72xx.h, but instead locally define what we need to disable
the watchdog.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
Arnd, this is a recent, so you can queue this up, thanks!
arch/arm/mach-ep93xx/include/mach/uncompress.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm/mach-ep93xx/include/mach/uncompress.h b/arch/arm/mach-ep93xx/include/mach/uncompress.h
index 03c42e5400d2..b0cf2de77f81 100644
--- a/arch/arm/mach-ep93xx/include/mach/uncompress.h
+++ b/arch/arm/mach-ep93xx/include/mach/uncompress.h
@@ -10,6 +10,7 @@
*/
#include <mach/ep93xx-regs.h>
+#include <asm/mach-types.h>
static unsigned char __raw_readb(unsigned int ptr)
{
@@ -75,8 +76,19 @@ static void ethernet_reset(void)
;
}
+#define TS72XX_WDT_CONTROL_PHYS_BASE 0x23800000
+#define TS72XX_WDT_FEED_PHYS_BASE 0x23c00000
+#define TS72XX_WDT_FEED_VAL 0x05
+
+static void __maybe_unused ts72xx_watchdog_disable(void)
+{
+ __raw_writeb(TS72XX_WDT_FEED_VAL, TS72XX_WDT_FEED_PHYS_BASE);
+ __raw_writeb(0, TS72XX_WDT_CONTROL_PHYS_BASE);
+}
static void arch_decomp_setup(void)
{
+ if (machine_is_ts72xx())
+ ts72xx_watchdog_disable();
ethernet_reset();
}
--
2.9.3
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH RESEND] ARM: ep93xx: Disable TS-72xx watchdog before uncompressing Florian Fainelli <f.fainelli@gmail.com> - 2017-02-02 21:20 +0100
RE: [PATCH RESEND] ARM: ep93xx: Disable TS-72xx watchdog before uncompressing Hartley Sweeten <HartleyS@visionengravers.com> - 2017-02-02 21:50 +0100
Re: [PATCH RESEND] ARM: ep93xx: Disable TS-72xx watchdog before uncompressing Arnd Bergmann <arnd@arndb.de> - 2017-02-07 16:10 +0100
Re: [PATCH RESEND] ARM: ep93xx: Disable TS-72xx watchdog before uncompressing Afzal Mohammed <afzal.mohd.ma@gmail.com> - 2017-02-08 13:40 +0100
Re: [PATCH RESEND] ARM: ep93xx: Disable TS-72xx watchdog before uncompressing Lokesh Vutla <lokeshvutla@ti.com> - 2017-02-13 04:50 +0100
csiph-web