diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-05-20 21:09:53 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-05-20 21:09:53 +0000 |
commit | 4633446517c002ed81cdbbc6acb9b8ffd9becc85 (patch) | |
tree | aa2e1dc82908bd4568e885a37545f94f07579a2a /firmware/export | |
parent | fba4be213f399f19933aadcce25498ea1fb0c176 (diff) | |
download | rockbox-4633446517c002ed81cdbbc6acb9b8ffd9becc85.tar.gz rockbox-4633446517c002ed81cdbbc6acb9b8ffd9becc85.zip |
Sansa AMS: Centralise mapping of RAM and IRAM in as3525.h via #defines. This will hopefully make ongoing mmu work easier as less places need to be changed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21000 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/as3525.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/firmware/export/as3525.h b/firmware/export/as3525.h index 388df2a925..326a7610bb 100644 --- a/firmware/export/as3525.h +++ b/firmware/export/as3525.h | |||
@@ -22,10 +22,28 @@ | |||
22 | 22 | ||
23 | #define UART_CHANNELS 1 | 23 | #define UART_CHANNELS 1 |
24 | 24 | ||
25 | |||
26 | #if MEMORYSIZE <= 2 | ||
27 | /* we put the codec buffer in IRAM */ | ||
28 | #define AMS_LOWMEM | ||
29 | #endif | ||
30 | /* these addresses are valid after mapping through the MMU */ | ||
31 | #define DRAM_ORIG 0x30000000 | ||
32 | #define IRAM_ORIG 0x0 | ||
33 | |||
34 | #define DRAM_SIZE (MEMORYSIZE * 0x100000) | ||
35 | #define IRAM_SIZE 0x50000 | ||
36 | |||
37 | |||
25 | /* AS352X only supports 512 Byte HW ECC */ | 38 | /* AS352X only supports 512 Byte HW ECC */ |
26 | #define ECCSIZE 512 | 39 | #define ECCSIZE 512 |
27 | #define ECCBYTES 3 | 40 | #define ECCBYTES 3 |
28 | 41 | ||
42 | /* AS352X MMU Page Table Entries */ | ||
43 | /* to be implemented */ | ||
44 | #define TTB_SIZE 0x0 /* Mimics OF */ | ||
45 | #define TTB_BASE_ADDR (DRAM_ORIG + DRAM_SIZE - TTB_SIZE) | ||
46 | |||
29 | 47 | ||
30 | /* AS352X device base addresses */ | 48 | /* AS352X device base addresses */ |
31 | 49 | ||