update gpu_shutdown for reboot

This commit is contained in:
杜坤明
2011-04-15 11:35:56 +08:00
parent 2487913577
commit c660b6d272

View File

@@ -703,11 +703,11 @@ static void drv_exit(void)
shutdown = 1;
msleep(50);
mdelay(50);
gckGALDEVICE_Stop(galDevice);
msleep(50);
mdelay(50);
gckGALDEVICE_Destroy(galDevice);
msleep(50);
mdelay(50);
#if ENABLE_GPU_CLOCK_BY_DRIVER && LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28)
@@ -723,16 +723,16 @@ static void drv_exit(void)
clk_gpu = clk_get(NULL, "gpu");
if(!IS_ERR(clk_gpu)) clk_disable(clk_gpu);
printk("done!\n");
msleep(10);
mdelay(10);
printk("%s : gpu power off... ", __func__);
pmu_set_power_domain(PD_GPU, false);
printk("done!\n");
msleep(10);
mdelay(10);
// disable ram clock gate
writel(readl(RK29_GRF_BASE+0xc0) | 0x100000, RK29_GRF_BASE+0xc0);
msleep(10);
mdelay(10);
#endif
}
@@ -878,8 +878,7 @@ static int __devinit gpu_resume(struct platform_device *dev)
static void __devinit gpu_shutdown(struct platform_device *dev)
{
pm_message_t state = {0};
gpu_suspend(dev, state);
drv_exit();
}