Enable frequency scaling on AMSv2 devices.

Voltage scaling is not yet enabled, but will follow once we are sure
these changes are stable.  Preliminary testing suggests a large
increase in battery life, which will be further improved by voltage
scaling.  Patch by Mihail Zenkov with help from myself and others on
the forums.

Change-Id: I171d20bbee19a48c13cd14efb0d023883cc8c687
This commit is contained in:
Mihail Zenkov 2016-01-19 00:21:10 +01:00 committed by Michael Giacomelli
parent 7432af0958
commit 3f54101858
7 changed files with 35 additions and 54 deletions

View file

@ -182,7 +182,7 @@
#define CURRENT_MAX_CHG 200
/* Define this to the CPU frequency */
#define CPU_FREQ 240000000
#define CPU_FREQ 192000000
/* Type of LCD */
#define CONFIG_LCD LCD_FUZE
@ -208,7 +208,7 @@
#define HAVE_BOOTLOADER_USB_MODE
/* Define this if you have adjustable CPU frequency */
//#define HAVE_ADJUSTABLE_CPU_FREQ
#define HAVE_ADJUSTABLE_CPU_FREQ
#define BOOTFILE_EXT "sansa"
#define BOOTFILE "rockbox." BOOTFILE_EXT