mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Classic/6G: CPU frequency/voltage scaling
This patch implements HAVE_ADJUSTABLE_CPU_FREQ, it modifies the following parameters when CPU is unboosted: - s5l8702 voltage is decreased: 1.200V -> 1.050V - CPU frequency is divided by 4: 216MHz -> 54MHz - AHB frequency is divided by 2: 108MHz -> 54MHz Change-Id: I2285b83efb7e1567864ac288f2d4ba55f058f7c5
This commit is contained in:
parent
a75b5b83d4
commit
a85780bacc
6 changed files with 48 additions and 6 deletions
|
|
@ -58,6 +58,8 @@ bool dbg_hw_info(void)
|
|||
if(state == 0)
|
||||
{
|
||||
_DEBUG_PRINTF("CPU:");
|
||||
_DEBUG_PRINTF("speed: %d MHz", ((CLKCON0 & 1) ?
|
||||
CPUFREQ_NORMAL : CPUFREQ_MAX) / 1000000);
|
||||
_DEBUG_PRINTF("current_tick: %d", (unsigned int)current_tick);
|
||||
line++;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue