/* * Setup the architecture */ static void __init mpc5200_simple_setup_arch(void) { if (ppc_md.progress) ppc_md.progress("mpc5200_simple_setup_arch()", 0); /* Map important registers from the internal memory map */ mpc52xx_map_common_devices(); /* Some mpc5200 & mpc5200b related configuration */ mpc5200_setup_xlb_arbiter(); mpc52xx_setup_pci(); }
static void __init mpc5200_simple_setup_arch(void) { if (ppc_md.progress) ppc_md.progress("mpc5200_simple_setup_arch()", 0); /* */ mpc52xx_map_common_devices(); /* */ mpc5200_setup_xlb_arbiter(); mpc52xx_setup_pci(); }
/* * Setup the architecture */ static void __init media5200_setup_arch(void) { struct device_node *np; struct mpc52xx_gpio __iomem *gpio; u32 port_config; if (ppc_md.progress) ppc_md.progress("media5200_setup_arch()", 0); /* Map important registers from the internal memory map */ mpc52xx_map_common_devices(); /* Some mpc5200 & mpc5200b related configuration */ mpc5200_setup_xlb_arbiter(); mpc52xx_setup_pci(); np = of_find_matching_node(NULL, mpc5200_gpio_ids); gpio = of_iomap(np, 0); of_node_put(np); if (!gpio) { printk(KERN_ERR "%s() failed. expect abnormal behavior\n", __func__); return; } /* Set port config */ port_config = in_be32(&gpio->port_config); port_config &= ~0x03000000; /* ATA CS is on csb_4/5 */ port_config |= 0x01000000; out_be32(&gpio->port_config, port_config); /* Unmap zone */ iounmap(gpio); }
static void __init lite5200_setup_arch(void) { if (ppc_md.progress) ppc_md.progress("lite5200_setup_arch()", 0); /* Map important registers from the internal memory map */ mpc52xx_map_common_devices(); /* Some mpc5200 & mpc5200b related configuration */ mpc5200_setup_xlb_arbiter(); /* Fix things that firmware should have done. */ lite5200_fix_clock_config(); lite5200_fix_port_config(); #ifdef CONFIG_PM mpc52xx_suspend.board_suspend_prepare = lite5200_suspend_prepare; mpc52xx_suspend.board_resume_finish = lite5200_resume_finish; lite5200_pm_init(); #endif mpc52xx_setup_pci(); }