aboutsummaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorLarry Li <b20787@freescale.com>2011-11-21 17:43:45 +0800
committerEric Miao <eric.miao@linaro.org>2011-12-01 11:36:49 +0800
commit356112570149eabc460c3309d6d0a30e3f1f0d2b (patch)
tree32a04d0c21e6f465d146162525028466d31628c3 /arch/arm
parentfc9fb250c915ad0f91d72454f9c372b2340ba1b7 (diff)
downloadlinux-linaro-356112570149eabc460c3309d6d0a30e3f1f0d2b.tar.gz
ENGR00162732 [MX6q] Correct gpu2d clock setting
In MX6 gpu2d core clock setting, gpu3d core clock field is misued to set 2d core clock rate. Correct it to use the right clock field Signed-off-by: Larry Li <b20787@freescale.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-mx6/clock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-mx6/clock.c b/arch/arm/mach-mx6/clock.c
index c5545153ffa..124f3400ef1 100644
--- a/arch/arm/mach-mx6/clock.c
+++ b/arch/arm/mach-mx6/clock.c
@@ -4199,8 +4199,8 @@ static int _clk_gpu2d_core_set_rate(struct clk *clk, unsigned long rate)
return -EINVAL;
reg = __raw_readl(MXC_CCM_CBCMR);
- reg &= ~MXC_CCM_CBCMR_GPU3D_CORE_PODF_MASK;
- reg |= (div - 1) << MXC_CCM_CBCMR_GPU3D_CORE_PODF_OFFSET;
+ reg &= ~MXC_CCM_CBCMR_GPU2D_CORE_PODF_MASK;
+ reg |= (div - 1) << MXC_CCM_CBCMR_GPU2D_CORE_PODF_OFFSET;
__raw_writel(reg, MXC_CCM_CBCMR);
return 0;