summaryrefslogtreecommitdiffstats
path: root/firmware/export/s3c2440.h
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2009-06-29 14:30:12 +0000
committerRafaël Carré <rafael.carre@gmail.com>2009-06-29 14:30:12 +0000
commitffefe0c08bdeeab725ce5fc054b3add4e05a1f7f (patch)
treedfc702293ed4218f62c57b8d3ba29e5ae49dc263 /firmware/export/s3c2440.h
parentc5dedd7d762f48e940ecc0bd17dd2173d59a92e1 (diff)
downloadrockbox-ffefe0c08bdeeab725ce5fc054b3add4e05a1f7f.tar.gz
rockbox-ffefe0c08bdeeab725ce5fc054b3add4e05a1f7f.tar.bz2
rockbox-ffefe0c08bdeeab725ce5fc054b3add4e05a1f7f.zip
Put TIMER_FREQ definition in CPU-specific config, and remove timer-target.h
Note : SH has TIMER_FREQ defined to CPU_FREQ, so any code wanting it must include #config.h before #cpu.h git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21560 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/s3c2440.h')
-rw-r--r--firmware/export/s3c2440.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/export/s3c2440.h b/firmware/export/s3c2440.h
index a7da64f688..2682660b45 100644
--- a/firmware/export/s3c2440.h
+++ b/firmware/export/s3c2440.h
@@ -550,4 +550,11 @@
#define DRAM1 0x31000000
#define BOOTRAM 0x40000000
+/* Timer frequency */
+
+/* timer is based on PCLK and minimum division is 2 */
+#define TIMER_FREQ (49156800/2)
+#define TIMER234_PRESCALE 21
+
+
#endif /* __S3C2440_H__ */