summaryrefslogtreecommitdiff
path: root/firmware/target/arm/ata-as-arm.S
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/target/arm/ata-as-arm.S
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/target/arm/ata-as-arm.S')
-rw-r--r--firmware/target/arm/ata-as-arm.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/ata-as-arm.S b/firmware/target/arm/ata-as-arm.S
index 32fc28c4e0..5c0a1f9660 100644
--- a/firmware/target/arm/ata-as-arm.S
+++ b/firmware/target/arm/ata-as-arm.S
@@ -25,8 +25,8 @@
25 * setup. Needs investigation. */ 25 * setup. Needs investigation. */
26 .section .icode,"ax",%progbits 26 .section .icode,"ax",%progbits
27 .equ .ata_port, 0xc00031e0 27 .equ .ata_port, 0xc00031e0
28#elif CONFIG_CPU == PP5020 28#elif defined CPU_PP502x
29 /* Verified working on (PP5020, PP5021, PP5022) targets */ 29 /* Verified working on (PP5020, PP5022) targets */
30 .section .icode,"ax",%progbits 30 .section .icode,"ax",%progbits
31 .equ .ata_port, 0xc30001e0 31 .equ .ata_port, 0xc30001e0
32#elif CONFIG_CPU == S3C2440 32#elif CONFIG_CPU == S3C2440