]> git.baikalelectronics.ru Git - uboot.git/commit
pci: Scale MAX_PCI_REGIONS based on CONFIG_NR_DRAM_BANKS
authorThierry Reding <treding@nvidia.com>
Fri, 15 Mar 2019 15:32:33 +0000 (16:32 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 23 Apr 2019 21:57:23 +0000 (17:57 -0400)
commitd8d79b9e7dbeb3d6cc591b23ca2c0f9b0a6116bb
treecdafe7302277ab1454ae4f840efc52c23c0afc3c
parent7a8e201ce282d1ef53589406c69688989270d8cd
pci: Scale MAX_PCI_REGIONS based on CONFIG_NR_DRAM_BANKS

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@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/pci.h