From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Wed, 2 Oct 2019 21:58:21 +0800 Subject: [U-Boot] [PATCH v2 10/38] spl: Set up the bloblist in board_init_r() In-Reply-To: <20190925141147.191166-11-sjg@chromium.org> References: <20190925141147.191166-1-sjg@chromium.org> <20190925141147.191166-11-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Sep 25, 2019 at 10:12 PM Simon Glass wrote: > > At present the bloblist is set up in spl_common_init() which can be called > from spl_early_init(), i.e. before SDRAM is ready. This prevents the > bloblist from being located in SDRAM, which is useful on some platforms > where SRAM is inaccessible after U-Boot relocates (e.g. x86 CAR region). > > It doesn't serve much purpose to have the bloblist available early, since > very little is known about the platform then, and the handoff info is > written when SPL is about to jump to U-Boot. > > Move the code to board_init_r() to avoid any restrictions. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > common/spl/spl.c | 35 ++++++++++++++++++----------------- > 1 file changed, 18 insertions(+), 17 deletions(-) > Reviewed-by: Bin Meng