Commit 08c47382 authored by Oliver O'Halloran's avatar Oliver O'Halloran Committed by Michael Ellerman

powerpc/embedded6xx/holly: Move PHB discovery

Signed-off-by: default avatarOliver O'Halloran <oohall@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201103043523.916109-13-oohall@gmail.com
parent 407d418f
...@@ -108,15 +108,13 @@ static void holly_remap_bridge(void) ...@@ -108,15 +108,13 @@ static void holly_remap_bridge(void)
tsi108_write_reg(TSI108_PCI_P2O_BAR2, 0x0); tsi108_write_reg(TSI108_PCI_P2O_BAR2, 0x0);
} }
static void __init holly_setup_arch(void) static void __init holly_init_pci(void)
{ {
struct device_node *np; struct device_node *np;
if (ppc_md.progress) if (ppc_md.progress)
ppc_md.progress("holly_setup_arch():set_bridge", 0); ppc_md.progress("holly_setup_arch():set_bridge", 0);
tsi108_csr_vir_base = get_vir_csrbase();
/* setup PCI host bridge */ /* setup PCI host bridge */
holly_remap_bridge(); holly_remap_bridge();
...@@ -127,6 +125,11 @@ static void __init holly_setup_arch(void) ...@@ -127,6 +125,11 @@ static void __init holly_setup_arch(void)
ppc_md.pci_exclude_device = holly_exclude_device; ppc_md.pci_exclude_device = holly_exclude_device;
if (ppc_md.progress) if (ppc_md.progress)
ppc_md.progress("tsi108: resources set", 0x100); ppc_md.progress("tsi108: resources set", 0x100);
}
static void __init holly_setup_arch(void)
{
tsi108_csr_vir_base = get_vir_csrbase();
printk(KERN_INFO "PPC750GX/CL Platform\n"); printk(KERN_INFO "PPC750GX/CL Platform\n");
} }
...@@ -259,6 +262,7 @@ define_machine(holly){ ...@@ -259,6 +262,7 @@ define_machine(holly){
.name = "PPC750 GX/CL TSI", .name = "PPC750 GX/CL TSI",
.probe = holly_probe, .probe = holly_probe,
.setup_arch = holly_setup_arch, .setup_arch = holly_setup_arch,
.discover_phbs = holly_init_pci,
.init_IRQ = holly_init_IRQ, .init_IRQ = holly_init_IRQ,
.show_cpuinfo = holly_show_cpuinfo, .show_cpuinfo = holly_show_cpuinfo,
.get_irq = mpic_get_irq, .get_irq = mpic_get_irq,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment