diff options
Diffstat (limited to 'arch/powerpc/platforms/85xx/mpc85xx_rdb.c')
| -rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_rdb.c | 41 | 
1 files changed, 14 insertions, 27 deletions
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c index 53b6fb0a3d5..e358bed66d0 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c @@ -1,7 +1,7 @@  /*   * MPC85xx RDB Board Setup   * - * Copyright 2009,2012 Freescale Semiconductor Inc. + * Copyright 2009,2012-2013 Freescale Semiconductor Inc.   *   * This program is free software; you can redistribute  it and/or modify it   * under  the terms of  the GNU General  Public License as published by the @@ -86,10 +86,6 @@ void __init mpc85xx_rdb_pic_init(void)   */  static void __init mpc85xx_rdb_setup_arch(void)  { -#ifdef CONFIG_QUICC_ENGINE -	struct device_node *np; -#endif -  	if (ppc_md.progress)  		ppc_md.progress("mpc85xx_rdb_setup_arch()", 0); @@ -98,28 +94,11 @@ static void __init mpc85xx_rdb_setup_arch(void)  	fsl_pci_assign_primary();  #ifdef CONFIG_QUICC_ENGINE -	np = of_find_compatible_node(NULL, NULL, "fsl,qe"); -	if (!np) { -		pr_err("%s: Could not find Quicc Engine node\n", __func__); -		goto qe_fail; -	} - -	qe_reset(); -	of_node_put(np); - -	np = of_find_node_by_name(NULL, "par_io"); -	if (np) { -		struct device_node *ucc; - -		par_io_init(np); -		of_node_put(np); - -		for_each_node_by_name(ucc, "ucc") -			par_io_of_config(ucc); - -	} +	mpc85xx_qe_init(); +	mpc85xx_qe_par_io_init();  #if defined(CONFIG_UCC_GETH) || defined(CONFIG_SERIAL_QE)  	if (machine_is(p1025_rdb)) { +		struct device_node *np;  		struct ccsr_guts __iomem *guts; @@ -148,8 +127,6 @@ static void __init mpc85xx_rdb_setup_arch(void)  	}  #endif - -qe_fail:  #endif	/* CONFIG_QUICC_ENGINE */  	printk(KERN_INFO "MPC85xx RDB board from Freescale Semiconductor\n"); @@ -254,6 +231,7 @@ define_machine(p2020_rdb) {  	.init_IRQ		= mpc85xx_rdb_pic_init,  #ifdef CONFIG_PCI  	.pcibios_fixup_bus	= fsl_pcibios_fixup_bus, +	.pcibios_fixup_phb      = fsl_pcibios_fixup_phb,  #endif  	.get_irq		= mpic_get_irq,  	.restart		= fsl_rstcr_restart, @@ -268,6 +246,7 @@ define_machine(p1020_rdb) {  	.init_IRQ		= mpc85xx_rdb_pic_init,  #ifdef CONFIG_PCI  	.pcibios_fixup_bus	= fsl_pcibios_fixup_bus, +	.pcibios_fixup_phb      = fsl_pcibios_fixup_phb,  #endif  	.get_irq		= mpic_get_irq,  	.restart		= fsl_rstcr_restart, @@ -282,6 +261,7 @@ define_machine(p1021_rdb_pc) {  	.init_IRQ		= mpc85xx_rdb_pic_init,  #ifdef CONFIG_PCI  	.pcibios_fixup_bus	= fsl_pcibios_fixup_bus, +	.pcibios_fixup_phb      = fsl_pcibios_fixup_phb,  #endif  	.get_irq		= mpic_get_irq,  	.restart		= fsl_rstcr_restart, @@ -296,6 +276,7 @@ define_machine(p2020_rdb_pc) {  	.init_IRQ		= mpc85xx_rdb_pic_init,  #ifdef CONFIG_PCI  	.pcibios_fixup_bus	= fsl_pcibios_fixup_bus, +	.pcibios_fixup_phb      = fsl_pcibios_fixup_phb,  #endif  	.get_irq		= mpic_get_irq,  	.restart		= fsl_rstcr_restart, @@ -310,6 +291,7 @@ define_machine(p1025_rdb) {  	.init_IRQ		= mpc85xx_rdb_pic_init,  #ifdef CONFIG_PCI  	.pcibios_fixup_bus	= fsl_pcibios_fixup_bus, +	.pcibios_fixup_phb      = fsl_pcibios_fixup_phb,  #endif  	.get_irq		= mpic_get_irq,  	.restart		= fsl_rstcr_restart, @@ -324,6 +306,7 @@ define_machine(p1020_mbg_pc) {  	.init_IRQ		= mpc85xx_rdb_pic_init,  #ifdef CONFIG_PCI  	.pcibios_fixup_bus	= fsl_pcibios_fixup_bus, +	.pcibios_fixup_phb      = fsl_pcibios_fixup_phb,  #endif  	.get_irq		= mpic_get_irq,  	.restart		= fsl_rstcr_restart, @@ -338,6 +321,7 @@ define_machine(p1020_utm_pc) {  	.init_IRQ		= mpc85xx_rdb_pic_init,  #ifdef CONFIG_PCI  	.pcibios_fixup_bus	= fsl_pcibios_fixup_bus, +	.pcibios_fixup_phb      = fsl_pcibios_fixup_phb,  #endif  	.get_irq		= mpic_get_irq,  	.restart		= fsl_rstcr_restart, @@ -352,6 +336,7 @@ define_machine(p1020_rdb_pc) {  	.init_IRQ		= mpc85xx_rdb_pic_init,  #ifdef CONFIG_PCI  	.pcibios_fixup_bus	= fsl_pcibios_fixup_bus, +	.pcibios_fixup_phb      = fsl_pcibios_fixup_phb,  #endif  	.get_irq		= mpic_get_irq,  	.restart		= fsl_rstcr_restart, @@ -366,6 +351,7 @@ define_machine(p1020_rdb_pd) {  	.init_IRQ		= mpc85xx_rdb_pic_init,  #ifdef CONFIG_PCI  	.pcibios_fixup_bus	= fsl_pcibios_fixup_bus, +	.pcibios_fixup_phb      = fsl_pcibios_fixup_phb,  #endif  	.get_irq		= mpic_get_irq,  	.restart		= fsl_rstcr_restart, @@ -380,6 +366,7 @@ define_machine(p1024_rdb) {  	.init_IRQ		= mpc85xx_rdb_pic_init,  #ifdef CONFIG_PCI  	.pcibios_fixup_bus	= fsl_pcibios_fixup_bus, +	.pcibios_fixup_phb      = fsl_pcibios_fixup_phb,  #endif  	.get_irq		= mpic_get_irq,  	.restart		= fsl_rstcr_restart,  | 
