From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Wed, 1 May 2019 21:03:21 +0800 Subject: [U-Boot] [PATCH v2 17/50] x86: broadwell: Allow SDRAM init from SPL In-Reply-To: <20190426035922.20596-18-sjg@chromium.org> References: <20190426035922.20596-1-sjg@chromium.org> <20190426035922.20596-18-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 Fri, Apr 26, 2019 at 12:00 PM Simon Glass wrote: > > 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 > --- > > Changes in v2: > - Update commit message to make it clear this patch is just for broadwell > - Bring in sdram_console_tx_byte() to allow debugging > > arch/x86/cpu/broadwell/Makefile | 2 +- > arch/x86/cpu/broadwell/northbridge.c | 100 +++++++++++++++++++++++++++ > arch/x86/cpu/broadwell/sdram.c | 93 ------------------------- > 3 files changed, 101 insertions(+), 94 deletions(-) > Reviewed-by: Bin Meng