From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 20 Apr 2021 10:21:03 -0400 Subject: [PATCH 5/6] arm: highbank: Do DRAM init from DT In-Reply-To: <20210412000455.12996-6-andre.przywara@arm.com> References: <20210412000455.12996-1-andre.przywara@arm.com> <20210412000455.12996-6-andre.przywara@arm.com> Message-ID: <20210420142103.GH1310@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Apr 12, 2021 at 01:04:54AM +0100, Andre Przywara wrote: > So far U-Boot was hard coding a (surely sufficient) memory size of 512 > MB, even though all machines out there have at least 4GB of DRAM. > Since U-Boot uses its memory knowledge to populate the EFI memory map, > we are missing out here, at best losing everything beyond 4GB on Midway > boxes (which typically come with 8GB of DRAM). > > Since the management processor populated the DT memory node already with > the detected DRAM size and configuration, we use that to populate > U-Boot's memory bank information, which is the base for the UEFI memory > map. > This finally allows us to get rid of the NR_DRAM_BANKS=0 hack, that we > had in place to avoid U-Boot messing up the DT memory node before > loading the kernel. > > Also, to cover the whole of memory, we need to enable PHYS_64BIT. > > Signed-off-by: Andre Przywara Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: