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/target/arm/system-target.h | |
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/target/arm/system-target.h')
-rw-r--r-- | firmware/target/arm/system-target.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/system-target.h b/firmware/target/arm/system-target.h index 7a4c8b603c..afb1ce7314 100644 --- a/firmware/target/arm/system-target.h +++ b/firmware/target/arm/system-target.h | |||
@@ -36,7 +36,7 @@ static inline void udelay(unsigned usecs) | |||
36 | while (TIME_BEFORE(USEC_TIMER, stop)); | 36 | while (TIME_BEFORE(USEC_TIMER, stop)); |
37 | } | 37 | } |
38 | 38 | ||
39 | #if CONFIG_CPU == PP5020 || CONFIG_CPU == PP5024 | 39 | #ifdef CPU_PP502x |
40 | static inline unsigned int current_core(void) | 40 | static inline unsigned int current_core(void) |
41 | { | 41 | { |
42 | /* | 42 | /* |