MALI: midgard: rockchip: add .shutdown of GPU platform_driver

Change-Id: I5af2a464db88b08530b063d90b3a7ce61e26f201
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
This commit is contained in:
chenzhen
2016-06-30 20:01:01 +08:00
committed by Huang, Tao
parent 0556935fb1
commit 54543b877d
2 changed files with 17 additions and 0 deletions

View File

@@ -3813,6 +3813,14 @@ static int kbase_platform_device_remove(struct platform_device *pdev)
return 0;
}
extern void kbase_platform_rk_shutdown(struct kbase_device *kbdev);
static void kbase_platform_device_shutdown(struct platform_device *pdev)
{
struct kbase_device *kbdev = to_kbase_device(&pdev->dev);
kbase_platform_rk_shutdown(kbdev);
}
static int kbase_platform_device_probe(struct platform_device *pdev)
{
struct kbase_device *kbdev;
@@ -4214,6 +4222,7 @@ MODULE_DEVICE_TABLE(of, kbase_dt_ids);
static struct platform_driver kbase_platform_driver = {
.probe = kbase_platform_device_probe,
.remove = kbase_platform_device_remove,
.shutdown = kbase_platform_device_shutdown,
.driver = {
.name = kbase_drv_name,
.owner = THIS_MODULE,

View File

@@ -227,6 +227,14 @@ int kbase_platform_early_init(void)
/*---------------------------------------------------------------------------*/
void kbase_platform_rk_shutdown(struct kbase_device *kbdev)
{
I("to make vdd_gpu enabled for turning off pd_gpu in pm_framework.");
rk_pm_enable_regulator(kbdev);
}
/*---------------------------------------------------------------------------*/
static int rk_pm_enable_regulator(struct kbase_device *kbdev)
{
int ret = 0;