diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2013-08-05 15:02:03 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2013-08-05 16:12:57 -0400 |
commit | 2be705523fb3dd716d76ed371eaadaced55fe4a3 (patch) | |
tree | 6dac97616c41e4c4fcfff1b0268ee31953229376 | |
parent | 523c178edf45fe04d61aa99ac496bc7494b99810 (diff) |
tile PCI RC: support pci=off boot arg for tilepro
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
-rw-r--r-- | arch/tile/kernel/pci.c | 17 |
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 | ||
54 | static 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. */ | ||
389 | char * __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. |