コード例 #1
0
ファイル: mpc5200_simple.c プロジェクト: 0-T-0/ps4-linux
/*
 * 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();
}
コード例 #2
0
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();
}
コード例 #3
0
ファイル: efika.c プロジェクト: 0-T-0/ps4-linux
static void __init efika_setup_arch(void)
{
	rtas_initialize();

	/* Map important registers from the internal memory map */
	mpc52xx_map_common_devices();

	efika_pcisetup();

#ifdef CONFIG_PM
	mpc52xx_suspend.board_suspend_prepare = efika_suspend_prepare;
	mpc52xx_pm_init();
#endif

	if (ppc_md.progress)
		ppc_md.progress("Linux/PPC " UTS_RELEASE " running on Efika ;-)\n", 0x0);
}
コード例 #4
0
ファイル: media5200.c プロジェクト: JohnTroony/linux
/*
 * 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);

}
コード例 #5
0
ファイル: lite5200.c プロジェクト: 12019/linux-2.6.34-ts471x
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();
}