On 28 September 2017 at 09:42, York Sun <york....@nxp.com> wrote: > Commit 15eb1d43bf47 ("spl: reorder the assignment of board info to > global data") intended to move assignment of board info earlier, > into board_init_r(). However, function preload_console_init() is > called either from spl_board_init() or from board_init_f(). For the > latter case, the board info assignment is much earlier than proposed > board_init_r(). Create a new function to fill gd->bd and call this > function when needed. > > Signed-off-by: York Sun <york....@nxp.com> > CC: Lokesh Vutla <lokeshvu...@ti.com> > CC: Ravi Babu <ravib...@ti.com> > CC: Lukasz Majewski <lu...@denx.de> > CC: Tom Rini <tr...@konsulko.com> > > --- > > Changes in v3: > Create new function to fill gd->bd for spl. > Use git commit description style when mentioning previous commit. > > Changes in v2: > New patch to fix spl after rebasing to latest master. > > arch/arm/cpu/armv8/fsl-layerscape/spl.c | 1 + > common/spl/spl.c | 10 +++++++++- > include/spl.h | 1 + > 3 files changed, 11 insertions(+), 1 deletion(-)
Reviewed-by: Simon Glass <s...@chromium.org> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot