carl9170: Update to latest upstream
[linux-libre-firmware.git] / usbdux / fx2-include.asm
1 ; rev 0.91
2 ; (c) Bernd Porr, BerndPorr@f2s.com
3 ; GPL, GNU public license
4 ;
5 ;   This program is free software; you can redistribute it and/or modify
6 ;   it under the terms of the GNU General Public License as published by
7 ;   the Free Software Foundation; either version 2 of the License, or
8 ;   (at your option) any later version.
9 ;
10 ;   This program is distributed in the hope that it will be useful,
11 ;   but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ;   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 ;   GNU General Public License for more details.
14 ;
15 ;   You should have received a copy of the GNU General Public License
16 ;   along with this program; if not, write to the Free Software
17 ;   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 ;
19 ; In conjunction with the as31.
20 ; Include-file for the FX2 by Cypress. The rest of the regs is defined
21 ; by the as31 itself.
22 ;
23 ; from the TRM of the FX2:
24 ;
25         ;;  CPU control
26         .equ    CPUCS,0E600H
27         .equ    REVCTL,0E60BH
28         ;; interface config
29         .equ    IFCONFIG,0E601H
30         .equ    FIFORESET,0E604H
31         ;; Endpoint configs
32         .equ    EP1OUTCFG,0E610H
33         .equ    EP1INCFG,0E611H
34         .equ    EP2CFG,0E612H
35         .equ    EP4CFG,0E613H
36         .equ    EP6CFG,0E614H
37         .equ    EP8CFG,0E615H
38         ;; packets per frame, always one for USB 1.1
39         .equ    EP2ISOINPKTS,0E640H
40         .equ    EP4ISOINPKTS,0E641H
41         .equ    EP6ISOINPKTS,0E642H
42         .equ    EP8ISOINPKTS,0E643H
43         ;; endpoint byte counts
44         .equ    EP1OUTBC,0E68DH
45         .equ    EP2BCH,0E690H
46         .equ    EP2BCL,0E691H
47         .equ    EP4BCH,0E694H
48         .equ    EP4BCL,0E695H
49         .equ    EP6BCH,0E698H
50         .equ    EP6BCL,0E699H
51         .equ    EP8BCH,0E69CH
52         .equ    EP8BCL,0E69DH
53         ;;
54         .equ    EP4AUTOINLENH,0E622H
55         .equ    EP4AUTOINLENL,0E623H
56         .equ    EP6AUTOINLENH,0E624H
57         .equ    EP6AUTOINLENL,0E625H
58         .equ    EP2FIFOCFG,0E618H
59         .equ    EP4FIFOCFG,0E619H
60         .equ    EP6FIFOCFG,0E61AH
61         .equ    EP8FIFOCFG,0E61BH
62         ;; 
63         .equ    INPKTEND,0E648H
64         .equ    OUTPKTEND,0E649H
65         .equ    GPIFCTLCFG,0E6C3H
66         .equ    GPIFABORT,0E6F5H
67         .equ    GPIFIDLECTL,0E6C2H
68         .equ    GPIFWFSELECT,0E6C0H
69         .equ    GPIFREADYCFG,0E6F3H
70         .equ    GPIFIDLECS,0E6C1H
71         .equ    EP6GPIFFLGSEL,0E6E2H
72         .equ    EP6GPIFPDFSTOP,0E6E3H
73         .equ    EP6GPIFTRIG,0E6E4H
74         .equ    GPIFTCB3,0E6CEH
75         .equ    GPIFTCB2,0E6CFH
76         .equ    GPIFTCB1,0E6D0H
77         .equ    GPIFTCB0,0E6D1H
78         .equ    EP4GPIFFLGSEL,0E6DAH
79         .equ    EP4GPIFPFSTOP,0E6DBH
80         ;; 
81         ;; endpoint control
82         .equ    EP2CS,0E6A3H
83         .equ    EP4CS,0E6A4H
84         .equ    EP6CS,0E6A5H
85         .equ    EP8CS,0E6A6H
86         ;; endpoint buffers
87         .equ    EP2FIFOBUF,0F000H
88         .equ    EP4FIFOBUF,0F400H
89         .equ    EP6FIFOBUF,0F800H
90         .equ    EP8FIFOBUF,0FC00H
91         ;; IRQ enable for bulk NAK
92         .equ    IBNIE,0E658H
93         ;; interrupt requ for NAK
94         .equ    IBNIRQ,0E659H
95         ;; USB INT enables
96         .equ    USBIE,0E65CH
97         ;; USB interrupt request
98         .equ    USBIRQ,0E65DH
99         ;; endpoint IRQ enable
100         .equ    EPIE,0E65EH
101         ;; endpoint IRQ requests
102         .equ    EPIRQ,0E65FH
103         ;; USB error IRQ requests
104         .equ    USBERRIE,0E662H
105         ;; USB error IRQ request
106         .equ    USBERRIRQ,0E663H
107         ;; USB interrupt 2 autovector
108         .equ    INT2IVEC,0E666H
109         ;; autovector enable
110         .equ    INTSETUP,0E668H
111         ;; port cfg
112         .equ    PORTACFG,0E670H
113         .equ    PORTCCFG,0E671H
114         .equ    PORTECFG,0E672H
115         ;; I2C bus
116         .equ    I2CS,0E678H
117         .equ    I2DAT,0E679H
118         .equ    I2CTL,0E67AH
119         ;; auto pointers, read/write is directed to the pointed address
120         .equ    XAUTODAT1,0E67BH
121         .equ    XAUTODAT2,0E67CH
122         ;; USB-control
123         .equ    USBCS,0E680H
124
125         .equ    IOA,80H
126         .equ    DPL0,82H
127         .equ    DPH0,83H
128         .equ    DPL1,84H
129         .equ    DPH1,85H
130         .equ    DPS,86H
131         .equ    CKCON,8Eh
132         .equ    IOB,90H
133         .equ    EXIF,91h
134         .equ    MPAGE,92h
135         .equ    AUTOPTRH1,9AH
136         .equ    AUTOPTRL1,9BH
137         .equ    AUTOPTRH2,9DH
138         .equ    AUTOPTRL2,9EH
139         .equ    IOC,0A0H
140         .equ    INT2CLR,0A1H
141         .equ    INT4CLR,0A2H
142         .equ    EP2468STAT,0AAH
143         .equ    EP24FIFOFLGS,0ABH
144         .equ    EP68FIFOFLGS,0ACH
145         .equ    AUTOPTRSETUP,0AFH
146         .equ    IOD,0B0H
147         .equ    IOE,0B1H
148         .equ    OEA,0B2H
149         .equ    OEB,0B3H
150         .equ    OEC,0B4H
151         .equ    OED,0B5H
152         .equ    OEE,0B6H
153         .equ    GPIFTRIG,0BBH
154         .equ    EIE,0E8h
155         .equ    EIP,0F8h
156         .equ    GPIFIE,0E660H
157
158 ;;; serial control
159         .equ    SCON0,098h
160         .equ    SBUF0,099h
161
162         ;;; end of file
163         
164