From 06c94740e510d0ce04e069f34631a0539e9e6742 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sat, 23 Jul 2011 11:45:18 +0000 Subject: imx233/fuze+: prepare target to enable MMU git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30199 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/imx233.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'firmware/export/imx233.h') diff --git a/firmware/export/imx233.h b/firmware/export/imx233.h index 182442c2ab..682240ac40 100644 --- a/firmware/export/imx233.h +++ b/firmware/export/imx233.h @@ -24,12 +24,14 @@ #define IRAM_ORIG 0 #define IRAM_SIZE 0x8000 #define DRAM_ORIG 0x40000000 -#define DRAM_SIZE 0x20000000 +#define DRAM_SIZE (MEMORYSIZE * 0x100000) -#define TTB_BASE_ADDR (DRAM_ORIG + (MEMORYSIZE*0x100000) - TTB_SIZE) -#define TTB_SIZE (0x4000) -#define TTB_BASE ((unsigned long *)TTB_BASE_ADDR) -#define FRAME_SIZE (240*320*2) +#define TTB_BASE_ADDR (IRAM_ORIG + IRAM_SIZE - TTB_SIZE) +#define TTB_SIZE 0x4000 +#define TTB_BASE ((unsigned long *)TTB_BASE_ADDR) +#define FRAME_SIZE (LCD_WIDTH * LCD_HEIGHT * LCD_DEPTH / 8) +#define LCD_FRAME_ADDR (DRAM_ORIG + DRAM_SIZE - FRAME_SIZE) +#define FRAME ((unsigned short *)LCD_FRAME_ADDR) /* USBOTG */ #define USB_QHARRAY_ATTR __attribute__((section(".qharray"),nocommon,aligned(2048))) @@ -48,5 +50,7 @@ #define __BLOCK_SFTRST (1 << 31) #define __BLOCK_CLKGATE (1 << 30) +#define CACHEALIGN_BITS 4 + #endif /* __IMX233_H__ */ -- cgit v1.2.3