diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2007-12-20 23:39:37 -0500 |
---|---|---|
committer | Josh Boyer <jwboyer@linux.vnet.ibm.com> | 2007-12-23 14:18:59 -0500 |
commit | 25c24f3dc7f01491ea0d92a1de2bb84094b27e21 (patch) | |
tree | e714a8ad0173057343ef4f87c870ea46a1ef3990 | |
parent | 035ee4282dc5ad19f0141821511346b8de1839af (diff) |
[POWERPC] pci32: 4xx embedded platforms want to reassign all PCI resources
This makes 4xx embedded platforms re-assign all PCI resources as we
pretty much never care about what the various firmwares have done on
these, it's generally not compatible with the way the kernel will map
the bridges.
We still need to also enable bus renumbering on some of them, but I
will do that from a separate patch after I've fixed 4xx PCIe to handle
all bus numbers.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
-rw-r--r-- | arch/powerpc/platforms/40x/ep405.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/40x/kilauea.c | 3 | ||||
-rw-r--r-- | arch/powerpc/platforms/40x/walnut.c | 3 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/bamboo.c | 4 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/ebony.c | 3 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/katmai.c | 3 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/sequoia.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/taishan.c | 2 |
8 files changed, 24 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/40x/ep405.c b/arch/powerpc/platforms/40x/ep405.c index ba84a41e63e6..759d937cdb65 100644 --- a/arch/powerpc/platforms/40x/ep405.c +++ b/arch/powerpc/platforms/40x/ep405.c | |||
@@ -101,6 +101,8 @@ static void __init ep405_setup_arch(void) | |||
101 | { | 101 | { |
102 | /* Find & init the BCSR CPLD */ | 102 | /* Find & init the BCSR CPLD */ |
103 | ep405_init_bcsr(); | 103 | ep405_init_bcsr(); |
104 | |||
105 | ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC; | ||
104 | } | 106 | } |
105 | 107 | ||
106 | static int __init ep405_probe(void) | 108 | static int __init ep405_probe(void) |
diff --git a/arch/powerpc/platforms/40x/kilauea.c b/arch/powerpc/platforms/40x/kilauea.c index 1bffdbdd21b1..4470940065b7 100644 --- a/arch/powerpc/platforms/40x/kilauea.c +++ b/arch/powerpc/platforms/40x/kilauea.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <asm/udbg.h> | 19 | #include <asm/udbg.h> |
20 | #include <asm/time.h> | 20 | #include <asm/time.h> |
21 | #include <asm/uic.h> | 21 | #include <asm/uic.h> |
22 | #include <asm/pci-bridge.h> | ||
22 | 23 | ||
23 | static struct of_device_id kilauea_of_bus[] = { | 24 | static struct of_device_id kilauea_of_bus[] = { |
24 | { .compatible = "ibm,plb4", }, | 25 | { .compatible = "ibm,plb4", }, |
@@ -45,6 +46,8 @@ static int __init kilauea_probe(void) | |||
45 | if (!of_flat_dt_is_compatible(root, "amcc,kilauea")) | 46 | if (!of_flat_dt_is_compatible(root, "amcc,kilauea")) |
46 | return 0; | 47 | return 0; |
47 | 48 | ||
49 | ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC; | ||
50 | |||
48 | return 1; | 51 | return 1; |
49 | } | 52 | } |
50 | 53 | ||
diff --git a/arch/powerpc/platforms/40x/walnut.c b/arch/powerpc/platforms/40x/walnut.c index ff6db2431798..aea97017a7d4 100644 --- a/arch/powerpc/platforms/40x/walnut.c +++ b/arch/powerpc/platforms/40x/walnut.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <asm/udbg.h> | 24 | #include <asm/udbg.h> |
25 | #include <asm/time.h> | 25 | #include <asm/time.h> |
26 | #include <asm/uic.h> | 26 | #include <asm/uic.h> |
27 | #include <asm/pci-bridge.h> | ||
27 | 28 | ||
28 | static struct of_device_id walnut_of_bus[] = { | 29 | static struct of_device_id walnut_of_bus[] = { |
29 | { .compatible = "ibm,plb3", }, | 30 | { .compatible = "ibm,plb3", }, |
@@ -51,6 +52,8 @@ static int __init walnut_probe(void) | |||
51 | if (!of_flat_dt_is_compatible(root, "ibm,walnut")) | 52 | if (!of_flat_dt_is_compatible(root, "ibm,walnut")) |
52 | return 0; | 53 | return 0; |
53 | 54 | ||
55 | ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC; | ||
56 | |||
54 | return 1; | 57 | return 1; |
55 | } | 58 | } |
56 | 59 | ||
diff --git a/arch/powerpc/platforms/44x/bamboo.c b/arch/powerpc/platforms/44x/bamboo.c index be23f112184f..553c9f18aa77 100644 --- a/arch/powerpc/platforms/44x/bamboo.c +++ b/arch/powerpc/platforms/44x/bamboo.c | |||
@@ -21,6 +21,8 @@ | |||
21 | #include <asm/udbg.h> | 21 | #include <asm/udbg.h> |
22 | #include <asm/time.h> | 22 | #include <asm/time.h> |
23 | #include <asm/uic.h> | 23 | #include <asm/uic.h> |
24 | #include <asm/pci-bridge.h> | ||
25 | |||
24 | #include "44x.h" | 26 | #include "44x.h" |
25 | 27 | ||
26 | static struct of_device_id bamboo_of_bus[] = { | 28 | static struct of_device_id bamboo_of_bus[] = { |
@@ -48,6 +50,8 @@ static int __init bamboo_probe(void) | |||
48 | if (!of_flat_dt_is_compatible(root, "amcc,bamboo")) | 50 | if (!of_flat_dt_is_compatible(root, "amcc,bamboo")) |
49 | return 0; | 51 | return 0; |
50 | 52 | ||
53 | ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC; | ||
54 | |||
51 | return 1; | 55 | return 1; |
52 | } | 56 | } |
53 | 57 | ||
diff --git a/arch/powerpc/platforms/44x/ebony.c b/arch/powerpc/platforms/44x/ebony.c index 6cd3476767cc..262f300cc10d 100644 --- a/arch/powerpc/platforms/44x/ebony.c +++ b/arch/powerpc/platforms/44x/ebony.c | |||
@@ -24,6 +24,7 @@ | |||
24 | #include <asm/udbg.h> | 24 | #include <asm/udbg.h> |
25 | #include <asm/time.h> | 25 | #include <asm/time.h> |
26 | #include <asm/uic.h> | 26 | #include <asm/uic.h> |
27 | #include <asm/pci-bridge.h> | ||
27 | 28 | ||
28 | #include "44x.h" | 29 | #include "44x.h" |
29 | 30 | ||
@@ -55,6 +56,8 @@ static int __init ebony_probe(void) | |||
55 | if (!of_flat_dt_is_compatible(root, "ibm,ebony")) | 56 | if (!of_flat_dt_is_compatible(root, "ibm,ebony")) |
56 | return 0; | 57 | return 0; |
57 | 58 | ||
59 | ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC; | ||
60 | |||
58 | return 1; | 61 | return 1; |
59 | } | 62 | } |
60 | 63 | ||
diff --git a/arch/powerpc/platforms/44x/katmai.c b/arch/powerpc/platforms/44x/katmai.c index fd737d10f6e4..158ca0558a00 100644 --- a/arch/powerpc/platforms/44x/katmai.c +++ b/arch/powerpc/platforms/44x/katmai.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <asm/udbg.h> | 21 | #include <asm/udbg.h> |
22 | #include <asm/time.h> | 22 | #include <asm/time.h> |
23 | #include <asm/uic.h> | 23 | #include <asm/uic.h> |
24 | #include <asm/pci-bridge.h> | ||
24 | 25 | ||
25 | #include "44x.h" | 26 | #include "44x.h" |
26 | 27 | ||
@@ -49,6 +50,8 @@ static int __init katmai_probe(void) | |||
49 | if (!of_flat_dt_is_compatible(root, "amcc,katmai")) | 50 | if (!of_flat_dt_is_compatible(root, "amcc,katmai")) |
50 | return 0; | 51 | return 0; |
51 | 52 | ||
53 | ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC; | ||
54 | |||
52 | return 1; | 55 | return 1; |
53 | } | 56 | } |
54 | 57 | ||
diff --git a/arch/powerpc/platforms/44x/sequoia.c b/arch/powerpc/platforms/44x/sequoia.c index 21a9dd14f297..5185b5cb48c9 100644 --- a/arch/powerpc/platforms/44x/sequoia.c +++ b/arch/powerpc/platforms/44x/sequoia.c | |||
@@ -21,7 +21,8 @@ | |||
21 | #include <asm/udbg.h> | 21 | #include <asm/udbg.h> |
22 | #include <asm/time.h> | 22 | #include <asm/time.h> |
23 | #include <asm/uic.h> | 23 | #include <asm/uic.h> |
24 | #include "44x.h" | 24 | #include <asm/pci-bridge.h> |
25 | |||
25 | 26 | ||
26 | static struct of_device_id sequoia_of_bus[] = { | 27 | static struct of_device_id sequoia_of_bus[] = { |
27 | { .compatible = "ibm,plb4", }, | 28 | { .compatible = "ibm,plb4", }, |
@@ -48,6 +49,8 @@ static int __init sequoia_probe(void) | |||
48 | if (!of_flat_dt_is_compatible(root, "amcc,sequoia")) | 49 | if (!of_flat_dt_is_compatible(root, "amcc,sequoia")) |
49 | return 0; | 50 | return 0; |
50 | 51 | ||
52 | ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC; | ||
53 | |||
51 | return 1; | 54 | return 1; |
52 | } | 55 | } |
53 | 56 | ||
diff --git a/arch/powerpc/platforms/44x/taishan.c b/arch/powerpc/platforms/44x/taishan.c index e3b7c7023336..ca71666bde27 100644 --- a/arch/powerpc/platforms/44x/taishan.c +++ b/arch/powerpc/platforms/44x/taishan.c | |||
@@ -60,6 +60,8 @@ static int __init taishan_probe(void) | |||
60 | if (!of_flat_dt_is_compatible(root, "amcc,taishan")) | 60 | if (!of_flat_dt_is_compatible(root, "amcc,taishan")) |
61 | return 0; | 61 | return 0; |
62 | 62 | ||
63 | ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC; | ||
64 | |||
63 | return 1; | 65 | return 1; |
64 | } | 66 | } |
65 | 67 | ||