public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2] OMAP5: Fix bug in omap5_es1_prcm struct
@ 2013-05-26 20:03 Lubomir Popov
  2013-05-28 21:03 ` Tom Rini
  2013-06-06  9:02 ` Lubomir Popov
  0 siblings, 2 replies; 3+ messages in thread
From: Lubomir Popov @ 2013-05-26 20:03 UTC (permalink / raw)
  To: u-boot

The newly introduced function setup_warmreset_time(), called
from within prcm_init(), tries to write to the prm_rsttime
OMAP5 register. The struct member holding this register's
address is however initialized for OMAP5 ES2.0 only. On ES1.0
devices this uninitialized value causes a second (warm) reset
at startup.

Add .prm_rsttime address init to the ES1.0 struct.

Signed-off-by: Lubomir Popov <lpopov@mm-sol.com>
---
V2 gives the correct prm_rsttime reg address for ES1.0. Copy-paste
from ES2.0 in V1, sorry.

 arch/arm/cpu/armv7/omap5/prcm-regs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/cpu/armv7/omap5/prcm-regs.c b/arch/arm/cpu/armv7/omap5/prcm-regs.c
index e9f6a32..f29ac77 100644
--- a/arch/arm/cpu/armv7/omap5/prcm-regs.c
+++ b/arch/arm/cpu/armv7/omap5/prcm-regs.c
@@ -298,6 +298,7 @@ struct prcm_regs const omap5_es1_prcm = {
 	.cm_wkupaon_io_srcomp_clkctrl = 0x4ae07898,
 	.prm_rstctrl = 0x4ae07b00,
 	.prm_rstst = 0x4ae07b04,
+	.prm_rsttime = 0x4ae07b08,
 	.prm_vc_val_bypass = 0x4ae07ba0,
 	.prm_vc_cfg_i2c_mode = 0x4ae07bb4,
 	.prm_vc_cfg_i2c_clk = 0x4ae07bb8,
-- 
1.7.12.4 (Apple Git-37)

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH v2] OMAP5: Fix bug in omap5_es1_prcm struct
  2013-05-26 20:03 [U-Boot] [PATCH v2] OMAP5: Fix bug in omap5_es1_prcm struct Lubomir Popov
@ 2013-05-28 21:03 ` Tom Rini
  2013-06-06  9:02 ` Lubomir Popov
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2013-05-28 21:03 UTC (permalink / raw)
  To: u-boot

On Sun, May 26, 2013 at 11:03:17PM +0300, Lubomir Popov wrote:

> The newly introduced function setup_warmreset_time(), called
> from within prcm_init(), tries to write to the prm_rsttime
> OMAP5 register. The struct member holding this register's
> address is however initialized for OMAP5 ES2.0 only. On ES1.0
> devices this uninitialized value causes a second (warm) reset
> at startup.
> 
> Add .prm_rsttime address init to the ES1.0 struct.
> 
> Signed-off-by: Lubomir Popov <lpopov@mm-sol.com>

Acked-by: Tom Rini <trini@ti.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130528/2834255d/attachment.pgp>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH v2] OMAP5: Fix bug in omap5_es1_prcm struct
  2013-05-26 20:03 [U-Boot] [PATCH v2] OMAP5: Fix bug in omap5_es1_prcm struct Lubomir Popov
  2013-05-28 21:03 ` Tom Rini
@ 2013-06-06  9:02 ` Lubomir Popov
  1 sibling, 0 replies; 3+ messages in thread
From: Lubomir Popov @ 2013-06-06  9:02 UTC (permalink / raw)
  To: u-boot

Hi Tom,

On 26/05/13 23:03, Lubomir Popov wrote:
> The newly introduced function setup_warmreset_time(), called
> from within prcm_init(), tries to write to the prm_rsttime
> OMAP5 register. The struct member holding this register's
> address is however initialized for OMAP5 ES2.0 only. On ES1.0
> devices this uninitialized value causes a second (warm) reset
> at startup.
> 
> Add .prm_rsttime address init to the ES1.0 struct.
> 
> Signed-off-by: Lubomir Popov <lpopov@mm-sol.com>
> ---
> V2 gives the correct prm_rsttime reg address for ES1.0. Copy-paste
> from ES2.0 in V1, sorry.
> 
>  arch/arm/cpu/armv7/omap5/prcm-regs.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/cpu/armv7/omap5/prcm-regs.c b/arch/arm/cpu/armv7/omap5/prcm-regs.c
> index e9f6a32..f29ac77 100644
> --- a/arch/arm/cpu/armv7/omap5/prcm-regs.c
> +++ b/arch/arm/cpu/armv7/omap5/prcm-regs.c
> @@ -298,6 +298,7 @@ struct prcm_regs const omap5_es1_prcm = {
>  	.cm_wkupaon_io_srcomp_clkctrl = 0x4ae07898,
>  	.prm_rstctrl = 0x4ae07b00,
>  	.prm_rstst = 0x4ae07b04,
> +	.prm_rsttime = 0x4ae07b08,
>  	.prm_vc_val_bypass = 0x4ae07ba0,
>  	.prm_vc_cfg_i2c_mode = 0x4ae07bb4,
>  	.prm_vc_cfg_i2c_clk = 0x4ae07bb8,
> 

Could you please apply http://patchwork.ozlabs.org/patch/246454/
to the ti tree? This is the only obstacle for my board to boot
normally with a clean u-boot-ti in respect to the OMAP5 common
stuff.

Thanks,
Lubo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-06-06  9:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-26 20:03 [U-Boot] [PATCH v2] OMAP5: Fix bug in omap5_es1_prcm struct Lubomir Popov
2013-05-28 21:03 ` Tom Rini
2013-06-06  9:02 ` Lubomir Popov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox