1
0
Fork 0
forked from len0rd/rockbox

M:Robe 500: Add support for DMA based LCD updates when in Portrait mode. TestFPS measures 190 FPS with the DMA updates vs. 58 FPS for the non-DMA updates.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22435 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Karl Kurbjun 2009-08-20 00:36:39 +00:00
parent 6515d7f81f
commit 7b4d709f9d
2 changed files with 300 additions and 32 deletions

View file

@ -43,6 +43,9 @@ extern unsigned long _ttbstart;
#define PHY_IO_BASE2 0x00060000
#define DM320_REG2(addr) (*(volatile unsigned int *)(PHY_IO_BASE2 + (addr)))
#define COP_IO_BASE 0x00090000
#define DM320_COP(addr) (*(volatile unsigned short *)(COP_IO_BASE + (addr)))
/* This needs to be 2048 byte aligned, but USB_QHARRAY_ATTR should take care
* of that */
#define USB_QHARRAY_ATTR __attribute__((section(".qharray"),nocommon,aligned(4)))
@ -708,6 +711,21 @@ extern unsigned long _ttbstart;
#define VL_INTVEC30_R DM320_REG2(0x03e0)
#define VL_INTVEC74_R DM320_REG2(0x03e4)
/* Coprocessor Interface */
#define COP_SDEM_ADDRH DM320_COP(0xe000)
#define COP_SDEM_ADDRL DM320_COP(0xe002)
#define COP_SDEM_LOFST DM320_COP(0xe004)
#define COP_BUF_ADDR DM320_COP(0xe006)
#define COP_BUF_LOFST DM320_COP(0xe008)
#define COP_DMA_XNUM DM320_COP(0xe00a)
#define COP_DMA_YNUM DM320_COP(0xe00c)
#define COP_DMA_CTRL DM320_COP(0xe00e)
#define COP_BUF_MUX0 DM320_COP(0xe010)
#define COP_BUF_MUX1 DM320_COP(0xe012)
#define COP_IMG_MODE DM320_COP(0xe014)
#define COP_CP_CLKC DM320_COP(0xe502)
/* Taken from linux/include/asm-arm/arch-itdm320/irqs.h
*
* Copyright (C) 1999 ARM Limited