forked from len0rd/rockbox
add cpu frequency scaling to the gigabeat. default/normal: 100MHz, boosted: 300MHz
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12023 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0fedaa205c
commit
6309eabc64
3 changed files with 33 additions and 2 deletions
|
@ -273,6 +273,14 @@ static inline unsigned long swap32(unsigned long value)
|
|||
|
||||
/* TODO: Implement set_irq_level and check CPU frequencies */
|
||||
|
||||
#if CONFIG_CPU == S3C2440
|
||||
|
||||
#define CPUFREQ_DEFAULT 98784000
|
||||
#define CPUFREQ_NORMAL 98784000
|
||||
#define CPUFREQ_MAX 296352000
|
||||
|
||||
#else
|
||||
|
||||
#define CPUFREQ_DEFAULT_MULT 8
|
||||
#define CPUFREQ_DEFAULT 24000000
|
||||
#define CPUFREQ_NORMAL_MULT 10
|
||||
|
@ -280,6 +288,8 @@ static inline unsigned long swap32(unsigned long value)
|
|||
#define CPUFREQ_MAX_MULT 25
|
||||
#define CPUFREQ_MAX 75000000
|
||||
|
||||
#endif
|
||||
|
||||
static inline unsigned short swap16(unsigned short value)
|
||||
/*
|
||||
result[15..8] = value[ 7..0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue