commit | 99f762f42840809d19d46a1a7e1fbe1aed4e58fe | [log] [tgz] |
---|---|---|
author | Thierry Reding <treding@nvidia.com> | Fri Mar 15 16:32:33 2019 +0100 |
committer | Tom Rini <trini@konsulko.com> | Tue Apr 23 17:57:23 2019 -0400 |
tree | cdafe7302277ab1454ae4f840efc52c23c0afc3c | |
parent | adf0d99042df7e6c57045c581e2cd4f74ac650dd [diff] |
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>