[U-Boot] [PATCH] arm: spl: Allow board_init_r() to run with a larger stack

Simon Glass sjg at chromium.org
Wed Jan 21 18:38:26 CET 2015


Hi Masahiro,

On 21 January 2015 at 10:12, Masahiro YAMADA <yamada.m at jp.panasonic.com> wrote:
> Hi Simon,
>
>
>
>> Yes agreed. I can do that. It seems like the concept is agreed at least.
>>
>> So how about this:
>>
>> CONFIG_SPL_STACK_R - bool
>> CONFIG_SPL_STACK_R _SIZE - hex
>
>
> Do you need the size of stack?  Or the base address?

The address, of course, so:

CONFIG_SPL_STACK_R - bool
CONFIG_SPL_STACK_R _ADDR - hex

>
>
>
>> But for your particular case, I certainly would like the UART to be
>> available early in SPL. We are in the very early days of driver model
>> for SPL. Once we get it merged (thanks to Tom's work this should be
>> soon) we can look at how to get the UART available early. One hacky
>> idea is to do the DM scan in board_init_f() in SPL, for serial only.
>> But it can be done.
>
>
> I think we can move the DM scan from board_init_r() to board_init_f().

OK. I'll revisit the DM SPL series soon, and see how it all looks.

Regards,
Simon


More information about the U-Boot mailing list