[U-Boot] [PATCH] RFC: am35xx: Rearrange SPL on am35xx

2014-12-18 Thread Simon Glass
This is an attempt to tidy up the early SPL code in an attempt to pave the way for driver model in SPL: - Avoid setting up SDRAM before board_init_f() - Avoid touching global_data before board_init_f() - Allow board_init_f() to set up a new stack (seems that the SRAM stack is not large enough on t

[U-Boot] [PATCH] RFC: am35xx: Rearrange SPL on am35xx

2014-12-18 Thread Simon Glass
This is an attempt to tidy up the early SPL code in an attempt to pave the way for driver model in SPL: - Avoid setting up SDRAM before board_init_f() - Avoid touching global_data before board_init_f() - Allow board_init_f() to set up a new stack (seems that the SRAM stack is not large enough on t

Re: [U-Boot] [PATCH] RFC: am35xx: Rearrange SPL on am35xx

2014-12-19 Thread Albert ARIBAUD
Hello Simon, On Thu, 18 Dec 2014 11:26:12 -0700, Simon Glass wrote: > This is an attempt to tidy up the early SPL code in an attempt to pave > the way for driver model in SPL: > > - Avoid setting up SDRAM before board_init_f() > - Avoid touching global_data before board_init_f() By 'touching',

Re: [U-Boot] [PATCH] RFC: am35xx: Rearrange SPL on am35xx

2014-12-19 Thread Tom Rini
On Thu, Dec 18, 2014 at 05:21:21PM -0700, Simon Glass wrote: > This is an attempt to tidy up the early SPL code in an attempt to pave > the way for driver model in SPL: > > - Avoid setting up SDRAM before board_init_f() > - Avoid touching global_data before board_init_f() > - Allow board_init_f()

Re: [U-Boot] [PATCH] RFC: am35xx: Rearrange SPL on am35xx

2014-12-19 Thread Simon Glass
Hi Tom, Albert, On 19 December 2014 at 07:40, Tom Rini wrote: > On Thu, Dec 18, 2014 at 05:21:21PM -0700, Simon Glass wrote: > >> This is an attempt to tidy up the early SPL code in an attempt to pave >> the way for driver model in SPL: >> >> - Avoid setting up SDRAM before board_init_f() >> - Av

Re: [U-Boot] [PATCH] RFC: am35xx: Rearrange SPL on am35xx

2014-12-21 Thread Tom Rini
On Fri, Dec 19, 2014 at 08:32:35AM -0700, Simon Glass wrote: > Hi Tom, Albert, > > On 19 December 2014 at 07:40, Tom Rini wrote: > > On Thu, Dec 18, 2014 at 05:21:21PM -0700, Simon Glass wrote: > > > >> This is an attempt to tidy up the early SPL code in an attempt to pave > >> the way for driver

Re: [U-Boot] [PATCH] RFC: am35xx: Rearrange SPL on am35xx

2014-12-21 Thread Simon Glass
Hi Tom, On 21 December 2014 at 05:30, Tom Rini wrote: > On Fri, Dec 19, 2014 at 08:32:35AM -0700, Simon Glass wrote: >> Hi Tom, Albert, >> >> On 19 December 2014 at 07:40, Tom Rini wrote: >> > On Thu, Dec 18, 2014 at 05:21:21PM -0700, Simon Glass wrote: >> > >> >> This is an attempt to tidy up t

Re: [U-Boot] [PATCH] RFC: am35xx: Rearrange SPL on am35xx

2014-12-21 Thread Tom Rini
On Sun, Dec 21, 2014 at 11:53:21AM -0700, Simon Glass wrote: > Hi Tom, > > On 21 December 2014 at 05:30, Tom Rini wrote: > > On Fri, Dec 19, 2014 at 08:32:35AM -0700, Simon Glass wrote: > >> Hi Tom, Albert, > >> > >> On 19 December 2014 at 07:40, Tom Rini wrote: > >> > On Thu, Dec 18, 2014 at 05

Re: [U-Boot] [PATCH] RFC: am35xx: Rearrange SPL on am35xx

2014-12-21 Thread Simon Glass
Hi Tom, On 21 December 2014 at 12:29, Tom Rini wrote: > On Sun, Dec 21, 2014 at 11:53:21AM -0700, Simon Glass wrote: >> Hi Tom, >> >> On 21 December 2014 at 05:30, Tom Rini wrote: >> > On Fri, Dec 19, 2014 at 08:32:35AM -0700, Simon Glass wrote: >> >> Hi Tom, Albert, >> >> >> >> On 19 December 2