Re: [U-Boot] ppc44x - watchdog timers reboots during the image loading

2010-10-04 Thread Stefan Roese
Hi ame, On Friday 01 October 2010 17:36:39 ame wrote: > > Ok, confirmed the new one has it in there. sorry about that. The logic > > is the same as the one that is in the old code though. > > Well, ok, kind of. cpu.c is correct, cpu_init.c that actually sets up the > watchdog timer is not tho

Re: [U-Boot] ppc44x - watchdog timers reboots during the image loading

2010-10-01 Thread ame
On Fri, Oct 01, 2010 at 09:37:55AM -0500, ame wrote: > On Fri, Oct 01, 2010 at 03:35:14PM +0200, Stefan Roese wrote: > > On Thursday 30 September 2010 22:15:04 ame wrote: > > > On my 460ex board, i've tried to add CONFIG_WATCHDOG to the config and it > > > appears to work until the board tries to b

Re: [U-Boot] ppc44x - watchdog timers reboots during the image loading

2010-10-01 Thread Stefan Roese
On Friday 01 October 2010 16:37:55 ame wrote: > > void reset_4xx_watchdog(void) > > { > > > > /* > > > > * Clear TSR(WIS) bit > > */ > > > > mtspr(SPRN_TSR, 0x4000); > > > > } > > ... > > > > Definitely upper-case here. > > Ok, confirmed the new one has it in the

Re: [U-Boot] ppc44x - watchdog timers reboots during the image loading

2010-10-01 Thread ame
On Fri, Oct 01, 2010 at 03:35:14PM +0200, Stefan Roese wrote: > On Thursday 30 September 2010 22:15:04 ame wrote: > > On my 460ex board, i've tried to add CONFIG_WATCHDOG to the config and it > > appears to work until the board tries to boot. At that point I can count > > down about 10 seconds and

Re: [U-Boot] ppc44x - watchdog timers reboots during the image loading

2010-10-01 Thread Stefan Roese
On Thursday 30 September 2010 22:15:04 ame wrote: > On my 460ex board, i've tried to add CONFIG_WATCHDOG to the config and it > appears to work until the board tries to boot. At that point I can count > down about 10 seconds and the reboot happens. The 10s correlates with > what I think the watch

Re: [U-Boot] ppc44x - watchdog timers reboots during the image loading

2010-09-30 Thread Timur Tabi
ame wrote: > Finally reset_4xx_watchdog does mtspr(tsr, 0xc000) where tsr is 0x150 > IIRC. My guess is that this code doesn't actually reset the watchdog. Perhaps your value of TSR is wrong, or 0xc000 is wrong, or perhaps there's some other watchdog active that you're ignoring. -- Timu

Re: [U-Boot] ppc44x - watchdog timers reboots during the image loading

2010-09-30 Thread ame
On Thu, Sep 30, 2010 at 03:48:36PM -0500, Timur Tabi wrote: > On Thu, Sep 30, 2010 at 3:15 PM, ame wrote: > > On my 460ex board, i've tried to add CONFIG_WATCHDOG to the config and it > > appears to > > work until the board tries to boot. ?At that point I can count down about > > 10 seconds > >

Re: [U-Boot] ppc44x - watchdog timers reboots during the image loading

2010-09-30 Thread Timur Tabi
On Thu, Sep 30, 2010 at 3:15 PM, ame wrote: > On my 460ex board, i've tried to add CONFIG_WATCHDOG to the config and it > appears to > work until the board tries to boot.  At that point I can count down about 10 > seconds > and the reboot happens.  The 10s correlates with what I think the watchd

[U-Boot] ppc44x - watchdog timers reboots during the image loading

2010-09-30 Thread ame
On my 460ex board, i've tried to add CONFIG_WATCHDOG to the config and it appears to work until the board tries to boot. At that point I can count down about 10 seconds and the reboot happens. The 10s correlates with what I think the watchdog is being set to. I've inserted some WATCHDOG_RESET