soc: rockchip: power-domain: fix up the PMU_GPU_PWRDW/UP_CNT for RK3399
authorElaine Zhang <zhangqing@rock-chips.com>
Mon, 27 Jun 2016 09:04:54 +0000 (17:04 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 28 Jun 2016 10:40:58 +0000 (18:40 +0800)
According to the advice of the IC,
setting the PMU_GPU_PWRDW/PWRUP_CNT regs 6 cycel(250ns) for RK3399 SOC.

Change-Id: I0449069a3b5035bd0442fcd74b645de9480a1d89
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
drivers/soc/rockchip/pm_domains.c

index bd1f1c4e5f8020750d623dd713eddeec4e941413..65a5a6d22c7151faf3503cc3a944bbf523138d8d 100644 (file)
@@ -736,11 +736,11 @@ static const struct rockchip_pmu_info rk3399_pmu = {
        .idle_offset = 0x64,
        .ack_offset = 0x68,
 
-       .core_pwrcnt_offset = 0x9c,
-       .gpu_pwrcnt_offset = 0xa4,
+       .core_pwrcnt_offset = 0xac,
+       .gpu_pwrcnt_offset = 0xac,
 
-       .core_power_transition_time = 24,
-       .gpu_power_transition_time = 24,
+       .core_power_transition_time = 6, /* 0.25us */
+       .gpu_power_transition_time = 6, /* 0.25us */
 
        .num_domains = ARRAY_SIZE(rk3399_pm_domains),
        .domain_info = rk3399_pm_domains,