public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [PATCH 5/6] arm: highbank: Do DRAM init from DT
Date: Tue, 20 Apr 2021 10:21:03 -0400	[thread overview]
Message-ID: <20210420142103.GH1310@bill-the-cat> (raw)
In-Reply-To: <20210412000455.12996-6-andre.przywara@arm.com>

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 <andre.przywara@arm.com>

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: <https://lists.denx.de/pipermail/u-boot/attachments/20210420/4af42c8e/attachment.sig>

  reply	other threads:[~2021-04-20 14:21 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-12  0:04 [PATCH 0/6] highbank: Update to driver model Andre Przywara
2021-04-12  0:04 ` [PATCH 1/6] arm: highbank: Limit FDT and initrd load addresses Andre Przywara
2021-04-12  0:29   ` Tom Rini
2021-04-20 14:20   ` Tom Rini
2021-04-12  0:04 ` [PATCH 2/6] arm: highbank: Enable OF_CONTROL Andre Przywara
2021-04-20 14:20   ` Tom Rini
2021-04-12  0:04 ` [PATCH 3/6] net: calxedagmac: Convert to DM_ETH Andre Przywara
2021-04-15  1:53   ` Ramon Fried
2021-04-20 14:20   ` Tom Rini
2021-04-12  0:04 ` [PATCH 4/6] arm: highbank: Remove artificial SDRAM size Andre Przywara
2021-04-20 14:20   ` Tom Rini
2021-04-12  0:04 ` [PATCH 5/6] arm: highbank: Do DRAM init from DT Andre Przywara
2021-04-20 14:21   ` Tom Rini [this message]
2021-04-12  0:04 ` [PATCH 6/6] arm: highbank: Update maintainership Andre Przywara
2021-04-20 14:21   ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210420142103.GH1310@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox