diff options
Diffstat (limited to 'firmware/export')
| -rw-r--r-- | firmware/export/config-gigabeat.h | 3 | ||||
| -rw-r--r-- | firmware/export/system.h | 10 |
2 files changed, 11 insertions, 2 deletions
diff --git a/firmware/export/config-gigabeat.h b/firmware/export/config-gigabeat.h index a12322e..6e22e8d 100644 --- a/firmware/export/config-gigabeat.h +++ b/firmware/export/config-gigabeat.h @@ -124,10 +124,9 @@ #define USB_GIGABEAT_STYLE #define HAVE_HEADPHONE_DETECTION + /* Define this if you have adjustable CPU frequency */ -#if 0 /* TODO */ #define HAVE_ADJUSTABLE_CPU_FREQ -#endif #define BOOTFILE_EXT "gigabeat" #define BOOTFILE "rockbox." BOOTFILE_EXT diff --git a/firmware/export/system.h b/firmware/export/system.h index 86bbefb..688cf9b 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h @@ -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]; |