x86: broadwell: Allow SDRAM init from SPL
authorSimon Glass <sjg@chromium.org>
Fri, 26 Apr 2019 03:58:49 +0000 (21:58 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 8 May 2019 05:02:12 +0000 (13:02 +0800)
commit4eabf1e54b7ad1d1d7511af65570743ed756f85c
treec2eb75c2204851f03b2e612a36b1e96026c5b7f5
parent9f6486bff474a8c30bd257f4fcf24aa05fbae6c5
x86: broadwell: Allow SDRAM init from SPL

At present, for broadwell, SDRAM is always set up in U-Boot proper since
the 64-bit mode (which uses SDRAM init in SPL) is not supported.

Update the code to allow SDRAM init in SPL instead so that U-Boot proper
can be loaded into SDRAM and run from there. This allows U-Boot to be
compressed to reduce space, since it is not necessary to run it directly
from flash. It could later allow us to support 64-bit U-Boot on broadwell.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/broadwell/Makefile
arch/x86/cpu/broadwell/northbridge.c
arch/x86/cpu/broadwell/sdram.c