summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config-gigabeat.h3
-rw-r--r--firmware/export/system.h10
2 files changed, 11 insertions, 2 deletions
diff --git a/firmware/export/config-gigabeat.h b/firmware/export/config-gigabeat.h
index a12322ef4c..6e22e8d7ab 100644
--- a/firmware/export/config-gigabeat.h
+++ b/firmware/export/config-gigabeat.h
@@ -124,10 +124,9 @@
124#define USB_GIGABEAT_STYLE 124#define USB_GIGABEAT_STYLE
125 125
126#define HAVE_HEADPHONE_DETECTION 126#define HAVE_HEADPHONE_DETECTION
127
127/* Define this if you have adjustable CPU frequency */ 128/* Define this if you have adjustable CPU frequency */
128#if 0 /* TODO */
129#define HAVE_ADJUSTABLE_CPU_FREQ 129#define HAVE_ADJUSTABLE_CPU_FREQ
130#endif
131 130
132#define BOOTFILE_EXT "gigabeat" 131#define BOOTFILE_EXT "gigabeat"
133#define BOOTFILE "rockbox." BOOTFILE_EXT 132#define BOOTFILE "rockbox." BOOTFILE_EXT
diff --git a/firmware/export/system.h b/firmware/export/system.h
index 86bbefb28f..688cf9bc15 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -273,6 +273,14 @@ static inline unsigned long swap32(unsigned long value)
273 273
274/* TODO: Implement set_irq_level and check CPU frequencies */ 274/* TODO: Implement set_irq_level and check CPU frequencies */
275 275
276#if CONFIG_CPU == S3C2440
277
278#define CPUFREQ_DEFAULT 98784000
279#define CPUFREQ_NORMAL 98784000
280#define CPUFREQ_MAX 296352000
281
282#else
283
276#define CPUFREQ_DEFAULT_MULT 8 284#define CPUFREQ_DEFAULT_MULT 8
277#define CPUFREQ_DEFAULT 24000000 285#define CPUFREQ_DEFAULT 24000000
278#define CPUFREQ_NORMAL_MULT 10 286#define CPUFREQ_NORMAL_MULT 10
@@ -280,6 +288,8 @@ static inline unsigned long swap32(unsigned long value)
280#define CPUFREQ_MAX_MULT 25 288#define CPUFREQ_MAX_MULT 25
281#define CPUFREQ_MAX 75000000 289#define CPUFREQ_MAX 75000000
282 290
291#endif
292
283static inline unsigned short swap16(unsigned short value) 293static inline unsigned short swap16(unsigned short value)
284 /* 294 /*
285 result[15..8] = value[ 7..0]; 295 result[15..8] = value[ 7..0];