summaryrefslogtreecommitdiffstats
path: root/firmware/export/config/xduoox3.h
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-08-28 17:11:53 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-08-29 02:53:06 +0000
commitfc7eb3b2a399104f72699a6a3a795106250058a8 (patch)
tree3833474c27198de65fdf38fccb95f80773a582d2 /firmware/export/config/xduoox3.h
parenta2b77446c2bbc76a88dbabdc7f99dafc01d157ab (diff)
downloadrockbox-fc7eb3b2a3.tar.gz
rockbox-fc7eb3b2a3.tar.bz2
rockbox-fc7eb3b2a3.zip
xduoox3: When not using dynamic clocks, use max cpu
Change-Id: I789bb4eccc5b663156f5d1b7cd5d291b60ccb18d
Diffstat (limited to 'firmware/export/config/xduoox3.h')
-rw-r--r--firmware/export/config/xduoox3.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/export/config/xduoox3.h b/firmware/export/config/xduoox3.h
index e859dff51e..e5b5ed9a10 100644
--- a/firmware/export/config/xduoox3.h
+++ b/firmware/export/config/xduoox3.h
@@ -152,10 +152,9 @@
/* Define this if you have a Ingenic JZ4760B */
#define CONFIG_CPU JZ4760B
-/* We have adjustable frequency */
+/* If we have adjustable frequency */
#define CPUFREQ_MAX 576000000 // datasheet sez 600MHz max. Must be multiple of 48!
#define CPUFREQ_MIN 192000000
-#define CPUFREQ_DEFAULT CPUFREQ_MIN
#define CPUFREQ_NORMAL CPUFREQ_MIN
#ifndef BOOTLOADER
@@ -163,7 +162,10 @@
#define HAVE_GUI_BOOST
#endif
-#ifndef HAVE_ADJUSTABLE_CPU_FREQ
+#ifdef HAVE_ADJUSTABLE_CPU_FREQ
+#define CPUFREQ_DEFAULT CPUFREQ_MIN
+#else
+#define CPUFREQ_DEFAULT CPUFREQ_MAX
#define CPU_FREQ CPUFREQ_MAX
#endif