summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-01-21 22:22:06 +0000
committerJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-01-21 22:22:06 +0000
commit948f0b849785b3e727be6584470d1bb32238ec6a (patch)
treebf00135cfebe4d881d2e193d635c20bacabdce79
parentd392ffc3659554f7d34454b138fd1aa53d70b8af (diff)
downloadrockbox-948f0b849785b3e727be6584470d1bb32238ec6a.tar.gz
rockbox-948f0b849785b3e727be6584470d1bb32238ec6a.tar.bz2
rockbox-948f0b849785b3e727be6584470d1bb32238ec6a.zip
more MMIO support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5627 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/export/tcc730.h42
1 files changed, 38 insertions, 4 deletions
diff --git a/firmware/export/tcc730.h b/firmware/export/tcc730.h
index 311e43b9e7..97c4f2a578 100644
--- a/firmware/export/tcc730.h
+++ b/firmware/export/tcc730.h
@@ -26,6 +26,7 @@
#define IOBASE (0x3f0000)
#define MMIO(t, x) (*(volatile t*)(IOBASE+(x)))
+#define WDTEN MMIO(unsigned char, 0x06)
#define WDTCON MMIO(unsigned char, 0x07)
#define TACON MMIO(unsigned char, 0x08)
@@ -39,16 +40,49 @@
#define P0 MMIO(unsigned char, 0x30)
#define P1 MMIO(unsigned char, 0x31)
#define P2 MMIO(unsigned char, 0x32)
+#define P3 MMIO(unsigned char, 0x33)
+#define P4 MMIO(unsigned char, 0x34)
+#define P5 MMIO(unsigned char, 0x35)
+#define P6 MMIO(unsigned char, 0x36)
+#define P7 MMIO(unsigned char, 0x37)
+#define P8 MMIO(unsigned char, 0x38)
+#define P9 MMIO(unsigned char, 0x39)
+#define P10 MMIO(unsigned char, 0x3A)
+
+#define P0CON MMIO(unsigned char,0x40)
+#define P1CON MMIO(unsigned char,0x41)
+#define P2CON MMIO(unsigned int,0x42)
+#define P2CONH MMIO(unsigned char,0x42)
+#define P2CONL MMIO(unsigned char,0x43)
+#define P3CON MMIO(unsigned int,0x44)
+#define P3PUR MMIO(unsigned char,0x46)
+#define P5CON MMIO(unsigned char,0x48)
+#define P5PUR MMIO(unsigned char,0x49)
+#define P5INTMOD MMIO(unsigned int,0x4A)
+#define P5INTCON MMIO(unsigned char,0x4C)
+#define P4CON MMIO(unsigned char,0x50)
+#define P4INTCON MMIO(unsigned char,0x51)
+#define P4INTMOD MMIO(unsigned char,0x52)
+#define P6CON MMIO(unsigned char,0x53)
+#define P7CON MMIO(unsigned char,0x54)
+#define P8CON MMIO(unsigned char,0x55)
+#define P9CON MMIO(unsigned char,0x56)
+#define P10CON MMIO(unsigned char,0x57)
#define ADDATA MMIO(unsigned int, 0x74)
#define ADCON MMIO(unsigned char, 0x76)
-#define PLL0DATA MMIO(unsigned char, 0xA8)
-#define PLL0CON MMIO(unsigned int, 0xAA)
-#define PLL1DATA MMIO(unsigned char, 0xAC)
-#define PLL1CON MMIO(unsigned int, 0xAE)
+#define PLL0DATA MMIO(unsigned int, 0xA8)
+#define PLL0CON MMIO(unsigned char, 0xAA)
+#define PLL1DATA MMIO(unsigned int, 0xAC)
+#define PLL1CON MMIO(unsigned char, 0xAE)
#define MIUSCFG MMIO(unsigned char, 0x110)
+#define MIUDCOM MMIO(unsigned char, 0x111)
+#define MIUDCFG MMIO(unsigned int, 0x112)
+#define MIUDCNT MMIO(unsigned int, 0x114)
+
+
#define DDMACOM MMIO(unsigned char, 0x120)
#define DDMACFG MMIO(unsigned char, 0x121)