[U-Boot] [PATCH 17/40] x86: broadwell: Allow SDRAM init from SPL

Simon Glass sjg at chromium.org
Wed Apr 3 02:16:58 UTC 2019


Hi Bin,

On Fri, 22 Feb 2019 at 00:19, Bin Meng <bmeng.cn at gmail.com> wrote:
>
> Hi Simon,
>
> On Wed, Jan 30, 2019 at 12:00 PM Simon Glass <sjg at chromium.org> wrote:
> >
> > At present SDRAM is always set up in U-Boot proper. Allow this to be done
>
> I don't understand. I thought SDRAM was already set up in the U-Boot
> SPL in the 64-bit build. The U-Boot proper needs a MMU table which
> resides in RAM, so without RAM being initialized first there is no way
> for U-Boot proper to run. Am I missing anything?

I'll update this to make it clear it is just for broadwell, which
doesn't support 64-bit.

Regards,
Simon

>
> > 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.
> >
> > Signed-off-by: Simon Glass <sjg at chromium.org>
> > ---
> >
> >  arch/x86/cpu/broadwell/Makefile      |  2 +-
> >  arch/x86/cpu/broadwell/northbridge.c | 93 ++++++++++++++++++++++++++++
> >  arch/x86/cpu/broadwell/sdram.c       | 93 ----------------------------
> >  3 files changed, 94 insertions(+), 94 deletions(-)
> >
>
> Regards,
> Bin


More information about the U-Boot mailing list