All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] am33xx: Drop timer_init call from s_init - udelay is wrong at ddr configuration
@ 2015-07-17  7:47 Egli, Samuel
  2015-07-21 21:06 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Egli, Samuel @ 2015-07-17  7:47 UTC (permalink / raw
  To: u-boot

Hi Tom, 
I stumbled over your commit b352dde1ea715e8481946ec7d8086b3c3eb126ae
where you removed timer_init() from .../am33xx/board.c.

In the commit message it's written that timer_init will be called 
earlier. However, since this commit udelay will not generate 
correct delays in spl code in our am335xx based boards.
I'm wondering where the timer_init shold be placed. grep-ing 
the code I see that we have a call in spl.c but I this is 
too late. 

Doing some measurements, with this commit udelay is not correct 
at the time of:

 * board_init_ddr()
 * spl_siemens_board_init()

I'm guessing that it might be a problem for other am33xx boards
too, but I didn't verify this.

Right now I just put it back into am33xx/board.c but maybe you
have a better idea.

Kind regards
Sam

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

* [U-Boot] am33xx: Drop timer_init call from s_init - udelay is wrong at ddr configuration
  2015-07-17  7:47 [U-Boot] am33xx: Drop timer_init call from s_init - udelay is wrong at ddr configuration Egli, Samuel
@ 2015-07-21 21:06 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2015-07-21 21:06 UTC (permalink / raw
  To: u-boot

On Fri, Jul 17, 2015 at 07:47:44AM +0000, Egli, Samuel wrote:

> Hi Tom, 
> I stumbled over your commit b352dde1ea715e8481946ec7d8086b3c3eb126ae
> where you removed timer_init() from .../am33xx/board.c.
> 
> In the commit message it's written that timer_init will be called 
> earlier. However, since this commit udelay will not generate 
> correct delays in spl code in our am335xx based boards.
> I'm wondering where the timer_init shold be placed. grep-ing 
> the code I see that we have a call in spl.c but I this is 
> too late. 

Hmm, if you switch it over to using arch/arm/cpu/armv7/arch_timer.c does
the problem go away?  Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150721/3c9a7cf6/attachment.sig>

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

end of thread, other threads:[~2015-07-21 21:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-17  7:47 [U-Boot] am33xx: Drop timer_init call from s_init - udelay is wrong at ddr configuration Egli, Samuel
2015-07-21 21:06 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.