PCI: endpoint: Clean up hardware description for BARs
[linux-2.6-microblaze.git] / drivers / pci / controller / dwc / pcie-tegra194.c
index 7afa9e9..1f7b662 100644 (file)
@@ -2007,9 +2007,13 @@ static const struct pci_epc_features tegra_pcie_epc_features = {
        .core_init_notifier = true,
        .msi_capable = false,
        .msix_capable = false,
-       .reserved_bar = 1 << BAR_2 | 1 << BAR_3 | 1 << BAR_4 | 1 << BAR_5,
-       .bar_fixed_64bit = 1 << BAR_0,
-       .bar_fixed_size[0] = SZ_1M,
+       .bar[BAR_0] = { .type = BAR_FIXED, .fixed_size = SZ_1M,
+                       .only_64bit = true, },
+       .bar[BAR_1] = { .type = BAR_RESERVED, },
+       .bar[BAR_2] = { .type = BAR_RESERVED, },
+       .bar[BAR_3] = { .type = BAR_RESERVED, },
+       .bar[BAR_4] = { .type = BAR_RESERVED, },
+       .bar[BAR_5] = { .type = BAR_RESERVED, },
 };
 
 static const struct pci_epc_features*