ARM: ep93xx: Disable TS-72xx watchdog before uncompressing
PATCH 1/1 ARM: ep93xx: Disable TS-72xx watchdog before uncompressing
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.
--- arch/arm/mach-ep93xx/include/mach/uncompress.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)
arch/arm/mach-ep93xx/include/mach/uncompress.h +12 -0
@@ -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 (); }
Signature · 1 line
2.9.3
Le 12/11/16 ? 11:16, Florian Fainelli a ?crit :
Quoted 9 lines
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 <[email protected]>
Hartley, Ryan, do you guys maintain a git tree with EP93xx patches, or should I submit them through RMK's patch system once you are okay with them?
Thanks!
Signature · 1 line
Florian
Quoted 6 lines · Florian Fainelli
Le 12/11/16 ? 11:16, Florian Fainelli a ?crit :
Quoted 5 lines
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.
Quoted 7 lines
Quoted 4 lines
Do not pull
ts72xx.h, but instead locally define what we need to disable the watchdog.Signed-off-by Florian Fainelli <[email protected]>Hartley, Ryan, do you guys maintain a git tree with EP93xx patches, or should I submit them through RMK's patch system once you are okay with them?
Ryan has an old tree on github but it has not been updated since Oct 14, 2013. I'm not sure if he is doing any active development at this time.
This patch will have to go through RMK's patch system or some other tree.
Thanks,
Hartley
Quoted 12 lines · Hartley Sweeten
Quoted 11 lines · Florian Fainelli
Le 12/11/16 ? 11:16, Florian Fainelli a ?crit :
Quoted 9 lines
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 <[email protected]>
Quoted 7 lines
Quoted 2 lines
Hartley, Ryan, do you guys maintain a git tree with EP93xx patches, or should I submit them through RMK's patch system once you are okay with them?
Ryan has an old tree on github but it has not been updated since Oct 14, 2013. I'm not sure if he is doing any active development at this time.
This patch will have to go through RMK's patch system or some other tree.
Olof, Arnd, Kevin, should I just resent this patch to arm at kernel.org for you to pick it?
Thanks
Signature · 1 line
Florian
Quoted 11 lines · Florian Fainelli
Quoted 7 lines · Hartley Sweeten
Quoted 1 line · Florian Fainelli
Le 12/11/16 ? 11:16, Florian Fainelli a ?crit :
Ryan has an old tree on github but it has not been updated since Oct 14, 2013. I'm not sure if he is doing any active development at this time.
This patch will have to go through RMK's patch system or some other tree.
Olof, Arnd, Kevin, should I just resent this patch to arm at kernel.org for you to pick it?
Yes, that would be good. I've added it to my todo folder now, but having the patch
itself there is easier for us.
Arnd