Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81263
b: refs/heads/master
c: f584bc6
h: refs/heads/master
i:
  81261: 6392f37
  81259: f183e8d
  81255: 9e16bce
  81247: f9b6b02
v: v3
  • Loading branch information
Marian Balakowicz authored and Grant Likely committed Jan 18, 2008
1 parent 49b0b90 commit bf5834e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 12 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: a6f024bbbef1f529cd6bee57f3ff576139e6f8d7
refs/heads/master: f584bc65ca9b9a4c21cc17bb01883874e2e6df0a
12 changes: 1 addition & 11 deletions trunk/arch/powerpc/platforms/52xx/lite5200.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,6 @@ static void lite5200_resume_finish(void __iomem *mbar)

static void __init lite5200_setup_arch(void)
{
#ifdef CONFIG_PCI
struct device_node *np;
#endif

if (ppc_md.progress)
ppc_md.progress("lite5200_setup_arch()", 0);

Expand All @@ -154,13 +150,7 @@ static void __init lite5200_setup_arch(void)
lite5200_pm_init();
#endif

#ifdef CONFIG_PCI
np = of_find_node_by_type(NULL, "pci");
if (np) {
mpc52xx_add_bridge(np);
of_node_put(np);
}
#endif
mpc52xx_setup_pci();
}

/*
Expand Down
14 changes: 14 additions & 0 deletions trunk/arch/powerpc/platforms/52xx/mpc52xx_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,3 +406,17 @@ mpc52xx_add_bridge(struct device_node *node)

return 0;
}

void __init mpc52xx_setup_pci(void)
{
struct device_node *pci;

pci = of_find_compatible_node(NULL, NULL, "fsl,mpc5200-pci");
if (!pci)
pci = of_find_compatible_node(NULL, NULL, "mpc5200-pci");
if (!pci)
return;

mpc52xx_add_bridge(pci);
of_node_put(pci);
}
5 changes: 5 additions & 0 deletions trunk/include/asm-powerpc/mpc52xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,12 @@ extern void mpc52xx_declare_of_platform_devices(void);
extern void mpc52xx_init_irq(void);
extern unsigned int mpc52xx_get_irq(void);

#ifdef CONFIG_PCI
extern int __init mpc52xx_add_bridge(struct device_node *node);
extern void __init mpc52xx_setup_pci(void);
#else
static inline void mpc52xx_setup_pci(void) { }
#endif

extern void __init mpc52xx_map_wdt(void);
extern void mpc52xx_restart(char *cmd);
Expand Down

0 comments on commit bf5834e

Please sign in to comment.