mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
PCI: xgene: Add support for a 64-bit prefetchable memory window
X-Gene PCIe controller has registers to support multiple memory ranges. Add support for a 64-bit prefetchable memory window. [bhelgaas: changelog] Signed-off-by: Duc Dang <dhdang@apm.com> Signed-off-by: Tanmay Inamdar <tinamdar@apm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
parent
80bb3eda74
commit
8ef54f27f6
1 changed files with 10 additions and 2 deletions
|
@ -321,8 +321,16 @@ static int xgene_pcie_map_ranges(struct xgene_pcie_port *port,
|
|||
return ret;
|
||||
break;
|
||||
case IORESOURCE_MEM:
|
||||
xgene_pcie_setup_ob_reg(port, res, OMR1BARL, res->start,
|
||||
res->start - window->offset);
|
||||
if (res->flags & IORESOURCE_PREFETCH)
|
||||
xgene_pcie_setup_ob_reg(port, res, OMR2BARL,
|
||||
res->start,
|
||||
res->start -
|
||||
window->offset);
|
||||
else
|
||||
xgene_pcie_setup_ob_reg(port, res, OMR1BARL,
|
||||
res->start,
|
||||
res->start -
|
||||
window->offset);
|
||||
break;
|
||||
case IORESOURCE_BUS:
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue