mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* BeagleBoard sdrc init writes reserved values
@ 2010-11-10  8:55 Orjan Friberg
  2010-11-10 15:11 ` Sascha Hauer
  0 siblings, 1 reply; 4+ messages in thread
From: Orjan Friberg @ 2010-11-10  8:55 UTC (permalink / raw)
  To: barebox

In sdrc_init in board-beagle.c both

         writel(0x1A, SDRC_REG(SYSCONFIG));

and

         writel(0x18, SDRC_REG(SYSCONFIG));

sets bits 4:3 in the IDLEMODE field.  The OMAP3 TRM (spruf98k) defines 
0x2 as the only valid value for this field, all others being marked as 
"reserved - do not use".  board-omap3evm.c does the same thing, 
board-sdp343x.c does not.

Anyone knows where these settings come from?  Derived from an older 
version of the TRM?  (I'm thinking there may have been a feature that 
was discovered to be unreliable or not working as intended so it was 
removed from the docs.)

Thanks,
Orjan


-- 
Orjan Friberg
FlatFrog Laboratories AB

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: BeagleBoard sdrc init writes reserved values
  2010-11-10  8:55 BeagleBoard sdrc init writes reserved values Orjan Friberg
@ 2010-11-10 15:11 ` Sascha Hauer
  2010-11-10 16:13   ` Anand Gadiyar
  0 siblings, 1 reply; 4+ messages in thread
From: Sascha Hauer @ 2010-11-10 15:11 UTC (permalink / raw)
  To: Orjan Friberg; +Cc: barebox

Hi Orjan,

On Wed, Nov 10, 2010 at 09:55:21AM +0100, Orjan Friberg wrote:
> In sdrc_init in board-beagle.c both
>
>         writel(0x1A, SDRC_REG(SYSCONFIG));
>
> and
>
>         writel(0x18, SDRC_REG(SYSCONFIG));
>
> sets bits 4:3 in the IDLEMODE field.  The OMAP3 TRM (spruf98k) defines  
> 0x2 as the only valid value for this field, all others being marked as  
> "reserved - do not use".  board-omap3evm.c does the same thing,  
> board-sdp343x.c does not.
>
> Anyone knows where these settings come from?  Derived from an older  
> version of the TRM?  (I'm thinking there may have been a feature that  
> was discovered to be unreliable or not working as intended so it was  
> removed from the docs.)

I have no idea. I'm pretty sure though that the value has been copied
from some version of U-Boot or Xloader.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: BeagleBoard sdrc init writes reserved values
  2010-11-10 15:11 ` Sascha Hauer
@ 2010-11-10 16:13   ` Anand Gadiyar
  2010-11-11 11:55     ` Orjan Friberg
  0 siblings, 1 reply; 4+ messages in thread
From: Anand Gadiyar @ 2010-11-10 16:13 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox

On Wed, Nov 10, 2010 at 8:41 PM, Sascha Hauer <s.hauer@pengutronix.de> wrote:
> Hi Orjan,
>
> On Wed, Nov 10, 2010 at 09:55:21AM +0100, Orjan Friberg wrote:
>> In sdrc_init in board-beagle.c both
>>
>>         writel(0x1A, SDRC_REG(SYSCONFIG));
>>
>> and
>>
>>         writel(0x18, SDRC_REG(SYSCONFIG));
>>
>> sets bits 4:3 in the IDLEMODE field.  The OMAP3 TRM (spruf98k) defines
>> 0x2 as the only valid value for this field, all others being marked as
>> "reserved - do not use".  board-omap3evm.c does the same thing,
>> board-sdp343x.c does not.
>>
>> Anyone knows where these settings come from?  Derived from an older
>> version of the TRM?  (I'm thinking there may have been a feature that
>> was discovered to be unreliable or not working as intended so it was
>> removed from the docs.)
>
> I have no idea. I'm pretty sure though that the value has been copied
> from some version of U-Boot or Xloader.
>

I agree - I think this is an accident - probably copied from older loader
versions and introduced in the first version that went here.

- Anand

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: BeagleBoard sdrc init writes reserved values
  2010-11-10 16:13   ` Anand Gadiyar
@ 2010-11-11 11:55     ` Orjan Friberg
  0 siblings, 0 replies; 4+ messages in thread
From: Orjan Friberg @ 2010-11-11 11:55 UTC (permalink / raw)
  To: Anand Gadiyar; +Cc: barebox

On 2010-11-10 17:13, Anand Gadiyar wrote:
>>> Anyone knows where these settings come from?  Derived from an older
>>> version of the TRM?  (I'm thinking there may have been a feature that
>>> was discovered to be unreliable or not working as intended so it was
>>> removed from the docs.)
>>
>> I have no idea. I'm pretty sure though that the value has been copied
>> from some version of U-Boot or Xloader.
>>
>
> I agree - I think this is an accident - probably copied from older loader
> versions and introduced in the first version that went here.

Ok, thanks.  (We haven't seen any problems related to those settings, we 
just checked them out of curiosity since we noticed there was a 
difference between barebox/x-load/u-boot. )

-- 
Orjan Friberg
FlatFrog Laboratories AB

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2010-11-11 11:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-10  8:55 BeagleBoard sdrc init writes reserved values Orjan Friberg
2010-11-10 15:11 ` Sascha Hauer
2010-11-10 16:13   ` Anand Gadiyar
2010-11-11 11:55     ` Orjan Friberg

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