xilinx pcie: add the high PCIe address bits (physical path)
authorWesley W. Terpstra <wesley@sifive.com>
Fri, 3 Mar 2017 05:22:41 +0000 (21:22 -0800)
committerWesley W. Terpstra <wesley@sifive.com>
Fri, 3 Mar 2017 05:22:41 +0000 (21:22 -0800)
The format is taken from here:
http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/pci/xilinx-pcie.txt

src/main/scala/ip/xilinx/vc707axi_to_pcie_x1/vc707axi_to_pcie_x1.scala

index 2e826db582b0005ac608c11b4d4339e29e554e32..b4fad2127210a05e9cf2a78281ea5e55d2a66582 100644 (file)
@@ -182,7 +182,7 @@ class VC707AXIToPCIeX1(implicit p:Parameters) extends LazyModule
         "interrupt-map-mask" -> Seq(0, 0, 0, 7).flatMap(ofInt),
         "interrupt-map"      -> Seq(1, 2, 3, 4).flatMap(ofMap),
         "ranges"             -> resources("ranges").map { case Binding(_, ResourceAddress(address, _, _, _)) =>
-                                                               ResourceMapping(address, 0) },
+                                                               ResourceMapping(address, BigInt(0x02000000) << 64) },
         "interrupt-controller" -> Seq(ResourceMap(labels = Seq(intc), value = Map(
           "interrupt-controller" -> Nil,
           "#address-cells"       -> ofInt(0),