diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-07-02 05:16:40 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-07-02 05:16:40 +0000 |
commit | fe23dc8f15e9d01ea634d10b334984f1d8760007 (patch) | |
tree | 5e12734e3f510c393ca272048f5425435ea26bf3 /firmware/rolo.c | |
parent | 36de1a4d084da18af22d47a435a4eebcf3c50fb2 (diff) | |
download | rockbox-fe23dc8f15e9d01ea634d10b334984f1d8760007.tar.gz rockbox-fe23dc8f15e9d01ea634d10b334984f1d8760007.zip |
Improved CPU clock setup for PP502x. PP5020 and PP5022 are not register compatible here, so define the PP5022 targets properly, and introduce a CPU_PP502x macro for easier family check. Improves stability on PP5020 (less freezing, tested with Mini G1) and reduces clock change penalty (500us on PP5020; uses the relock bit on PP5022).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13763 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/rolo.c')
-rw-r--r-- | firmware/rolo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/rolo.c b/firmware/rolo.c index 0b8a4f28ba..1ad59e216b 100644 --- a/firmware/rolo.c +++ b/firmware/rolo.c | |||
@@ -105,7 +105,7 @@ void rolo_restart(const unsigned char* source, unsigned char* dest, | |||
105 | { | 105 | { |
106 | long i; | 106 | long i; |
107 | unsigned char* localdest = dest; | 107 | unsigned char* localdest = dest; |
108 | #if (CONFIG_CPU==PP5020) || (CONFIG_CPU==PP5024) | 108 | #ifdef CPU_PP502x |
109 | unsigned long* memmapregs = (unsigned long*)0xf000f000; | 109 | unsigned long* memmapregs = (unsigned long*)0xf000f000; |
110 | #endif | 110 | #endif |
111 | 111 | ||
@@ -120,7 +120,7 @@ void rolo_restart(const unsigned char* source, unsigned char* dest, | |||
120 | "jmp (%0) \n" | 120 | "jmp (%0) \n" |
121 | : : "a"(dest) | 121 | : : "a"(dest) |
122 | ); | 122 | ); |
123 | #elif (CONFIG_CPU==PP5020) || (CONFIG_CPU==PP5024) | 123 | #elif defined(CPU_PP502x) |
124 | 124 | ||
125 | /* Tell the COP that we've finished loading and started rebooting */ | 125 | /* Tell the COP that we've finished loading and started rebooting */ |
126 | cpu_message = 0; | 126 | cpu_message = 0; |