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

Simon Glass
2019-03-22T07:53:24Z

On Fri, 15 Mar 2019 at 23:32, Thierry Reding <thierry.reding@gmail.com> wrote:
>
> From: Thierry Reding <treding@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@nvidia.com>
> ---
> include/pci.h | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>