From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Thu, 10 Oct 2019 17:03:35 +0800 Subject: [U-Boot] [PATCH 088/126] x86: Set the DRAM banks to reflect real location In-Reply-To: <20190925145750.200592-89-sjg@chromium.org> References: <20190925145750.200592-1-sjg@chromium.org> <20190925145750.200592-89-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:59 PM Simon Glass wrote: > > At present with fsp a single DRAM bank is added which extends to the > whole size of memory. However there is typically only 2GB of memory > available below the 4GB boundary, and this is what is used by U-Boot while > running in 32-bit mode. > > Scan the tables to set the banks correct. The first bank is set to memory > below 4GB, and the rest of memory is put into subsequent banks. > > Signed-off-by: Simon Glass > --- > > arch/x86/lib/fsp/fsp_dram.c | 32 +++++++++++++++++++++++++++++++- > 1 file changed, 31 insertions(+), 1 deletion(-) > Reviewed-by: Bin Meng