Example #1
0
void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0,
                                 struct omap_sdrc_params *sdrc_cs1)
{
    struct omap_hwmod **hwmods = NULL;

    if (cpu_is_omap2420())
        hwmods = omap2420_hwmods;
    else if (cpu_is_omap2430())
        hwmods = omap2430_hwmods;
    else if (cpu_is_omap34xx())
        hwmods = omap34xx_hwmods;

#ifndef CONFIG_ARCH_OMAP4

    omap_hwmod_init(hwmods);
    omap2_mux_init();
    omap_pm_if_early_init(mpu_opps, dsp_opps, l3_opps);
    pwrdm_init(powerdomains_omap);
    clkdm_init(clockdomains_omap, clkdm_pwrdm_autodeps);
    omap2_clk_init();
#endif
    omap_serial_early_init();
#ifndef CONFIG_ARCH_OMAP4
    omap_hwmod_late_init();
    omap_pm_if_init();
    omap2_sdrc_init(sdrc_cs0, sdrc_cs1);
    _omap2_init_reprogram_sdrc();
#endif
    gpmc_init();
}
Example #2
0
void __init omap2_init_common_hw(struct omap_sdrc_params *sdrc_cs0,
				 struct omap_sdrc_params *sdrc_cs1,
				 struct omap_opp *mpu_opps,
				 struct omap_opp *dsp_opps,
				 struct omap_opp *l3_opps)
{
	struct omap_hwmod **hwmods = NULL;

	if (cpu_is_omap2420())
		hwmods = omap2420_hwmods;
	else if (cpu_is_omap2430())
		hwmods = omap2430_hwmods;
	else if (cpu_is_omap34xx())
		hwmods = omap34xx_hwmods;

#ifndef CONFIG_ARCH_OMAP4 /* FIXME: Remove this once the clkdev is ready */
	/* The OPP tables have to be registered before a clk init */
	omap_hwmod_init(hwmods);
	omap2_mux_init();
	omap_pm_if_early_init(mpu_opps, dsp_opps, l3_opps);
	pwrdm_init(powerdomains_omap);
	clkdm_init(clockdomains_omap, clkdm_pwrdm_autodeps);
#endif
	omap2_clk_init();
	omap_serial_early_init();
#ifndef CONFIG_ARCH_OMAP4
	omap_hwmod_late_init();
	omap_pm_if_init();
	if (!cpu_is_omap3505() && !cpu_is_omap3517()) {
		omap2_sdrc_init(sdrc_cs0, sdrc_cs1);
		_omap2_init_reprogram_sdrc();
	}
#endif
	gpmc_init();
}
Example #3
0
int __init am43xx_hwmod_init(void)
{
	int ret;

	omap_hwmod_am43xx_reg();
	omap_hwmod_init();
	ret = omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);

	if (!ret && of_machine_is_compatible("ti,am4372"))
		ret = omap_hwmod_register_links(am43xx_rtc_hwmod_ocp_ifs);

	return ret;
}
Example #4
0
int __init omap2420_hwmod_init(void)
{
	omap_hwmod_init();
	return omap_hwmod_register_links(omap2420_hwmod_ocp_ifs);
}
int __init omap2430_hwmod_init(void)
{
	return omap_hwmod_init(omap2430_hwmods);
}
Example #6
0
int __init am33xx_hwmod_init(void)
{
    omap_hwmod_am33xx_reg();
    omap_hwmod_init();
    return omap_hwmod_register_links(am33xx_hwmod_ocp_ifs);
}
Example #7
0
int __init ti81xx_hwmod_init(void)
{
	omap_hwmod_init();
	return omap_hwmod_register_links(dm816x_hwmod_ocp_ifs);
}
Example #8
0
int __init omap3xxx_hwmod_init(void)
{
	return omap_hwmod_init(omap3xxx_hwmods);
}
Example #9
0
int __init ti81xx_hwmod_init(void)
{
	return omap_hwmod_init(ti81xx_hwmods);
}