* [U-Boot] [PATCH 1/2] mx6: Fix reset cause for Power On Reset case
@ 2012-03-13 17:26 Fabio Estevam
2012-03-13 17:26 ` [U-Boot] [PATCH 2/2] mx6: Remove duplicate definition of ANATOP_BASE_ADDR Fabio Estevam
2012-03-19 14:43 ` [U-Boot] [PATCH 1/2] mx6: Fix reset cause for Power On Reset case Stefano Babic
0 siblings, 2 replies; 4+ messages in thread
From: Fabio Estevam @ 2012-03-13 17:26 UTC (permalink / raw)
To: u-boot
After booting mx6qsabrelite from POR the following is reported:
CPU: Freescale i.MX61 family rev1.0 at 792 MHz
Reset cause: unknown reset
This is because both the POR and WDOG bits are set after reset.
Fix this by also checking both bits in the POR case.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
arch/arm/cpu/armv7/imx-common/cpu.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/arm/cpu/armv7/imx-common/cpu.c b/arch/arm/cpu/armv7/imx-common/cpu.c
index 1e30ae5..6d7486b 100644
--- a/arch/arm/cpu/armv7/imx-common/cpu.c
+++ b/arch/arm/cpu/armv7/imx-common/cpu.c
@@ -44,6 +44,7 @@ static char *get_reset_cause(void)
switch (cause) {
case 0x00001:
+ case 0x00011:
return "POR";
case 0x00004:
return "CSU";
--
1.7.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH 2/2] mx6: Remove duplicate definition of ANATOP_BASE_ADDR
2012-03-13 17:26 [U-Boot] [PATCH 1/2] mx6: Fix reset cause for Power On Reset case Fabio Estevam
@ 2012-03-13 17:26 ` Fabio Estevam
2012-03-19 14:44 ` Stefano Babic
2012-03-19 14:43 ` [U-Boot] [PATCH 1/2] mx6: Fix reset cause for Power On Reset case Stefano Babic
1 sibling, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2012-03-13 17:26 UTC (permalink / raw)
To: u-boot
Remove duplicate definition of ANATOP_BASE_ADDR.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
arch/arm/include/asm/arch-mx6/imx-regs.h | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/arch/arm/include/asm/arch-mx6/imx-regs.h b/arch/arm/include/asm/arch-mx6/imx-regs.h
index 6a200bb..5ba5f39 100644
--- a/arch/arm/include/asm/arch-mx6/imx-regs.h
+++ b/arch/arm/include/asm/arch-mx6/imx-regs.h
@@ -115,7 +115,6 @@
#define USB_PHY0_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x49000)
#define USB_PHY1_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x4a000)
#define CCM_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x44000)
-#define ANATOP_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x48000)
#define SNVS_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x4C000)
#define EPIT1_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x50000)
#define EPIT2_BASE_ADDR (AIPS1_OFF_BASE_ADDR + 0x54000)
--
1.7.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH 1/2] mx6: Fix reset cause for Power On Reset case
2012-03-13 17:26 [U-Boot] [PATCH 1/2] mx6: Fix reset cause for Power On Reset case Fabio Estevam
2012-03-13 17:26 ` [U-Boot] [PATCH 2/2] mx6: Remove duplicate definition of ANATOP_BASE_ADDR Fabio Estevam
@ 2012-03-19 14:43 ` Stefano Babic
1 sibling, 0 replies; 4+ messages in thread
From: Stefano Babic @ 2012-03-19 14:43 UTC (permalink / raw)
To: u-boot
On 13/03/2012 18:26, Fabio Estevam wrote:
> After booting mx6qsabrelite from POR the following is reported:
>
> CPU: Freescale i.MX61 family rev1.0 at 792 MHz
> Reset cause: unknown reset
>
> This is because both the POR and WDOG bits are set after reset.
>
> Fix this by also checking both bits in the POR case.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Applied to u-boot-imx, thanks.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH 2/2] mx6: Remove duplicate definition of ANATOP_BASE_ADDR
2012-03-13 17:26 ` [U-Boot] [PATCH 2/2] mx6: Remove duplicate definition of ANATOP_BASE_ADDR Fabio Estevam
@ 2012-03-19 14:44 ` Stefano Babic
0 siblings, 0 replies; 4+ messages in thread
From: Stefano Babic @ 2012-03-19 14:44 UTC (permalink / raw)
To: u-boot
On 13/03/2012 18:26, Fabio Estevam wrote:
> Remove duplicate definition of ANATOP_BASE_ADDR.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
Applied to u-boot-imx, thanks.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-03-19 14:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-13 17:26 [U-Boot] [PATCH 1/2] mx6: Fix reset cause for Power On Reset case Fabio Estevam
2012-03-13 17:26 ` [U-Boot] [PATCH 2/2] mx6: Remove duplicate definition of ANATOP_BASE_ADDR Fabio Estevam
2012-03-19 14:44 ` Stefano Babic
2012-03-19 14:43 ` [U-Boot] [PATCH 1/2] mx6: Fix reset cause for Power On Reset case Stefano Babic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox