summaryrefslogtreecommitdiff
path: root/apps/settings_list.c
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2018-07-27 23:56:32 +0200
committerWilliam Wilgus <me.theuser@yahoo.com>2018-07-27 23:56:32 +0200
commit6f0320a9535bc1aa81d83fa879ac14d5ee603658 (patch)
tree3b12fc361595ecd2249f391e114036cb30150105 /apps/settings_list.c
parent400603abdfb4ba7566e0cae8dbed9268f06716dc (diff)
downloadrockbox-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/settings_list.c')
-rw-r--r--apps/settings_list.c38
1 files changed, 37 insertions, 1 deletions
diff --git a/apps/settings_list.c b/apps/settings_list.c
index 57763d345a..fe280b0ff6 100644
--- a/apps/settings_list.c
+++ b/apps/settings_list.c
@@ -2246,7 +2246,43 @@ const struct settings_list settings[] = {
2246 ID2P(LANG_IBASSO_USB_MODE_CHARGE), 2246 ID2P(LANG_IBASSO_USB_MODE_CHARGE),
2247 ID2P(LANG_IBASSO_USB_MODE_ADB)), 2247 ID2P(LANG_IBASSO_USB_MODE_ADB)),
2248#endif 2248#endif
2249}; 2249
2250#ifdef CONFIG_POWER_SAVING
2251#if (CONFIG_POWER_SAVING & POWERSV_CPU)
2252 OFFON_SETTING(0,
2253 cpu_powersave,
2254 LANG_CPU,
2255 false,
2256 "cpu powersave",
2257 cpu_set_powersave),
2258#endif
2259#if (CONFIG_POWER_SAVING & POWERSV_DISK)
2260 OFFON_SETTING(0,
2261 disk_powersave,
2262 LANG_DISK_MENU,
2263 false,
2264 "disk powersave",
2265 disk_set_powersave),
2266#endif
2267#if (CONFIG_POWER_SAVING & POWERSV_DISP)
2268 OFFON_SETTING(0,
2269 disp_powersave,
2270 LANG_DISPLAY,
2271 false,
2272 "disp powersave",
2273 disp_set_powersave),
2274#endif
2275#if (CONFIG_POWER_SAVING & POWERSV_I2C)
2276 OFFON_SETTING(0,
2277 i2c_powersave,
2278 LANG_I2C,
2279 false,
2280 "i2c powersave",
2281 i2c_set_powersave),
2282#endif
2283#endif /*defined(CONFIG_POWER_SAVING)*/
2284
2285};/*struct settings_list settings*/
2250 2286
2251const int nb_settings = sizeof(settings)/sizeof(*settings); 2287const int nb_settings = sizeof(settings)/sizeof(*settings);
2252 2288