summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-08-20 00:36:39 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-08-20 00:36:39 +0000
commit7b4d709f9df3115a1be11d15c1e77c59b5538d8c (patch)
tree617433273791f0e1073eaa198a9dc10377d43d47 /firmware/export
parent6515d7f81fa5bd03c426204e91ff17e659e2c39c (diff)
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
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/dm320.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/firmware/export/dm320.h b/firmware/export/dm320.h
index 619a77fb9a..f78fc6c6d6 100644
--- a/firmware/export/dm320.h
+++ b/firmware/export/dm320.h
@@ -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