diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-08-29 10:54:45 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-08-29 14:59:46 -0400 |
commit | 3dc4f817def3f106abab05db8e8395ff77c3d087 (patch) | |
tree | b80f1c6f3fd46cfe81b0f02296b507c376a2fed5 | |
parent | 3867f0b95958a6219ed5b459c22b246fb827efe2 (diff) | |
download | rockbox-3dc4f817def3f106abab05db8e8395ff77c3d087.tar.gz rockbox-3dc4f817def3f106abab05db8e8395ff77c3d087.zip |
jz4760: Disable dynamic clocking entirely.
Back off to 480MHz [max] clock, bus/mem clock of 120MHz.
576 is unstable on at least one unit, and 528 still glitches.
Change-Id: I020e48532524e739f3bfa42bed570381ccd34959
-rw-r--r-- | firmware/export/config/xduoox3.h | 6 | ||||
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/system-jz4760.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/firmware/export/config/xduoox3.h b/firmware/export/config/xduoox3.h index fa86caf511..7de8fa1510 100644 --- a/firmware/export/config/xduoox3.h +++ b/firmware/export/config/xduoox3.h | |||
@@ -160,13 +160,13 @@ | |||
160 | #define CONFIG_CPU JZ4760B | 160 | #define CONFIG_CPU JZ4760B |
161 | 161 | ||
162 | /* If we have adjustable frequency */ | 162 | /* If we have adjustable frequency */ |
163 | #define CPUFREQ_MAX 576000000 // datasheet sez 600MHz max. Must be multiple of 48! | 163 | #define CPUFREQ_MAX 480000000 // datasheet sez 600MHz max. Must be multiple of 48! |
164 | #define CPUFREQ_MIN 192000000 | 164 | #define CPUFREQ_MIN 192000000 |
165 | #define CPUFREQ_NORMAL CPUFREQ_MIN | 165 | #define CPUFREQ_NORMAL CPUFREQ_MIN |
166 | 166 | ||
167 | #ifndef BOOTLOADER | 167 | #ifndef BOOTLOADER |
168 | #define HAVE_ADJUSTABLE_CPU_FREQ | 168 | //#define HAVE_ADJUSTABLE_CPU_FREQ |
169 | #define HAVE_GUI_BOOST | 169 | //#define HAVE_GUI_BOOST |
170 | #endif | 170 | #endif |
171 | 171 | ||
172 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 172 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
diff --git a/firmware/target/mips/ingenic_jz47xx/system-jz4760.c b/firmware/target/mips/ingenic_jz47xx/system-jz4760.c index eab3ef64e6..73bd31c72c 100644 --- a/firmware/target/mips/ingenic_jz47xx/system-jz4760.c +++ b/firmware/target/mips/ingenic_jz47xx/system-jz4760.c | |||
@@ -451,7 +451,7 @@ static void pll0_init(unsigned int freq) | |||
451 | * DIV should be one of [1, 2, 3, 4, 6, 8] | 451 | * DIV should be one of [1, 2, 3, 4, 6, 8] |
452 | */ | 452 | */ |
453 | const int div[2][6] = { { 1, 2, 2, 2, 2, 2 }, | 453 | const int div[2][6] = { { 1, 2, 2, 2, 2, 2 }, |
454 | { 1, 6, 6, 6, 6, 6 } }; | 454 | { 1, 4, 4, 4, 4, 4 } }; |
455 | const int n2FR[9] = { | 455 | const int n2FR[9] = { |
456 | 0, 0, 1, 2, 3, 0, 4, 0, 5 | 456 | 0, 0, 1, 2, 3, 0, 4, 0, 5 |
457 | }; | 457 | }; |