From 4633446517c002ed81cdbbc6acb9b8ffd9becc85 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Wed, 20 May 2009 21:09:53 +0000 Subject: 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 --- firmware/export/as3525.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'firmware/export') 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 @@ #define UART_CHANNELS 1 + +#if MEMORYSIZE <= 2 +/* we put the codec buffer in IRAM */ +#define AMS_LOWMEM +#endif +/* these addresses are valid after mapping through the MMU */ +#define DRAM_ORIG 0x30000000 +#define IRAM_ORIG 0x0 + +#define DRAM_SIZE (MEMORYSIZE * 0x100000) +#define IRAM_SIZE 0x50000 + + /* AS352X only supports 512 Byte HW ECC */ #define ECCSIZE 512 #define ECCBYTES 3 +/* AS352X MMU Page Table Entries */ +/* to be implemented */ +#define TTB_SIZE 0x0 /* Mimics OF */ +#define TTB_BASE_ADDR (DRAM_ORIG + DRAM_SIZE - TTB_SIZE) + /* AS352X device base addresses */ -- cgit v1.2.3