Commit 748770ae authored by Oliver O'Halloran's avatar Oliver O'Halloran Committed by Michael Ellerman

powerpc/embedded6xx/mpc7448: 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-15-oohall@gmail.com
parent daa6c247
...@@ -58,16 +58,14 @@ int mpc7448_hpc2_exclude_device(struct pci_controller *hose, ...@@ -58,16 +58,14 @@ int mpc7448_hpc2_exclude_device(struct pci_controller *hose,
return PCIBIOS_SUCCESSFUL; return PCIBIOS_SUCCESSFUL;
} }
static void __init mpc7448_hpc2_setup_arch(void) static void __init mpc7448_hpc2_setup_pci(void)
{ {
#ifdef CONFIG_PCI
struct device_node *np; struct device_node *np;
if (ppc_md.progress) if (ppc_md.progress)
ppc_md.progress("mpc7448_hpc2_setup_arch():set_bridge", 0); ppc_md.progress("mpc7448_hpc2_setup_pci():set_bridge", 0);
tsi108_csr_vir_base = get_vir_csrbase();
/* setup PCI host bridge */ /* setup PCI host bridge */
#ifdef CONFIG_PCI
for_each_compatible_node(np, "pci", "tsi108-pci") for_each_compatible_node(np, "pci", "tsi108-pci")
tsi108_setup_pci(np, MPC7448HPC2_PCI_CFG_PHYS, 0); tsi108_setup_pci(np, MPC7448HPC2_PCI_CFG_PHYS, 0);
...@@ -75,6 +73,11 @@ static void __init mpc7448_hpc2_setup_arch(void) ...@@ -75,6 +73,11 @@ static void __init mpc7448_hpc2_setup_arch(void)
if (ppc_md.progress) if (ppc_md.progress)
ppc_md.progress("tsi108: resources set", 0x100); ppc_md.progress("tsi108: resources set", 0x100);
#endif #endif
}
static void __init mpc7448_hpc2_setup_arch(void)
{
tsi108_csr_vir_base = get_vir_csrbase();
printk(KERN_INFO "MPC7448HPC2 (TAIGA) Platform\n"); printk(KERN_INFO "MPC7448HPC2 (TAIGA) Platform\n");
printk(KERN_INFO printk(KERN_INFO
...@@ -181,6 +184,7 @@ define_machine(mpc7448_hpc2){ ...@@ -181,6 +184,7 @@ define_machine(mpc7448_hpc2){
.name = "MPC7448 HPC2", .name = "MPC7448 HPC2",
.probe = mpc7448_hpc2_probe, .probe = mpc7448_hpc2_probe,
.setup_arch = mpc7448_hpc2_setup_arch, .setup_arch = mpc7448_hpc2_setup_arch,
.discover_phbs = mpc7448_hpc2_setup_pci,
.init_IRQ = mpc7448_hpc2_init_IRQ, .init_IRQ = mpc7448_hpc2_init_IRQ,
.show_cpuinfo = mpc7448_hpc2_show_cpuinfo, .show_cpuinfo = mpc7448_hpc2_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