Move board_init_f_mem() into a common location
authorSimon Glass <sjg@chromium.org>
Mon, 19 Oct 2015 12:49:56 +0000 (06:49 -0600)
committerTom Rini <trini@konsulko.com>
Sat, 24 Oct 2015 17:50:34 +0000 (13:50 -0400)
commitaf6bbd4daefc314cc422381580f11fabc9cb222f
treea26d2176c9b16f9654107af728b89d0404bcc513
parent47b71644500f7dff768254570ff62c6e985e4bc3
Move board_init_f_mem() into a common location

This function will be used by both SPL and U-Boot proper. So move it into
a common place. Also change the #ifdef so that the early malloc() area is
not set up in SPL if CONFIG_SYS_SPL_MALLOC_START is defined. In that case
it would never actually be used, and just chews up stack space.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/Makefile
common/board_f.c
common/init/Makefile [new file with mode: 0644]
common/init/board_init.c [new file with mode: 0644]
scripts/Makefile.spl