summaryrefslogtreecommitdiffstats
path: root/firmware/export
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-08-07 00:44:55 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-08-07 11:42:45 -0400
commiteb0e41c1ccb0dcf35efa7e1434bb0e35c9df1543 (patch)
tree8989f4d1bfe2c24d67d72026f97ec8e0cc11f949 /firmware/export
parent62146ed73513ec62b57163d229c6719b9349c640 (diff)
downloadrockbox-eb0e41c1ccb0dcf35efa7e1434bb0e35c9df1543.tar.gz
rockbox-eb0e41c1ccb0dcf35efa7e1434bb0e35c9df1543.tar.bz2
rockbox-eb0e41c1ccb0dcf35efa7e1434bb0e35c9df1543.zip
jz4760: Support dynamic reclocking!
default/low speed is 192 MHz, Max is 576 Downclock PCLK/MCLK/etc to 96MHz to save a bit of juice Honestly the high speed could be dialed down to, eg 384 as this thing is so bloody fast.. Change-Id: Ie65597c74290f1603e65f69dae8e75b59c8ba0b4
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config/xduoox3.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/firmware/export/config/xduoox3.h b/firmware/export/config/xduoox3.h
index f510495bd9..999b6b9912 100644
--- a/firmware/export/config/xduoox3.h
+++ b/firmware/export/config/xduoox3.h
@@ -148,8 +148,18 @@
/* Define this if you have a Ingenic JZ4760B */
#define CONFIG_CPU JZ4760B
-/* Define this to the CPU frequency */
-#define CPU_FREQ 480000000 /* CPU clock: 480 MHz -- Keep a multiple of 48MHz! */
+/* 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 HAVE_ADJUSTABLE_CPU_FREQ
+#ifdef HAVE_ADJUSTABLE_CPU_FREQ
+//#define HAVE_GUI_BOOST
+#define CPUFREQ_NORMAL CPUFREQ_MIN
+#else
+#define CPU_FREQ CPUFREQ_MAX
+#endif
/* Define this if you want to use the JZ47XX i2c interface */
#define CONFIG_I2C I2C_JZ47XX