示例#1
0
static void mali_pm_shutdown(struct platform_device *pdev)
{
	MALI_PRINT(("Mali shutdown!!\n"));
	mali_dvfs_device_state =_MALI_DEVICE_SHUTDOWN;
	exynos_pd_enable(&exynos4_device_pd[PD_G3D].dev);
	return;
}
示例#2
0
static int exynos_pd_restore(struct device *dev)
{
	#if 0
	struct samsung_pd_info *pdata = dev->platform_data;
	#endif
	struct platform_device *pdev = to_platform_device(dev);
	int ret = 0;

#if !defined(CONFIG_CPU_EXYNOS4210)
	pr_debug("%s: %s(%d) exynos4_pd_status = 0x%08x\n",
		__func__, pdev->name, pdev->id, exynos_pd_status[pdev->id]);
#endif

	if (exynos_pd_status[pdev->id] == S5P_INT_LOCAL_PWR_EN)
		ret =  exynos_pd_enable(dev);

	exynos_pd_status[pdev->id] = 0;

#if !defined(CONFIG_CPU_EXYNOS4210)
	pr_debug("%s: %s(%d) exynos4 pd status reg = 0x%08x\n",
		__func__, pdev->name, pdev->id, __raw_readl(pdata->base + 0x4));
#endif

	return ret;
}
示例#3
0
int mali_pd_enable(void)
{
	return exynos_pd_enable(&exynos4_device_pd[PD_G3D].dev);
}
示例#4
0
static void mali_pm_shutdown(struct platform_device *pdev)
{
	MALI_PRINT(("Mali shutdown!!\n"));
	exynos_pd_enable(&exynos4_device_pd[PD_G3D].dev);
	return;
}