PM / devfreq: assign set_auto_self_refresh for rk3368
authorFinley Xiao <finley.xiao@rock-chips.com>
Thu, 25 May 2017 03:51:11 +0000 (11:51 +0800)
committerJianqun Xu <jay.xu@rock-chips.com>
Mon, 26 Jun 2017 09:58:21 +0000 (17:58 +0800)
This makes it possible to enter ddr self-refresh mode
when early suspend.

Change-Id: Ib72f391af00674a3c3ab32bbbd4e4a857d3354e8
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
drivers/devfreq/rockchip_dmc.c

index f07f06db8d8bdfd4ed4fd851b52af65ae2fabbf0..0a6b993bc7a59445f9c3403f790e334681ee8616 100644 (file)
@@ -724,7 +724,8 @@ static int rk3288_dmc_init(struct platform_device *pdev)
        return 0;
 }
 
-static int rk3368_dmc_init(struct platform_device *pdev)
+static int rk3368_dmc_init(struct platform_device *pdev,
+                          struct rockchip_dmcfreq *dmcfreq)
 {
        struct device *dev = &pdev->dev;
        struct device_node *np = pdev->dev.of_node;
@@ -792,6 +793,8 @@ static int rk3368_dmc_init(struct platform_device *pdev)
        else
                dev_dbg(dev, ("%s out\n"), __func__);
 
+       dmcfreq->set_auto_self_refresh = scpi_ddr_set_auto_self_refresh;
+
        return 0;
 }