Skip to content

Commit

Permalink
[POWERPC] pci32: 4xx embedded platforms want to reassign all PCI reso…
Browse files Browse the repository at this point in the history
…urces

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>
  • Loading branch information
Benjamin Herrenschmidt authored and Josh Boyer committed Dec 23, 2007
1 parent 035ee42 commit 25c24f3
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 1 deletion.
2 changes: 2 additions & 0 deletions arch/powerpc/platforms/40x/ep405.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ static void __init ep405_setup_arch(void)
{
/* Find & init the BCSR CPLD */
ep405_init_bcsr();

ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC;
}

static int __init ep405_probe(void)
Expand Down
3 changes: 3 additions & 0 deletions arch/powerpc/platforms/40x/kilauea.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <asm/udbg.h>
#include <asm/time.h>
#include <asm/uic.h>
#include <asm/pci-bridge.h>

static struct of_device_id kilauea_of_bus[] = {
{ .compatible = "ibm,plb4", },
Expand All @@ -45,6 +46,8 @@ static int __init kilauea_probe(void)
if (!of_flat_dt_is_compatible(root, "amcc,kilauea"))
return 0;

ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC;

return 1;
}

Expand Down
3 changes: 3 additions & 0 deletions arch/powerpc/platforms/40x/walnut.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <asm/udbg.h>
#include <asm/time.h>
#include <asm/uic.h>
#include <asm/pci-bridge.h>

static struct of_device_id walnut_of_bus[] = {
{ .compatible = "ibm,plb3", },
Expand Down Expand Up @@ -51,6 +52,8 @@ static int __init walnut_probe(void)
if (!of_flat_dt_is_compatible(root, "ibm,walnut"))
return 0;

ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC;

return 1;
}

Expand Down
4 changes: 4 additions & 0 deletions arch/powerpc/platforms/44x/bamboo.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#include <asm/udbg.h>
#include <asm/time.h>
#include <asm/uic.h>
#include <asm/pci-bridge.h>

#include "44x.h"

static struct of_device_id bamboo_of_bus[] = {
Expand Down Expand Up @@ -48,6 +50,8 @@ static int __init bamboo_probe(void)
if (!of_flat_dt_is_compatible(root, "amcc,bamboo"))
return 0;

ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC;

return 1;
}

Expand Down
3 changes: 3 additions & 0 deletions arch/powerpc/platforms/44x/ebony.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <asm/udbg.h>
#include <asm/time.h>
#include <asm/uic.h>
#include <asm/pci-bridge.h>

#include "44x.h"

Expand Down Expand Up @@ -55,6 +56,8 @@ static int __init ebony_probe(void)
if (!of_flat_dt_is_compatible(root, "ibm,ebony"))
return 0;

ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC;

return 1;
}

Expand Down
3 changes: 3 additions & 0 deletions arch/powerpc/platforms/44x/katmai.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <asm/udbg.h>
#include <asm/time.h>
#include <asm/uic.h>
#include <asm/pci-bridge.h>

#include "44x.h"

Expand Down Expand Up @@ -49,6 +50,8 @@ static int __init katmai_probe(void)
if (!of_flat_dt_is_compatible(root, "amcc,katmai"))
return 0;

ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC;

return 1;
}

Expand Down
5 changes: 4 additions & 1 deletion arch/powerpc/platforms/44x/sequoia.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
#include <asm/udbg.h>
#include <asm/time.h>
#include <asm/uic.h>
#include "44x.h"
#include <asm/pci-bridge.h>


static struct of_device_id sequoia_of_bus[] = {
{ .compatible = "ibm,plb4", },
Expand All @@ -48,6 +49,8 @@ static int __init sequoia_probe(void)
if (!of_flat_dt_is_compatible(root, "amcc,sequoia"))
return 0;

ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC;

return 1;
}

Expand Down
2 changes: 2 additions & 0 deletions arch/powerpc/platforms/44x/taishan.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ static int __init taishan_probe(void)
if (!of_flat_dt_is_compatible(root, "amcc,taishan"))
return 0;

ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC;

return 1;
}

Expand Down

0 comments on commit 25c24f3

Please sign in to comment.