summaryrefslogtreecommitdiff
path: root/firmware/export/config.h
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-07-02 05:16:40 +0000
committerJens Arnold <amiconn@rockbox.org>2007-07-02 05:16:40 +0000
commitfe23dc8f15e9d01ea634d10b334984f1d8760007 (patch)
tree5e12734e3f510c393ca272048f5425435ea26bf3 /firmware/export/config.h
parent36de1a4d084da18af22d47a435a4eebcf3c50fb2 (diff)
downloadrockbox-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/export/config.h')
-rw-r--r--firmware/export/config.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index ffcbf688ea..86e27d0031 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -43,9 +43,10 @@
43#define MCF5250 5250 43#define MCF5250 5250
44#define PP5002 5002 44#define PP5002 5002
45#define PP5020 5020 45#define PP5020 5020
46#define PP5022 5022
47#define PP5024 5024
46#define PNX0101 101 48#define PNX0101 101
47#define S3C2440 2440 49#define S3C2440 2440
48#define PP5024 5024
49#define TMS320DSC25 25 50#define TMS320DSC25 25
50 51
51/* CONFIG_KEYPAD */ 52/* CONFIG_KEYPAD */
@@ -279,8 +280,11 @@
279#endif 280#endif
280 281
281/* define for all cpus from PP family */ 282/* define for all cpus from PP family */
282#if (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020) || (CONFIG_CPU == PP5024) 283#if (CONFIG_CPU == PP5002)
284#define CPU_PP
285#elif (CONFIG_CPU == PP5020) || (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024)
283#define CPU_PP 286#define CPU_PP
287#define CPU_PP502x
284#endif 288#endif
285 289
286/* define for all cpus from ARM family */ 290/* define for all cpus from ARM family */