예제 #1
0
static int disp_ccorr_power_off(DISP_MODULE_ENUM module, void *handle)
{
#ifdef ENABLE_CLK_MGR
	if (module == DISP_MODULE_CCORR) {
#ifdef CONFIG_MTK_CLKMGR
#if !defined(CONFIG_ARCH_MT6580)
		disable_clock(MT_CG_DISP0_DISP_CCORR, "CCORR");
#endif
#else
		ddp_clk_disable(DISP0_DISP_CCORR);
#endif
	}
#endif
	return 0;
}
예제 #2
0
static int disp_dither_power_off(DISP_MODULE_ENUM module, void *handle)
{
#ifdef ENABLE_CLK_MGR
	if (module == DISP_MODULE_DITHER) {
#ifdef CONFIG_MTK_CLKMGR
		disable_clock(MT_CG_DISP0_DISP_DITHER, "DITHER");
#else
#if defined(CONFIG_ARCH_MT6755)
		ddp_clk_disable(DISP0_DISP_DITHER);
#else
		disp_clk_disable(DISP0_DISP_DITHER);
#endif
#endif
	}
#endif
	return 0;
}
예제 #3
0
static int disp_gamma_power_off(DISP_MODULE_ENUM module, void *handle)
{
#if defined(CONFIG_ARCH_MT6755)
	/* gamma is DCM , do nothing */
#else
#ifdef ENABLE_CLK_MGR
	if (module == DISP_MODULE_GAMMA) {
#ifdef CONFIG_MTK_CLKMGR
		disable_clock(MT_CG_DISP0_DISP_GAMMA, "GAMMA");
#else
		ddp_clk_disable(DISP0_DISP_GAMMA);
#endif
	}
#endif
#endif
	return 0;
}