diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2012-04-07 17:10:17 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2012-07-18 16:39:11 -0400 |
commit | 129622672d70711c6c844fb529381ff0dad9085a (patch) | |
tree | ea05d97ec3a457814e282c5cf8423c9e30994cb9 /arch/tile/kernel/setup.c | |
parent | bce5bbbb23f780a792be7e594af7cd4b4aae1cd4 (diff) |
arch/tile: tilegx PCI root complex support
This change implements PCIe root complex support for tilegx using
the kernel support layer for accessing the TRIO hardware shim.
Reviewed-by: Bjorn Helgaas <bhelgaas@google.com> [changes in 07487f3]
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/kernel/setup.c')
-rw-r--r-- | arch/tile/kernel/setup.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/tile/kernel/setup.c b/arch/tile/kernel/setup.c index dd87f3420390..6d179dfcc15e 100644 --- a/arch/tile/kernel/setup.c +++ b/arch/tile/kernel/setup.c | |||
@@ -1344,6 +1344,7 @@ void __init setup_arch(char **cmdline_p) | |||
1344 | 1344 | ||
1345 | 1345 | ||
1346 | #ifdef CONFIG_PCI | 1346 | #ifdef CONFIG_PCI |
1347 | #if !defined (__tilegx__) | ||
1347 | /* | 1348 | /* |
1348 | * Initialize the PCI structures. This is done before memory | 1349 | * Initialize the PCI structures. This is done before memory |
1349 | * setup so that we know whether or not a pci_reserve region | 1350 | * setup so that we know whether or not a pci_reserve region |
@@ -1351,6 +1352,7 @@ void __init setup_arch(char **cmdline_p) | |||
1351 | */ | 1352 | */ |
1352 | if (tile_pci_init() == 0) | 1353 | if (tile_pci_init() == 0) |
1353 | pci_reserve_mb = 0; | 1354 | pci_reserve_mb = 0; |
1355 | #endif | ||
1354 | 1356 | ||
1355 | /* PCI systems reserve a region just below 4GB for mapping iomem. */ | 1357 | /* PCI systems reserve a region just below 4GB for mapping iomem. */ |
1356 | pci_reserve_end_pfn = (1 << (32 - PAGE_SHIFT)); | 1358 | pci_reserve_end_pfn = (1 << (32 - PAGE_SHIFT)); |
@@ -1379,6 +1381,10 @@ void __init setup_arch(char **cmdline_p) | |||
1379 | setup_cpu(1); | 1381 | setup_cpu(1); |
1380 | setup_clock(); | 1382 | setup_clock(); |
1381 | load_hv_initrd(); | 1383 | load_hv_initrd(); |
1384 | |||
1385 | #if defined(CONFIG_PCI) && defined (__tilegx__) | ||
1386 | tile_pci_init(); | ||
1387 | #endif | ||
1382 | } | 1388 | } |
1383 | 1389 | ||
1384 | 1390 | ||