[U-Boot] [PATCH] RFC: am35xx: Rearrange SPL on am35xx
Tom Rini
trini at ti.com
Fri Dec 19 15:40:18 CET 2014
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() to set up a new stack (seems that the SRAM stack
> is not large enough on these boards)
>
> This needs more work but it does boot on Beaglebone Black.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> arch/arm/cpu/armv7/am33xx/board.c | 60 ++++++++++++++++++++++++++------------
> arch/arm/cpu/armv7/lowlevel_init.S | 4 ---
> arch/arm/include/asm/spl.h | 3 ++
> arch/arm/lib/crt0.S | 9 ++++++
> include/configs/ti_armv7_common.h | 5 ++--
> 5 files changed, 56 insertions(+), 25 deletions(-)
This takes things in the wrong direction I think. Since omap3/4/5 have
the same problem we're going to have to duplicate a bunch of this code.
But we can do omap_save_boot_params a bit later I'm pretty sure we can
shove it into spl_board_init() in
arch/arm/cpu/armv7/omap-common/boot-common.c and I'm going to do my best
to do that today and test it on at least a few boards.
--
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/20141219/5de7d68d/attachment.pgp>
More information about the U-Boot
mailing list