summaryrefslogtreecommitdiff
path: root/firmware/target/arm/s5l8702/system-s5l8702.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/s5l8702/system-s5l8702.c')
-rw-r--r--firmware/target/arm/s5l8702/system-s5l8702.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/target/arm/s5l8702/system-s5l8702.c b/firmware/target/arm/s5l8702/system-s5l8702.c
index 6973738790..a4e82feef9 100644
--- a/firmware/target/arm/s5l8702/system-s5l8702.c
+++ b/firmware/target/arm/s5l8702/system-s5l8702.c
@@ -253,13 +253,16 @@ void set_cpu_frequency(long frequency)
253 if (cpu_frequency == frequency) 253 if (cpu_frequency == frequency)
254 return; 254 return;
255 255
256 //TODO: Need to understand this better
256 if (frequency == CPUFREQ_MAX) 257 if (frequency == CPUFREQ_MAX)
257 { 258 {
258 //TODO: Figure out and implement 259 CLKCON0 = 0x3011;
260 CLKCON1 = 0x4001;
259 } 261 }
260 else 262 else
261 { 263 {
262 //TODO: Figure out and implement 264 CLKCON1 = 0x404101;
265 CLKCON0 = 0x3000;
263 } 266 }
264 267
265 cpu_frequency = frequency; 268 cpu_frequency = frequency;