Re: [U-Boot] [PATCH 1/2] ARM: MX31: print WRSR to indicate the source of the last reset

2011-03-14 Thread Stefano Babic
On 03/12/2011 02:15 PM, Anatolij Gustschin wrote: > The reason for using wrsr register is that when reading this register, > we can also recognize the software reset cause (SWFT, bit 0 is set). > In our use case we have this requirement. Ok, understood. >> I do not think printing the reset cause

Re: [U-Boot] [PATCH 1/2] ARM: MX31: print WRSR to indicate the source of the last reset

2011-03-12 Thread Anatolij Gustschin
Hi Fabio, On Thu, 10 Mar 2011 05:47:15 -0800 (PST) Fabio Estevam wrote: > Hi Anatolij, > > --- On Thu, 3/10/11, Anatolij Gustschin wrote: >        > > mx31_get_mcu_main_clk() / 100); > > +    struct wdog_regs *wdog = (struct> wdog_regs *)WDOG_BASE; > > + > > +    printf("CPU:   Freesca

Re: [U-Boot] [PATCH 1/2] ARM: MX31: print WRSR to indicate the source of the last reset

2011-03-12 Thread Anatolij Gustschin
On Thu, 10 Mar 2011 16:07:49 +0100 Stefano Babic wrote: > On 03/10/2011 11:53 AM, Anatolij Gustschin wrote: > > Add output of the WRSR register content while booting so that > > we can see the source of the last reset. > > > > Signed-off-by: Anatolij Gustschin > > Hi Antolij, Hi Stefano, ...

Re: [U-Boot] [PATCH 1/2] ARM: MX31: print WRSR to indicate the source of the last reset

2011-03-10 Thread Stefano Babic
On 03/10/2011 11:53 AM, Anatolij Gustschin wrote: > Add output of the WRSR register content while booting so that > we can see the source of the last reset. > > Signed-off-by: Anatolij Gustschin Hi Antolij, > --- > arch/arm/cpu/arm1136/mx31/generic.c |6 -- > 1 files changed, 4 inserti

Re: [U-Boot] [PATCH 1/2] ARM: MX31: print WRSR to indicate the source of the last reset

2011-03-10 Thread Fabio Estevam
Hi Anatolij, --- On Thu, 3/10/11, Anatolij Gustschin wrote:        > mx31_get_mcu_main_clk() / 100); > +    struct wdog_regs *wdog = (struct> wdog_regs *)WDOG_BASE; > + > +    printf("CPU:   Freescale i.MX31 at %d MHz (WRSR=0x%04x)\n", > +   > mx31_get_mcu_main_clk() / 100, wdog->wrsr

[U-Boot] [PATCH 1/2] ARM: MX31: print WRSR to indicate the source of the last reset

2011-03-10 Thread Anatolij Gustschin
Add output of the WRSR register content while booting so that we can see the source of the last reset. Signed-off-by: Anatolij Gustschin --- arch/arm/cpu/arm1136/mx31/generic.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/arm1136/mx31/generic.c b/ar