summaryrefslogtreecommitdiff
path: root/firmware/export/mcf5249.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/mcf5249.h')
-rw-r--r--firmware/export/mcf5249.h229
1 files changed, 229 insertions, 0 deletions
diff --git a/firmware/export/mcf5249.h b/firmware/export/mcf5249.h
new file mode 100644
index 0000000000..154644647d
--- /dev/null
+++ b/firmware/export/mcf5249.h
@@ -0,0 +1,229 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2004 by Linus Nielsen Feltzing
11 *
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19#ifndef __MCF5249_H__
20#define __MCF5249_H__
21
22#define MBAR 0x40000000
23#define MBAR2 0x80000000
24
25#define SYSTEM_CTRL (*(unsigned char *)(MBAR + 0x000))
26#define BUSMASTER_CTRL (*(unsigned char *)(MBAR + 0x00c))
27
28#define IPR (*(unsigned long *)(MBAR + 0x040))
29#define IMR (*(unsigned long *)(MBAR + 0x044))
30#define ICR0 (*(unsigned long *)(MBAR + 0x04c))
31#define ICR4 (*(unsigned long *)(MBAR + 0x050))
32#define ICR8 (*(unsigned long *)(MBAR + 0x054))
33
34#define CSAR0 (*(unsigned long *)(MBAR + 0x080))
35#define CSMR0 (*(unsigned long *)(MBAR + 0x084))
36#define CSCR0 (*(unsigned long *)(MBAR + 0x088))
37#define CSAR1 (*(unsigned long *)(MBAR + 0x08c))
38#define CSMR1 (*(unsigned long *)(MBAR + 0x090))
39#define CSCR1 (*(unsigned long *)(MBAR + 0x094))
40#define CSAR2 (*(unsigned long *)(MBAR + 0x098))
41#define CSMR2 (*(unsigned long *)(MBAR + 0x09c))
42#define CSCR2 (*(unsigned long *)(MBAR + 0x0a0))
43#define CSAR3 (*(unsigned long *)(MBAR + 0x0a4))
44#define CSMR3 (*(unsigned long *)(MBAR + 0x0a8))
45#define CSCR3 (*(unsigned long *)(MBAR + 0x0ac))
46
47#define DCR (*(unsigned long *)(MBAR + 0x100))
48#define DACR0 (*(unsigned long *)(MBAR + 0x108))
49#define DMR0 (*(unsigned long *)(MBAR + 0x10c))
50#define DACR1 (*(unsigned long *)(MBAR + 0x110))
51#define DMR1 (*(unsigned long *)(MBAR + 0x114))
52#define TMR0 (*(unsigned long *)(MBAR + 0x140))
53#define TRR0 (*(unsigned long *)(MBAR + 0x144))
54#define TCR0 (*(unsigned long *)(MBAR + 0x148))
55#define TCN0 (*(unsigned long *)(MBAR + 0x14c))
56#define TER0 (*(unsigned long *)(MBAR + 0x150))
57#define TMR1 (*(unsigned long *)(MBAR + 0x180))
58#define TRR1 (*(unsigned long *)(MBAR + 0x184))
59#define TCR1 (*(unsigned long *)(MBAR + 0x188))
60#define TCN1 (*(unsigned long *)(MBAR + 0x18c))
61#define TER1 (*(unsigned long *)(MBAR + 0x190))
62
63#define UMR10 (*(unsigned char *)(MBAR + 0x1c0))
64#define UMR20 (*(unsigned char *)(MBAR + 0x1c0))
65#define USR0 (*(unsigned char *)(MBAR + 0x1c4))
66#define UCSR0 (*(unsigned char *)(MBAR + 0x1c4))
67#define UCR0 (*(unsigned char *)(MBAR + 0x1c8))
68#define URB0 (*(unsigned char *)(MBAR + 0x1cc))
69#define UTB0 (*(unsigned char *)(MBAR + 0x1cc))
70#define UIPCR0 (*(unsigned char *)(MBAR + 0x1d0))
71#define UACR0 (*(unsigned char *)(MBAR + 0x1d0))
72#define UISR0 (*(unsigned char *)(MBAR + 0x1d4))
73#define UIMR0 (*(unsigned char *)(MBAR + 0x1d4))
74#define UBG10 (*(unsigned char *)(MBAR + 0x1d8))
75#define UBG20 (*(unsigned char *)(MBAR + 0x1dc))
76#define UIVR0 (*(unsigned char *)(MBAR + 0x1f0))
77#define UIP0 (*(unsigned char *)(MBAR + 0x1f4))
78#define UOP10 (*(unsigned char *)(MBAR + 0x1f8))
79#define UOP00 (*(unsigned char *)(MBAR + 0x1fc))
80
81#define UMR11 (*(unsigned char *)(MBAR + 0x200))
82#define UMR21 (*(unsigned char *)(MBAR + 0x200))
83#define USR1 (*(unsigned char *)(MBAR + 0x204))
84#define UCSR1 (*(unsigned char *)(MBAR + 0x204))
85#define UCR1 (*(unsigned char *)(MBAR + 0x208))
86#define URB1 (*(unsigned char *)(MBAR + 0x20c))
87#define UTB1 (*(unsigned char *)(MBAR + 0x20c))
88#define UIPCR1 (*(unsigned char *)(MBAR + 0x210))
89#define UACR1 (*(unsigned char *)(MBAR + 0x210))
90#define UISR1 (*(unsigned char *)(MBAR + 0x214))
91#define UIMR1 (*(unsigned char *)(MBAR + 0x214))
92#define UBG11 (*(unsigned char *)(MBAR + 0x218))
93#define UBG21 (*(unsigned char *)(MBAR + 0x21c))
94#define UIVR1 (*(unsigned char *)(MBAR + 0x230))
95#define UIP1 (*(unsigned char *)(MBAR + 0x234))
96#define UOP11 (*(unsigned char *)(MBAR + 0x238))
97#define UOP01 (*(unsigned char *)(MBAR + 0x23c))
98
99#define MADR (*(unsigned char *)(MBAR + 0x280))
100#define MFDR (*(unsigned char *)(MBAR + 0x284))
101#define MBCR (*(unsigned char *)(MBAR + 0x288))
102#define MBSR (*(unsigned char *)(MBAR + 0x28c))
103#define MBDR (*(unsigned char *)(MBAR + 0x290))
104
105#define SAR0 (*(unsigned long *)(MBAR + 0x300))
106#define DAR0 (*(unsigned long *)(MBAR + 0x304))
107#define DCR0 (*(unsigned short *)(MBAR + 0x308))
108#define BCR0 (*(unsigned short *)(MBAR + 0x30c))
109#define DSR0 (*(unsigned char *)(MBAR + 0x310))
110#define DIVR0 (*(unsigned char *)(MBAR + 0x314))
111
112#define SAR1 (*(unsigned long *)(MBAR + 0x340))
113#define DAR1 (*(unsigned long *)(MBAR + 0x344))
114#define DCR1 (*(unsigned short *)(MBAR + 0x348))
115#define BCR1 (*(unsigned short *)(MBAR + 0x34c))
116#define DSR1 (*(unsigned char *)(MBAR + 0x350))
117#define DIVR1 (*(unsigned char *)(MBAR + 0x354))
118
119#define SAR2 (*(unsigned long *)(MBAR + 0x380))
120#define DAR2 (*(unsigned long *)(MBAR + 0x384))
121#define DCR2 (*(unsigned short *)(MBAR + 0x388))
122#define BCR2 (*(unsigned short *)(MBAR + 0x38c))
123#define DSR2 (*(unsigned char *)(MBAR + 0x390))
124#define DIVR2 (*(unsigned char *)(MBAR + 0x394))
125
126#define SAR3 (*(unsigned long *)(MBAR + 0x3c0))
127#define DAR3 (*(unsigned long *)(MBAR + 0x3c4))
128#define DCR3 (*(unsigned short *)(MBAR + 0x3c8))
129#define BCR3 (*(unsigned short *)(MBAR + 0x3cc))
130#define DSR3 (*(unsigned char *)(MBAR + 0x3d0))
131#define DIVR3 (*(unsigned char *)(MBAR + 0x3d4))
132
133#define QSPIMR (*(unsigned short *)(MBAR + 0x400))
134#define QSPIQDLYR (*(unsigned short *)(MBAR + 0x404))
135#define QSPIQWR (*(unsigned short *)(MBAR + 0x408))
136#define QSPIQIR (*(unsigned short *)(MBAR + 0x40c))
137#define QSPIQAR (*(unsigned short *)(MBAR + 0x410))
138#define QIR (*(unsigned short *)(MBAR + 0x414))
139
140#define GPIO_READ (*(unsigned long *)(MBAR2 + 0x000))
141#define GPIO_OUT (*(unsigned long *)(MBAR2 + 0x004))
142#define GPIO_ENABLE (*(unsigned long *)(MBAR2 + 0x008))
143#define GPIO_FUNCTION (*(unsigned long *)(MBAR2 + 0x00c))
144
145#define IIS1CONFIG (*(unsigned long *)(MBAR2 + 0x010))
146#define IIS2CONFIG (*(unsigned long *)(MBAR2 + 0x014))
147#define IIS3CONFIG (*(unsigned long *)(MBAR2 + 0x018))
148#define IIS4CONFIG (*(unsigned long *)(MBAR2 + 0x01c))
149#define EBU1CONFIG (*(unsigned long *)(MBAR2 + 0x020))
150#define EBU1RCVCCHANNEL1 (*(unsigned long *)(MBAR2 + 0x024))
151#define EBUTXCCHANNEL1 (*(unsigned long *)(MBAR2 + 0x028))
152#define EBUTXCCHANNEL2 (*(unsigned long *)(MBAR2 + 0x02c))
153#define DATAINCONTROL (*(unsigned long *)(MBAR2 + 0x030))
154#define PDIR1_L (*(unsigned long *)(MBAR2 + 0x034))
155#define PDIR3_L (*(unsigned long *)(MBAR2 + 0x044))
156#define PDIR1_R (*(unsigned long *)(MBAR2 + 0x054))
157#define PDIR3_R (*(unsigned long *)(MBAR2 + 0x064))
158#define PDOR1_L (*(unsigned long *)(MBAR2 + 0x034))
159#define PDOR1_R (*(unsigned long *)(MBAR2 + 0x044))
160#define PDOR2_L (*(unsigned long *)(MBAR2 + 0x054))
161#define PDOR2_R (*(unsigned long *)(MBAR2 + 0x064))
162#define PDIR3 (*(unsigned long *)(MBAR2 + 0x074))
163#define PDOR3 (*(unsigned long *)(MBAR2 + 0x074))
164#define UCHANNELTRANSMIT (*(unsigned long *)(MBAR2 + 0x084))
165#define U1CHANNELRECEIVE (*(unsigned long *)(MBAR2 + 0x088))
166#define Q1CHANNELRECEIVE (*(unsigned long *)(MBAR2 + 0x08c))
167#define CD_TEXT_CONTROL (*(unsigned char *)(MBAR2 + 0x092))
168#define INTERRUPTEN (*(unsigned long *)(MBAR2 + 0x094))
169#define INTERRUPTCLEAR (*(unsigned long *)(MBAR2 + 0x098))
170#define INTERRUPTSTAT (*(unsigned long *)(MBAR2 + 0x098))
171#define DMACONFIG (*(unsigned char *)(MBAR2 + 0x09f))
172#define PHASECONFIG (*(unsigned char *)(MBAR2 + 0x0a3))
173#define XTRIM (*(unsigned short *)(MBAR2 + 0x0a6))
174#define FREQMEAS (*(unsigned long *)(MBAR2 + 0x0a8))
175#define BLOCKCONTROL (*(unsigned short *)(MBAR2 + 0x0ca))
176#define AUDIOGLOB (*(unsigned short *)(MBAR2 + 0x0ce))
177#define EBU2CONFIG (*(unsigned long *)(MBAR2 + 0x0d0))
178#define EBU2RCVCCHANNEL1 (*(unsigned short *)(MBAR2 + 0x0d4))
179#define U2CHANNELRECEIVE (*(unsigned long *)(MBAR2 + 0x0d8))
180#define Q2CHANNELRECEIVE (*(unsigned long *)(MBAR2 + 0x0dc))
181
182#define GPIO1_READ (*(unsigned long *)(MBAR2 + 0x0b0))
183#define GPIO1_OUT (*(unsigned long *)(MBAR2 + 0x0b4))
184#define GPIO1_ENABLE (*(unsigned long *)(MBAR2 + 0x0b8))
185#define GPIO1_FUNCTION (*(unsigned long *)(MBAR2 + 0x0bc))
186#define GPIO_INT_STAT (*(unsigned long *)(MBAR2 + 0x0c0))
187#define GPIO_INT_CLEAR (*(unsigned long *)(MBAR2 + 0x0c0))
188#define GPIO_INT_EN (*(unsigned long *)(MBAR2 + 0x0c4))
189#define INTERRUPTSTAT3 (*(unsigned long *)(MBAR2 + 0x0e0))
190#define INTERRUPTCLEAR3 (*(unsigned long *)(MBAR2 + 0x0e0))
191#define INTERRUPTEN3 (*(unsigned long *)(MBAR2 + 0x0e4))
192#define INTPRI1 (*(unsigned long *)(MBAR2 + 0x140))
193#define INTPRI2 (*(unsigned long *)(MBAR2 + 0x144))
194#define INTPRI3 (*(unsigned long *)(MBAR2 + 0x148))
195#define INTPRI4 (*(unsigned long *)(MBAR2 + 0x14c))
196#define INTPRI5 (*(unsigned long *)(MBAR2 + 0x150))
197#define INTPRI6 (*(unsigned long *)(MBAR2 + 0x154))
198#define INTPRI7 (*(unsigned long *)(MBAR2 + 0x158))
199#define INTPRI8 (*(unsigned long *)(MBAR2 + 0x15c))
200#define SPURVEC (*(unsigned char *)(MBAR2 + 0x167))
201#define INTBASE (*(unsigned char *)(MBAR2 + 0x16b))
202#define PLLCONTROL (*(unsigned long *)(MBAR2 + 0x180))
203#define DMAROUTE (*(unsigned long *)(MBAR2 + 0x188))
204#define IDECONFIG1 (*(unsigned long *)(MBAR2 + 0x18c))
205#define IDECONFIG2 (*(unsigned long *)(MBAR2 + 0x190))
206#define IPERRORADR (*(unsigned long *)(MBAR2 + 0x194))
207#define EXTRAINT (*(unsigned long *)(MBAR2 + 0x198))
208
209#define ADCONFIG (*(unsigned short *)(MBAR2 + 0x402))
210#define ADVALUE (*(unsigned short *)(MBAR2 + 0x406))
211#define MADR2 (*(unsigned char *)(MBAR2 + 0x440))
212#define MFDR2 (*(unsigned char *)(MBAR2 + 0x444))
213#define MBCR2 (*(unsigned char *)(MBAR2 + 0x448))
214#define MBSR2 (*(unsigned char *)(MBAR2 + 0x44c))
215#define MBDR2 (*(unsigned char *)(MBAR2 + 0x450))
216
217#define FLASHMEDIACONFIG (*(unsigned long *)(MBAR2 + 0x460))
218#define FLASHMEDIACMD1 (*(unsigned long *)(MBAR2 + 0x464))
219#define FLASHMEDIACMD2 (*(unsigned long *)(MBAR2 + 0x468))
220#define FLASHMEDIADATA1 (*(unsigned long *)(MBAR2 + 0x46c))
221#define FLASHMEDIADATA2 (*(unsigned long *)(MBAR2 + 0x470))
222#define FLASHMEDIASTATUS (*(unsigned long *)(MBAR2 + 0x474))
223#define FLASHMEDIAINTEN (*(unsigned long *)(MBAR2 + 0x478))
224#define FLASHMEDIAINTSTAT (*(unsigned long *)(MBAR2 + 0x47c))
225#define FLASHMEDIAINTCLEAR (*(unsigned long *)(MBAR2 + 0x47c))
226
227#define DEVICE_ID (*(unsigned long *)(MBAR2 + 0x0ac))
228
229#endif