From 4d3a020f274d49c2b8f10cfdad8c67aaa153bebe Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 7 Feb 2009 10:09:13 +0000 Subject: Gigabeat S: Move the LCD framebuffer address so that DRAM can be mapped flat between physical and virtual addresses. NO BOOTLOADER UPDATE SHOULD BE NEEDED. The firmware image now handles low-level system setup as well. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19935 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/imx31l.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/imx31l.h b/firmware/export/imx31l.h index c9ef446e90..e31f30f1b0 100755 --- a/firmware/export/imx31l.h +++ b/firmware/export/imx31l.h @@ -28,12 +28,14 @@ #define REG32_PTR_T volatile unsigned long * /* Place in the section with the framebuffer */ -#define TTB_BASE_ADDR (0x80100000 + 0x00100000 - TTB_SIZE) +#define TTB_BASE_ADDR (CSD0_BASE_ADDR + (MEM*0x100000) - TTB_SIZE) #define TTB_SIZE (0x4000) #define IRAM_SIZE (0x4000) #define TTB_BASE ((unsigned long *)TTB_BASE_ADDR) -#define FRAME ((void*)0x03f00000) #define FRAME_SIZE (240*320*2) +/* Rockbox framebuffer address, not retail OS */ +#define FRAME_PHYS_ADDR (TTB_BASE_ADDR - FRAME_SIZE) +#define FRAME ((void *)(FRAME_PHYS_ADDR-CSD0_BASE_ADDR)) #define DEVBSS_ATTR __attribute__((section(".devbss"),nocommon)) /* USBOTG */ @@ -411,6 +413,11 @@ #define IPU_BRK_CTRL_2 (*(REG32_PTR_T)(IPU_CTRL_BASE_ADDR+0x54)) #define IPU_BRK_STAT (*(REG32_PTR_T)(IPU_CTRL_BASE_ADDR+0x58)) #define IPU_DIAGB_CTRL (*(REG32_PTR_T)(IPU_CTRL_BASE_ADDR+0x60)) +#define IPU_IDMAC_CONF (*(REG32_PTR_T)(IPU_CTRL_BASE_ADDR+0xA4)) +#define IPU_IDMAC_CHA_EN (*(REG32_PTR_T)(IPU_CTRL_BASE_ADDR+0xA8)) +#define IPU_IDMAC_CHA_PRI (*(REG32_PTR_T)(IPU_CTRL_BASE_ADDR+0xAC)) +#define IPU_IDMAC_CHA_BUSY (*(REG32_PTR_T)(IPU_CTRL_BASE_ADDR+0xB0)) + /* ATA */ -- cgit v1.2.3