projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b5f7c0
)
ARM: rockchip: rk3288: power down GPU domain by default
author
黄涛
<huangtao@rock-chips.com>
Wed, 11 Jun 2014 04:05:20 +0000
(12:05 +0800)
committer
黄涛
<huangtao@rock-chips.com>
Wed, 11 Jun 2014 04:15:40 +0000
(12:15 +0800)
vdd_gpu may power off when boot, but pmu do not know.
So make pmu power off GPU power domain by default.
arch/arm/mach-rockchip/rk3288.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rockchip/rk3288.c
b/arch/arm/mach-rockchip/rk3288.c
index 8232c3ce494c8f63ec2b0985faa198fd2922f873..5d26864e2885cc919daf48623c45ca7fa2745290 100644
(file)
--- a/
arch/arm/mach-rockchip/rk3288.c
+++ b/
arch/arm/mach-rockchip/rk3288.c
@@
-157,6
+157,10
@@
static void __init rk3288_dt_map_io(void)
writel_relaxed(24, RK_PMU_VIRT + RK3288_PMU_GPU_PWRDWN_CNT);
writel_relaxed(24, RK_PMU_VIRT + RK3288_PMU_GPU_PWRUP_CNT);
+ /* power down GPU domain by default */
+ v = readl_relaxed(RK_PMU_VIRT + RK3288_PMU_PWRDN_CON);
+ writel_relaxed(v | BIT(9), RK_PMU_VIRT + RK3288_PMU_PWRDN_CON);
+
rk3288_boot_mode_init();
}