summaryrefslogtreecommitdiffstats
path: root/firmware/export/s3c2440.h
diff options
context:
space:
mode:
authorBob Cousins <bobc@rockbox.org>2009-10-31 23:35:20 +0000
committerBob Cousins <bobc@rockbox.org>2009-10-31 23:35:20 +0000
commitf27b135219eedfec9d629b62b606ee817ec89326 (patch)
treec0992ab5640ab532b236488c953d6f547d0febd1 /firmware/export/s3c2440.h
parent4eafd23f42272bd55394842e8c691cde0aac3d39 (diff)
downloadrockbox-f27b135219eedfec9d629b62b606ee817ec89326.tar.gz
rockbox-f27b135219eedfec9d629b62b606ee817ec89326.tar.bz2
rockbox-f27b135219eedfec9d629b62b606ee817ec89326.zip
Replace hard coded memory size
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23453 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/s3c2440.h')
-rw-r--r--firmware/export/s3c2440.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/export/s3c2440.h b/firmware/export/s3c2440.h
index b6ba79a34e..da2ea8937f 100644
--- a/firmware/export/s3c2440.h
+++ b/firmware/export/s3c2440.h
@@ -24,9 +24,11 @@
#define LCD_BUFFER_SIZE (320*240*2)
#define TTB_SIZE (0x4000)
/* must be 16Kb (0x4000) aligned */
-#define TTB_BASE_ADDR (0x30000000 + (32*1024*1024) - TTB_SIZE)
+#define TTB_BASE_ADDR (0x30000000 + (MEMORYSIZE*1024*1024) - TTB_SIZE)
+#define LCD_FRAME_ADDR (TTB_BASE_ADDR - LCD_BUFFER_SIZE)
+
#define TTB_BASE ((unsigned long *)TTB_BASE_ADDR) /* End of memory */
-#define FRAME ((unsigned short *)(TTB_BASE_ADDR - LCD_BUFFER_SIZE)) /* Right before TTB */
+#define FRAME ((unsigned short *)LCD_FRAME_ADDR) /* Right before TTB */
/* Memory Controllers */