From 5a9a2b7bc4e1e2a97ec731524bb7e127f5c8cacf Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Tue, 23 Oct 2007 03:29:15 +0000 Subject: Unify the Gigabeat F/X and M:Robe MMU code while enabling it for the M:Robe git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15275 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/dm320.h | 5 ++++- firmware/export/s3c2440.h | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/dm320.h b/firmware/export/dm320.h index 0c84444a66..4dfc55dcd3 100644 --- a/firmware/export/dm320.h +++ b/firmware/export/dm320.h @@ -25,7 +25,10 @@ #define __DM320_H__ #define LCD_BUFFER_SIZE (640*480*4) -#define FRAME ((short *) (0x4900000-LCD_BUFFER_SIZE)) /* Put the buffer at the end of mem */ +#define TTB_SIZE (0x4000) +/* must be 16Kb (0x4000) aligned */ +#define TTB_BASE ((unsigned int *)(0x04900000 - TTB_SIZE)) /* End of memory */ +#define FRAME ((short *) (TTB_BASE - LCD_BUFFER_SIZE)) /* Right before TTB */ #define PHY_IO_BASE 0x00030000 #define DM320_REG(addr) (*(volatile unsigned short *)(PHY_IO_BASE + (addr))) diff --git a/firmware/export/s3c2440.h b/firmware/export/s3c2440.h index 1eaa77bf80..e43dd7688d 100644 --- a/firmware/export/s3c2440.h +++ b/firmware/export/s3c2440.h @@ -229,7 +229,7 @@ #define TTB_SIZE (0x4000) /*#define FRAME ( (short *) 0x31E00000 ) */ /* LCD Frame buffer - Firmware Address */ /* must be 16Kb (0x4000) aligned */ -#define TTB_BASE (0x30000000 + (32*1024*1024) - TTB_SIZE) /* End of memory */ +#define TTB_BASE ((unsigned int *)(0x30000000 + (32*1024*1024) - TTB_SIZE)) /* End of memory */ #define FRAME ((short *) (TTB_BASE - LCD_BUFFER_SIZE)) /* Right before TTB */ /* NAND Flash */ -- cgit v1.2.3