aboutsummaryrefslogtreecommitdiffstats
path: root/arch/tile/kernel/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/tile/kernel/pci.c')
-rw-r--r--arch/tile/kernel/pci.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/tile/kernel/pci.c b/arch/tile/kernel/pci.c
index 1dae3b2183a0..af75835d6ed2 100644
--- a/arch/tile/kernel/pci.c
+++ b/arch/tile/kernel/pci.c
@@ -51,6 +51,8 @@
51 * 51 *
52 */ 52 */
53 53
54static int pci_probe = 1;
55
54/* 56/*
55 * This flag tells if the platform is TILEmpower that needs 57 * This flag tells if the platform is TILEmpower that needs
56 * special configuration for the PLX switch chip. 58 * special configuration for the PLX switch chip.
@@ -143,6 +145,11 @@ int __init tile_pci_init(void)
143{ 145{
144 int i; 146 int i;
145 147
148 if (!pci_probe) {
149 pr_info("PCI: disabled by boot argument\n");
150 return 0;
151 }
152
146 pr_info("PCI: Searching for controllers...\n"); 153 pr_info("PCI: Searching for controllers...\n");
147 154
148 /* Re-init number of PCIe controllers to support hot-plug feature. */ 155 /* Re-init number of PCIe controllers to support hot-plug feature. */
@@ -378,6 +385,16 @@ void pcibios_set_master(struct pci_dev *dev)
378 /* No special bus mastering setup handling. */ 385 /* No special bus mastering setup handling. */
379} 386}
380 387
388/* Process any "pci=" kernel boot arguments. */
389char * __init pcibios_setup(char *str)
390{
391 if (!strcmp(str, "off")) {
392 pci_probe = 0;
393 return NULL;
394 }
395 return str;
396}
397
381/* 398/*
382 * Enable memory and/or address decoding, as appropriate, for the 399 * Enable memory and/or address decoding, as appropriate, for the
383 * device described by the 'dev' struct. 400 * device described by the 'dev' struct.