Skip to content

Commit

Permalink
powerpc/chrp: Move PHB discovery
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201103043523.916109-12-oohall@gmail.com
  • Loading branch information
Oliver O'Halloran authored and Michael Ellerman committed Feb 8, 2021
1 parent 053d58c commit 407d418
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
8 changes: 8 additions & 0 deletions arch/powerpc/platforms/chrp/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,14 @@ chrp_find_bridges(void)
}
}
of_node_put(root);

/*
* "Temporary" fixes for PCI devices.
* -- Geert
*/
hydra_init(); /* Mac I/O */

pci_create_OF_bus_map();
}

/* SL82C105 IDE Control/Status Register */
Expand Down
12 changes: 1 addition & 11 deletions arch/powerpc/platforms/chrp/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,22 +334,11 @@ static void __init chrp_setup_arch(void)
/* On pegasos, enable the L2 cache if not already done by OF */
pegasos_set_l2cr();

/* Lookup PCI host bridges */
chrp_find_bridges();

/*
* Temporary fixes for PCI devices.
* -- Geert
*/
hydra_init(); /* Mac I/O */

/*
* Fix the Super I/O configuration
*/
sio_init();

pci_create_OF_bus_map();

/*
* Print the banner, then scroll down so boot progress
* can be printed. -- Cort
Expand Down Expand Up @@ -582,6 +571,7 @@ define_machine(chrp) {
.name = "CHRP",
.probe = chrp_probe,
.setup_arch = chrp_setup_arch,
.discover_phbs = chrp_find_bridges,
.init = chrp_init2,
.show_cpuinfo = chrp_show_cpuinfo,
.init_IRQ = chrp_init_IRQ,
Expand Down

0 comments on commit 407d418

Please sign in to comment.