[U-Boot] [PATCH v3 1/2] spl: Add spl_early_init()
Simon Glass
sjg at chromium.org
Thu Mar 16 22:21:39 UTC 2017
Hi Marek,
On 16 March 2017 at 16:17, Marek Vasut <marex at denx.de> wrote:
> On 03/15/2017 01:06 AM, Simon Glass wrote:
>> From: Eddie Cai <eddie.cai.linux at gmail.com>
>>
>> At present malloc_base/_limit/_ptr are not initialised in spl_init() when
>> we call spl_init() in board_init_f().
>
> Are you even supposed to call spl_init() from board_init_f() ?
> I was under the impression that's supposed to be called by
> board_init_r() only.
>
If you need to use DM then yes you must call it. At present with SPL
it is not normally available until board_init_r(). At some point we
will have all the boards consistent and we might be able to change
this by default.
[..]
Regards,
Simon
More information about the U-Boot
mailing list