ARM: rockchip: rk3288: fix pd video vio on/off
author黄涛 <huangtao@rock-chips.com>
Wed, 30 Apr 2014 04:00:58 +0000 (12:00 +0800)
committer黄涛 <huangtao@rock-chips.com>
Wed, 30 Apr 2014 04:00:58 +0000 (12:00 +0800)
arch/arm/mach-rockchip/rk3288.c

index 834b7850bd625d19f7099a71a41ceae695cbf13e..bc6d9e2819b40251bf3b09d88121863545402739 100644 (file)
@@ -366,17 +366,26 @@ static int rk3288_sys_set_power_domain(enum pmu_power_domain pd, bool on)
 
        switch (pd) {
        case PD_GPU:
+               /* gpu */
                clks_ungating[5] = 1 << 7;
                break;
        case PD_VIDEO:
+               /* aclk_vdpu_src hclk_vpu aclk_vepu_src */
                clks_ungating[3] = 1 << 11 | 1 << 10 | 1 << 9;
+               /* hclk_video aclk_video */
+               clks_ungating[9] = 1 << 1 | 1 << 0;
                break;
        case PD_VIO:
+               /* aclk_lcdc0/1_src dclk_lcdc0/1_src rga_core aclk_rga_src */
+               /* edp_24m edp isp isp_jpeg */
                clks_ungating[3] =
                    1 << 0 | 1 << 1 | 1 << 2 | 1 << 3 | 1 << 4 | 1 << 5 |
-                   1 << 11 | 1 << 12 | 1 << 13 | 1 << 14 | 1 << 15;
+                   1 << 12 | 1 << 13 | 1 << 14 | 1 << 15;
+               clks_ungating[15] = 0xffff;
+               clks_ungating[16] = 0x0fff;
                break;
        case PD_HEVC:
+               /* hevc_core hevc_cabac aclk_hevc */
                clks_ungating[13] = 1 << 15 | 1 << 14 | 1 << 13;
                break;
 #if 0