[U-Boot] [U-Boot, 2/2] pci: Scale MAX_PCI_REGIONS based on CONFIG_NR_DRAM_BANKS

Tom Rini trini at konsulko.com
Wed Apr 24 13:27:39 UTC 2019


On Fri, Mar 15, 2019 at 04:32:33PM +0100, Thierry Reding wrote:

> From: Thierry Reding <treding at nvidia.com>
> 
> If a platform defines CONFIG_NR_DRAM_BANKS, each DRAM bank will be added
> as a PCI region. The number of MAX_PCI_REGIONS therefore needs to scale
> with the number of DRAM banks, otherwise we will end up with too little
> space in the hose->regions array to store all system memory regions.
> 
> Signed-off-by: Thierry Reding <treding at nvidia.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190424/7eb3c9b6/attachment.sig>


More information about the U-Boot mailing list