summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/system-target.h
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-06-19 05:55:18 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-06-19 05:55:18 +0000
commit432951201714e0eb2d6520cedc5d50a78f56c8bc (patch)
tree9cce9c645570d30550d9b964516bf4d0240487d6 /firmware/target/arm/as3525/system-target.h
parentffc7323ec3599d09bd3452658c154ad6cd857230 (diff)
downloadrockbox-432951201714e0eb2d6520cedc5d50a78f56c8bc.tar.gz
rockbox-432951201714e0eb2d6520cedc5d50a78f56c8bc.zip
fix r26953: use physical address for DMA buffer, also for IRAM
AMSv2 and AMSv1 lowmem put the codec buffer in IRAM so we need to adjust the address : AS3525_PHYSICAL_ADDRESS macro will do just that git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26954 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/system-target.h')
-rw-r--r--firmware/target/arm/as3525/system-target.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/system-target.h b/firmware/target/arm/as3525/system-target.h
index 5d11ecb26c..b3b9001a45 100644
--- a/firmware/target/arm/as3525/system-target.h
+++ b/firmware/target/arm/as3525/system-target.h
@@ -41,6 +41,10 @@
41#endif 41#endif
42 42
43#define AS3525_UNCACHED_ADDR(a) ((typeof(a)) ((uintptr_t)(a) + 0x10000000)) 43#define AS3525_UNCACHED_ADDR(a) ((typeof(a)) ((uintptr_t)(a) + 0x10000000))
44#define AS3525_PHYSICAL_ADDR(a) \
45 ((typeof(a)) ((((uintptr_t)(a)) & (MEM*0x100000)) \
46 ? (((uintptr_t)(a)) - IRAM_ORIG) \
47 : ((uintptr_t)(a))))
44 48
45#ifdef SANSA_C200V2 49#ifdef SANSA_C200V2
46/* 0: Backlight on A5, 1: Backlight on A7 */ 50/* 0: Backlight on A5, 1: Backlight on A7 */