void __init omap3xxx_powerdomains_init(void) { unsigned int rev; if (!cpu_is_omap34xx() && !cpu_is_ti81xx()) return; /* Only 81xx needs custom pwrdm_operations */ if (!cpu_is_ti81xx()) pwrdm_register_platform_funcs(&omap3_pwrdm_operations);; rev = omap_rev(); if (rev == AM35XX_REV_ES1_0 || rev == AM35XX_REV_ES1_1) { pwrdm_register_pwrdms(powerdomains_am35x); } else if (rev == TI8148_REV_ES1_0 || rev == TI8148_REV_ES2_0 || rev == TI8148_REV_ES2_1) { pwrdm_register_platform_funcs(&ti81xx_pwrdm_operations); pwrdm_register_pwrdms(powerdomains_ti814x); } else if (rev == TI8168_REV_ES1_0 || rev == TI8168_REV_ES1_1 || rev == TI8168_REV_ES2_0 || rev == TI8168_REV_ES2_1) { pwrdm_register_platform_funcs(&ti81xx_pwrdm_operations); pwrdm_register_pwrdms(powerdomains_ti816x); } else { pwrdm_register_pwrdms(powerdomains_omap3430_common); switch (rev) { case OMAP3430_REV_ES1_0: pwrdm_register_pwrdms(powerdomains_omap3430es1); break; case OMAP3430_REV_ES2_0: case OMAP3430_REV_ES2_1: case OMAP3430_REV_ES3_0: case OMAP3630_REV_ES1_0: pwrdm_register_pwrdms(powerdomains_omap3430es2_es3_0); break; case OMAP3430_REV_ES3_1: case OMAP3430_REV_ES3_1_2: case OMAP3630_REV_ES1_1: case OMAP3630_REV_ES1_2: pwrdm_register_pwrdms(powerdomains_omap3430es3_1plus); break; default: WARN(1, "OMAP3 powerdomain init: unknown chip type\n"); } } pwrdm_complete_init(); }
void __init omap3xxx_powerdomains_init(void) { unsigned int rev; if (!cpu_is_omap34xx()) return; pwrdm_register_platform_funcs(&omap3_pwrdm_operations); pwrdm_register_pwrdms(powerdomains_omap3430_common); rev = omap_rev(); if (rev == OMAP3430_REV_ES1_0) pwrdm_register_pwrdms(powerdomains_omap3430es1); else if (rev == OMAP3430_REV_ES2_0 || rev == OMAP3430_REV_ES2_1 || rev == OMAP3430_REV_ES3_0 || rev == OMAP3630_REV_ES1_0) pwrdm_register_pwrdms(powerdomains_omap3430es2_es3_0); else if (rev == OMAP3430_REV_ES3_1 || rev == OMAP3430_REV_ES3_1_2 || rev == OMAP3517_REV_ES1_0 || rev == OMAP3517_REV_ES1_1 || rev == OMAP3630_REV_ES1_1 || rev == OMAP3630_REV_ES1_2) pwrdm_register_pwrdms(powerdomains_omap3430es3_1plus); else WARN(1, "OMAP3 powerdomain init: unknown chip type\n"); pwrdm_complete_init(); }
void __init omap242x_powerdomains_init(void) { if (!cpu_is_omap2420()) return; pwrdm_register_platform_funcs(&omap2_pwrdm_operations); pwrdm_register_pwrdms(powerdomains_omap24xx); pwrdm_complete_init(); }
void __init omap44xx_powerdomains_init(void) { pwrdm_register_platform_funcs(&omap4_pwrdm_operations); pwrdm_register_pwrdms(powerdomains_omap44xx); if (cpu_is_omap443x()) pwrdm_register_pwrdms(powerdomains_omap443x); if (cpu_is_omap446x()) pwrdm_register_pwrdms(powerdomains_omap446x); pwrdm_complete_init(); }
void __init dra7xx_powerdomains_init(void) { pwrdm_register_platform_funcs(&omap4_pwrdm_operations); pwrdm_register_pwrdms(powerdomains_dra7xx); pwrdm_complete_init(); }
void __init am33xx_powerdomains_init(void) { pwrdm_register_platform_funcs(&am33xx_pwrdm_operations); pwrdm_register_pwrdms(powerdomains_am33xx); pwrdm_complete_init(); }