Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62855
b: refs/heads/master
c: 6c0a11c
h: refs/heads/master
i:
  62853: 7cd4d7c
  62851: 14b2eae
  62847: 738901c
v: v3
  • Loading branch information
Kumar Gala committed Jul 23, 2007
1 parent 91a524b commit 7d9159a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 66afe8780f297edb4c4716bc326e127ec2923422
refs/heads/master: 6c0a11c118471f79795202348fbd0e6580341794
1 change: 1 addition & 0 deletions trunk/arch/powerpc/platforms/85xx/mpc85xx_cds.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,4 +272,5 @@ define_machine(mpc85xx_cds) {
.restart = mpc85xx_restart,
.calibrate_decr = generic_calibrate_decr,
.progress = udbg_progress,
.pcibios_fixup_bus = fsl_pcibios_fixup_bus,
};
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,6 @@ mpc86xx_time_init(void)
return 0;
}


define_machine(mpc86xx_hpcn) {
.name = "MPC86xx HPCN",
.probe = mpc86xx_hpcn_probe,
Expand All @@ -443,4 +442,5 @@ define_machine(mpc86xx_hpcn) {
.time_init = mpc86xx_time_init,
.calibrate_decr = generic_calibrate_decr,
.progress = udbg_progress,
.pcibios_fixup_bus = fsl_pcibios_fixup_bus,
};
14 changes: 14 additions & 0 deletions trunk/arch/powerpc/sysdev/fsl_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,20 @@ int __init fsl_pcie_check_link(struct pci_controller *hose)
return 0;
}

void fsl_pcibios_fixup_bus(struct pci_bus *bus)
{
struct pci_controller *hose = (struct pci_controller *) bus->sysdata;
int i;

/* deal with bogus pci_bus when we don't have anything connected on PCIe */
if (hose->indirect_type & PPC_INDIRECT_TYPE_NO_PCIE_LINK) {
if (bus->parent) {
for (i = 0; i < 4; ++i)
bus->resource[i] = bus->parent->resource[i];
}
}
}

int __init fsl_add_bridge(struct device_node *dev, int is_primary)
{
int len;
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/powerpc/sysdev/fsl_pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ struct ccsr_pci {
};

extern int fsl_add_bridge(struct device_node *dev, int is_primary);
extern void fsl_pcibios_fixup_bus(struct pci_bus *bus);

#endif /* __POWERPC_FSL_PCI_H */
#endif /* __KERNEL__ */

0 comments on commit 7d9159a

Please sign in to comment.