diff options
author | William Wilgus <me.theuser@yahoo.com> | 2018-07-27 23:56:32 +0200 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2018-07-27 23:56:32 +0200 |
commit | 6f0320a9535bc1aa81d83fa879ac14d5ee603658 (patch) | |
tree | 3b12fc361595ecd2249f391e114036cb30150105 /apps/menus | |
parent | 400603abdfb4ba7566e0cae8dbed9268f06716dc (diff) | |
download | rockbox-6f0320a9535bc1aa81d83fa879ac14d5ee603658.tar.gz rockbox-6f0320a9535bc1aa81d83fa879ac14d5ee603658.zip |
As3525 v1/v2 Add power savings menu
Allow user to select cpu undervolt
There have been quite a few issues across the SANSA AMS line related
to CPU undervolting while most players show greatly increased runtime
some crash.
Rather than constanly upping the voltage we now have a
setting with a safe value for all players and the option for lower voltages
I plan to add a few other options here later such as disk
timings and maybe some other clocks/experimental settings
Added: Disk Low speed option for AS3525v2 devices cuts
frequency to 12 MHz from 24 MHz
Added: Disk Low speed option for AS3525v1 devices cuts
frequency to 15.5 MHz from 31 MHz
Added: I2c Low Speed AS3525 devices, should be bigger improvement for v1 devices
Fixed: Debug menu for AS3525v2 No SDSLOT frequency,
Showed IDE freq though it is unused
Added: DBOP and SSP underclocking affects display on v1/v2 respectively
Fixed: debug menu now has SSP frequency, and SSP_CPSR
Update: made settings menu more generic
Update: cleaned up code
Added: Clip v1 & Fuze v1 didn't have HAVE_ADJUSTABLE_CPU_VOLTAGE.
not sure why but, waiting on testing to confirm
Added: C200v2 and E200v2 devices and HAVE_ADJUSTABLE_CPU_VOLTAGE.
Fixed: v1 devices don't like display timing set lower (dbop)
v1 devices don't have a divider set for ssp (causes divide by 0)
Fixed: ClipZip display lags with Max SSP divider changed from 0xFE to 0x32
Fixed: v1 devices didn't work properly with highspeed sd cards
Added code from http://gerrit.rockbox.org/r/#/c/1704/
Added powersave and IDE interface enable/disable
Added: V2 devices now have powersave enabled on sd interface
Update: cleaned up code, lang defines, added manual entries
Update ssp clock mechanism added calculated ssp divider to clipzip
Update turn display clock off when clip+ turns off display
Fixed: clipzip wrong register for SSP clock
Change-Id: I04137682243be92f0f8d8bf1cfa54fbb1965559b
TODO: add other players?
Diffstat (limited to 'apps/menus')
-rw-r--r-- | apps/menus/settings_menu.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c index 5c99cb4cd4..f23f01d4dc 100644 --- a/apps/menus/settings_menu.c +++ b/apps/menus/settings_menu.c | |||
@@ -295,6 +295,36 @@ MAKE_MENU(disk_menu, ID2P(LANG_DISK_MENU), 0, Icon_NOICON, | |||
295 | ); | 295 | ); |
296 | #endif | 296 | #endif |
297 | 297 | ||
298 | #ifdef CONFIG_POWER_SAVING | ||
299 | #if (CONFIG_POWER_SAVING & POWERSV_CPU) | ||
300 | MENUITEM_SETTING(cpu_powersave, &global_settings.cpu_powersave, NULL); | ||
301 | #endif | ||
302 | #if (CONFIG_POWER_SAVING & POWERSV_DISK) | ||
303 | MENUITEM_SETTING(disk_powersave, &global_settings.disk_powersave, NULL); | ||
304 | #endif | ||
305 | #if (CONFIG_POWER_SAVING & POWERSV_I2C) | ||
306 | MENUITEM_SETTING(i2c_powersave, &global_settings.i2c_powersave, NULL); | ||
307 | #endif | ||
308 | #if (CONFIG_POWER_SAVING & POWERSV_DISP) | ||
309 | MENUITEM_SETTING(disp_powersave, &global_settings.disp_powersave, NULL); | ||
310 | #endif | ||
311 | |||
312 | MAKE_MENU(power_save_menu, ID2P(LANG_POWER_SAVING_MENU), 0, Icon_NOICON, | ||
313 | #if (CONFIG_POWER_SAVING & POWERSV_CPU) | ||
314 | &cpu_powersave, | ||
315 | #endif | ||
316 | #if (CONFIG_POWER_SAVING & POWERSV_DISK) | ||
317 | &disk_powersave, | ||
318 | #endif | ||
319 | #if (CONFIG_POWER_SAVING & POWERSV_I2C) | ||
320 | &i2c_powersave, | ||
321 | #endif | ||
322 | #if (CONFIG_POWER_SAVING & POWERSV_DISP) | ||
323 | &disp_powersave, | ||
324 | #endif | ||
325 | ); | ||
326 | #endif /* ifdef CONFIG_POWER_SAVING */ | ||
327 | |||
298 | /* Limits menu */ | 328 | /* Limits menu */ |
299 | MENUITEM_SETTING(max_files_in_dir, &global_settings.max_files_in_dir, NULL); | 329 | MENUITEM_SETTING(max_files_in_dir, &global_settings.max_files_in_dir, NULL); |
300 | MENUITEM_SETTING(max_files_in_playlist, &global_settings.max_files_in_playlist, NULL); | 330 | MENUITEM_SETTING(max_files_in_playlist, &global_settings.max_files_in_playlist, NULL); |
@@ -412,6 +442,11 @@ MAKE_MENU(system_menu, ID2P(LANG_SYSTEM), | |||
412 | &disk_menu, | 442 | &disk_menu, |
413 | #endif | 443 | #endif |
414 | &limits_menu, | 444 | &limits_menu, |
445 | |||
446 | #if defined(CONFIG_POWER_SAVING) | ||
447 | &power_save_menu, | ||
448 | #endif | ||
449 | |||
415 | #ifdef HAVE_QUICKSCREEN | 450 | #ifdef HAVE_QUICKSCREEN |
416 | &shortcuts_replaces_quickscreen, | 451 | &shortcuts_replaces_quickscreen, |
417 | #endif | 452 | #endif |