mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
imx233: implement basic frequency scaling and enable auto-slow
This does not scale the EMI frequency and keep the processor betweel 261MHz and 454MHz. It can still be improve. The auto-slow divisor could still be change, 8 seems reasonable for now Change-Id: I639bb3f6b7f8efedc7dc58d08127849156eeb1b6
This commit is contained in:
parent
6c2190ea04
commit
c9ad8688f1
2 changed files with 48 additions and 12 deletions
|
|
@ -55,10 +55,10 @@
|
|||
#define IMX233_CPUFREQ_64_MHz 64000000
|
||||
#define IMX233_CPUFREQ_24_MHz 24000000
|
||||
|
||||
#define CPUFREQ_DEFAULT IMX233_CPUFREQ_454_MHz
|
||||
#define CPUFREQ_NORMAL IMX233_CPUFREQ_454_MHz
|
||||
#define CPUFREQ_DEFAULT IMX233_CPUFREQ_261_MHz
|
||||
#define CPUFREQ_NORMAL IMX233_CPUFREQ_261_MHz
|
||||
#define CPUFREQ_MAX IMX233_CPUFREQ_454_MHz
|
||||
#define CPUFREQ_SLEEP IMX233_CPUFREQ_454_MHz
|
||||
#define CPUFREQ_SLEEP IMX233_CPUFREQ_261_MHz
|
||||
|
||||
void udelay(unsigned us);
|
||||
bool imx233_us_elapsed(uint32_t ref, unsigned us_delay);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue