diff options
author | Dave Chapman <dave@dchapman.com> | 2008-05-02 19:12:09 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2008-05-02 19:12:09 +0000 |
commit | f2042983f08cd49404be0b6916fc73d778fe8dba (patch) | |
tree | 33a84414ca4d94770f900e92074c18ecadf23ed7 /firmware/export/tcc77x.h | |
parent | 4cf4b5c2aef075b719e834f30d17c0986fadb658 (diff) | |
download | rockbox-f2042983f08cd49404be0b6916fc73d778fe8dba.tar.gz rockbox-f2042983f08cd49404be0b6916fc73d778fe8dba.zip |
Add the Sansa M200 (v1) as a target - it's extremely similar to the Logik DAX (the LCD driver worked unchanged). Plus various tcc77x work, including a working tick interrupt (enabled in the bootloader). Rockbox itself builds for the M200 (there are no keymaps yet for the DAX), but doesn't progress very far due to the lack of an ATA (NAND flash) driver.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17306 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/tcc77x.h')
-rw-r--r-- | firmware/export/tcc77x.h | 63 |
1 files changed, 62 insertions, 1 deletions
diff --git a/firmware/export/tcc77x.h b/firmware/export/tcc77x.h index 1ab1888649..bde8ca255f 100644 --- a/firmware/export/tcc77x.h +++ b/firmware/export/tcc77x.h | |||
@@ -45,7 +45,7 @@ | |||
45 | 45 | ||
46 | #define CLKCTRL (*(volatile unsigned long *)0x80000400) | 46 | #define CLKCTRL (*(volatile unsigned long *)0x80000400) |
47 | #define PLL0CFG (*(volatile unsigned long *)0x80000404) | 47 | #define PLL0CFG (*(volatile unsigned long *)0x80000404) |
48 | #define CLKDIV0 (*(volatile unsigned long *)0x8000040c) | 48 | #define CLKDIVC (*(volatile unsigned long *)0x8000040c) |
49 | #define MODECTR (*(volatile unsigned long *)0x80000410) | 49 | #define MODECTR (*(volatile unsigned long *)0x80000410) |
50 | #define BCLKCTR (*(volatile unsigned long *)0x80000414) | 50 | #define BCLKCTR (*(volatile unsigned long *)0x80000414) |
51 | #define SWRESET (*(volatile unsigned long *)0x80000418) | 51 | #define SWRESET (*(volatile unsigned long *)0x80000418) |
@@ -78,4 +78,65 @@ | |||
78 | #define CLKCFG (*(volatile unsigned long *)0xf0000020) | 78 | #define CLKCFG (*(volatile unsigned long *)0xf0000020) |
79 | #define SDCMD (*(volatile unsigned long *)0xf0000024) | 79 | #define SDCMD (*(volatile unsigned long *)0xf0000024) |
80 | 80 | ||
81 | |||
82 | /* IRQ Controller */ | ||
83 | |||
84 | #define TIMER0_IRQ_MASK (1<<6) | ||
85 | |||
86 | #define IEN (*(volatile unsigned long *)0x80000100) | ||
87 | #define CREQ (*(volatile unsigned long *)0x80000104) | ||
88 | #define IREQ (*(volatile unsigned long *)0x80000108) | ||
89 | #define IRQSEL (*(volatile unsigned long *)0x8000010c) | ||
90 | #define ICFG (*(volatile unsigned long *)0x80000110) | ||
91 | #define MREQ (*(volatile unsigned long *)0x80000114) | ||
92 | #define TSTREQ (*(volatile unsigned long *)0x80000118) | ||
93 | #define IRQ (*(volatile unsigned long *)0x80000120) | ||
94 | #define FIQ (*(volatile unsigned long *)0x80000124) | ||
95 | #define MIRQ (*(volatile unsigned long *)0x80000128) | ||
96 | #define MFIQ (*(volatile unsigned long *)0x8000012c) | ||
97 | #define TMODE (*(volatile unsigned long *)0x80000130) | ||
98 | #define SYNC (*(volatile unsigned long *)0x80000134) | ||
99 | #define WKUP (*(volatile unsigned long *)0x80000138) | ||
100 | |||
101 | /* Timer Controller */ | ||
102 | |||
103 | #define TCFG0 (*(volatile unsigned long *)0x80000200) | ||
104 | #define TCNT0 (*(volatile unsigned long *)0x80000204) | ||
105 | #define TREF0 (*(volatile unsigned long *)0x80000208) | ||
106 | #define TMREF0 (*(volatile unsigned long *)0x8000020c) | ||
107 | #define TCFG1 (*(volatile unsigned long *)0x80000210) | ||
108 | #define TCNT1 (*(volatile unsigned long *)0x80000214) | ||
109 | #define TREF1 (*(volatile unsigned long *)0x80000218) | ||
110 | #define TMREF1 (*(volatile unsigned long *)0x8000021c) | ||
111 | #define TCFG2 (*(volatile unsigned long *)0x80000220) | ||
112 | #define TCNT2 (*(volatile unsigned long *)0x80000224) | ||
113 | #define TREF2 (*(volatile unsigned long *)0x80000228) | ||
114 | #define TMREF2 (*(volatile unsigned long *)0x8000022c) | ||
115 | #define TCFG3 (*(volatile unsigned long *)0x80000230) | ||
116 | #define TCNT3 (*(volatile unsigned long *)0x80000234) | ||
117 | #define TREF3 (*(volatile unsigned long *)0x80000238) | ||
118 | #define TMREF3 (*(volatile unsigned long *)0x8000023c) | ||
119 | #define TCFG4 (*(volatile unsigned long *)0x80000240) | ||
120 | #define TCNT4 (*(volatile unsigned long *)0x80000244) | ||
121 | #define TREF4 (*(volatile unsigned long *)0x80000248) | ||
122 | #define TCFG5 (*(volatile unsigned long *)0x80000250) | ||
123 | #define TCNT5 (*(volatile unsigned long *)0x80000254) | ||
124 | #define TREF5 (*(volatile unsigned long *)0x80000258) | ||
125 | #define TIREQ (*(volatile unsigned long *)0x80000260) | ||
126 | #define TWDCFG (*(volatile unsigned long *)0x80000270) | ||
127 | #define TWDCLR (*(volatile unsigned long *)0x80000274) | ||
128 | #define TC32EN (*(volatile unsigned long *)0x80000280) | ||
129 | #define TC32LDV (*(volatile unsigned long *)0x80000284) | ||
130 | #define TC32CMP0 (*(volatile unsigned long *)0x80000288) | ||
131 | #define TC32CMP1 (*(volatile unsigned long *)0x8000028c) | ||
132 | #define TC32PCNT (*(volatile unsigned long *)0x80000290) | ||
133 | #define TC32MCNT (*(volatile unsigned long *)0x80000294) | ||
134 | #define TC32IRQ (*(volatile unsigned long *)0x80000298) | ||
135 | |||
136 | /* TIREQ flags */ | ||
137 | #define TF0 (1<<8) /* Timer 0 reference value reached */ | ||
138 | #define TF1 (1<<9) /* Timer 1 reference value reached */ | ||
139 | #define TI0 (1<<0) /* Timer 0 IRQ flag */ | ||
140 | #define TI1 (1<<1) /* Timer 1 IRQ flag */ | ||
141 | |||
81 | #endif | 142 | #endif |