summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-12-05 19:55:29 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-12-05 19:55:29 +0000
commit8facd5789620ef4a3a726e38613546f0edc90ee8 (patch)
tree320d1811351665cfbd2a162f72d242f17ddcd413 /firmware/target/mips/ingenic_jz47xx/system-jz4740.c
parent0ad1f0e95fd461d281969569f6bce3fdbc86f079 (diff)
downloadrockbox-8facd5789620ef4a3a726e38613546f0edc90ee8.tar.gz
rockbox-8facd5789620ef4a3a726e38613546f0edc90ee8.tar.bz2
rockbox-8facd5789620ef4a3a726e38613546f0edc90ee8.zip
Ingenic Jz4740: fix CPU boosting (was reversed)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23864 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/system-jz4740.c')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/system-jz4740.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
index 68d4759f4d..ce02a2539d 100644
--- a/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
+++ b/firmware/target/mips/ingenic_jz47xx/system-jz4740.c
@@ -592,7 +592,7 @@ void set_cpu_frequency(long frequency)
unsigned long cfcr = REG_CPM_CPCCR;
cfcr &= ~CPM_CPCCR_CDIV_MASK;
- if(frequency == CPUFREQ_NORMAL)
+ if(frequency != CPUFREQ_NORMAL)
cfcr |= (0 << CPM_CPCCR_CDIV_BIT);
else
cfcr |= (2 << CPM_CPCCR_CDIV_BIT);