[U-Boot] [PATCH 8/8] MX35: add support for flea3 board

Stefano Babic sbabic at denx.de
Fri Sep 16 13:56:13 CEST 2011


On 09/16/2011 01:48 PM, Fabio Estevam wrote:
> Hi Stefano,
> 

Hi Fabio,

> On Fri, Sep 16, 2011 at 6:46 AM, Stefano Babic <sbabic at denx.de> wrote:
> ..
>> +void board_setup_sdram(void)
>> +{
>> +       u32 val;
>> +       struct esdc_regs *esdc = (struct esdc_regs *)ESDCTL_BASE_ADDR;
>> +
>> +       /* Initialize with default values both CSD0/1 */
>> +       writel(0x2000, &esdc->esdctl0);
>> +       writel(0x2000, &esdc->esdctl1);
> 
> On other boards we setup the SDRAM in lowlevel_init.S and here you do
> it on the board file.
> 
> Shouldn´t this be setup in lowlevel_init.S for consistency?

Really the idea is to get rid (as much as possible) of lowlevel_init.S
and make the whole setup in C code.

This board can be then the first one (MX3) doing that, that makes the
code much more readable - and I see in recent patches that this is
pushed for other architectures, too (I mean Heiko's patches for davinci
AM1808). And this is done since a lot of time for some PowerPC boards.

The question arises if the other boards (at least the mx35pdk..) should
be updated in the same way...

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
=====================================================================


More information about the U-Boot mailing list