summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2006-03-17 02:02:13 +0000
committerThom Johansen <thomj@rockbox.org>2006-03-17 02:02:13 +0000
commitf6e856774c681d3c189dd6753fc041583f36866c (patch)
treee924dfe7d954ee90512ef9321da42cccf8ab3489 /firmware/export
parent4ba14d91135f75e98987887679b7b3d6bccb3120 (diff)
downloadrockbox-f6e856774c681d3c189dd6753fc041583f36866c.tar.gz
rockbox-f6e856774c681d3c189dd6753fc041583f36866c.zip
CPU boosting support for ipod nano and video. The rest of the targets
are either untested or do not work with the current code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9070 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config-ipodnano.h4
-rw-r--r--firmware/export/config-ipodvideo.h2
-rw-r--r--firmware/export/system.h7
3 files changed, 8 insertions, 5 deletions
diff --git a/firmware/export/config-ipodnano.h b/firmware/export/config-ipodnano.h
index 1843d1809c..6bcbffb3b2 100644
--- a/firmware/export/config-ipodnano.h
+++ b/firmware/export/config-ipodnano.h
@@ -73,7 +73,7 @@
73#define ROM_START 0x00000000 73#define ROM_START 0x00000000
74 74
75/* Define this to the CPU frequency */ 75/* Define this to the CPU frequency */
76#define CPU_FREQ 11289600 76#define CPU_FREQ 24000000
77 77
78#define CONFIG_LCD LCD_IPODNANO 78#define CONFIG_LCD LCD_IPODNANO
79 79
@@ -95,7 +95,7 @@
95#define CONFIG_LED LED_VIRTUAL 95#define CONFIG_LED LED_VIRTUAL
96 96
97/* Define this if you have adjustable CPU frequency */ 97/* Define this if you have adjustable CPU frequency */
98//#define HAVE_ADJUSTABLE_CPU_FREQ 98#define HAVE_ADJUSTABLE_CPU_FREQ
99 99
100#define BOOTFILE_EXT "ipod" 100#define BOOTFILE_EXT "ipod"
101#define BOOTFILE "rockbox." BOOTFILE_EXT 101#define BOOTFILE "rockbox." BOOTFILE_EXT
diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h
index 6057afa9d7..6ea9fcebb8 100644
--- a/firmware/export/config-ipodvideo.h
+++ b/firmware/export/config-ipodvideo.h
@@ -97,7 +97,7 @@
97#define CONFIG_LED LED_VIRTUAL 97#define CONFIG_LED LED_VIRTUAL
98 98
99/* Define this if you have adjustable CPU frequency */ 99/* Define this if you have adjustable CPU frequency */
100//#define HAVE_ADJUSTABLE_CPU_FREQ 100#define HAVE_ADJUSTABLE_CPU_FREQ
101 101
102#define BOOTFILE_EXT "ipod" 102#define BOOTFILE_EXT "ipod"
103#define BOOTFILE "rockbox." BOOTFILE_EXT 103#define BOOTFILE "rockbox." BOOTFILE_EXT
diff --git a/firmware/export/system.h b/firmware/export/system.h
index e88c793fae..eb5bb52053 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -305,8 +305,11 @@ static inline void invalidate_icache(void)
305 305
306/* TODO: Implement set_irq_level and check CPU frequencies */ 306/* TODO: Implement set_irq_level and check CPU frequencies */
307 307
308#define CPUFREQ_DEFAULT CPU_FREQ 308#define CPUFREQ_DEFAULT_MULT 8
309#define CPUFREQ_NORMAL 37500000 309#define CPUFREQ_DEFAULT 240000000
310#define CPUFREQ_NORMAL_MULT 10
311#define CPUFREQ_NORMAL 30000000
312#define CPUFREQ_MAX_MULT 25
310#define CPUFREQ_MAX 75000000 313#define CPUFREQ_MAX 75000000
311 314
312static inline unsigned short swap16(unsigned short value) 315static inline unsigned short swap16(unsigned short value)