summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/regs/stmp3700/regs-usbphy.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx233/regs/stmp3700/regs-usbphy.h')
-rw-r--r--firmware/target/arm/imx233/regs/stmp3700/regs-usbphy.h300
1 files changed, 300 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/regs/stmp3700/regs-usbphy.h b/firmware/target/arm/imx233/regs/stmp3700/regs-usbphy.h
new file mode 100644
index 0000000000..ae9359e1dd
--- /dev/null
+++ b/firmware/target/arm/imx233/regs/stmp3700/regs-usbphy.h
@@ -0,0 +1,300 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * This file was automatically generated by headergen, DO NOT EDIT it.
9 * headergen version: 2.1.7
10 * XML versions: stmp3700:3.2.0
11 *
12 * Copyright (C) 2013 by Amaury Pouly
13 *
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
18 *
19 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 * KIND, either express or implied.
21 *
22 ****************************************************************************/
23#ifndef __HEADERGEN__STMP3700__USBPHY__H__
24#define __HEADERGEN__STMP3700__USBPHY__H__
25
26#define REGS_USBPHY_BASE (0x8007c000)
27
28#define REGS_USBPHY_VERSION "3.2.0"
29
30/**
31 * Register: HW_USBPHY_PWD
32 * Address: 0
33 * SCT: yes
34*/
35#define HW_USBPHY_PWD (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x0 + 0x0))
36#define HW_USBPHY_PWD_SET (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x0 + 0x4))
37#define HW_USBPHY_PWD_CLR (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x0 + 0x8))
38#define HW_USBPHY_PWD_TOG (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x0 + 0xc))
39#define BP_USBPHY_PWD_RXPWDRX 20
40#define BM_USBPHY_PWD_RXPWDRX 0x100000
41#define BF_USBPHY_PWD_RXPWDRX(v) (((v) << 20) & 0x100000)
42#define BP_USBPHY_PWD_RXPWDDIFF 19
43#define BM_USBPHY_PWD_RXPWDDIFF 0x80000
44#define BF_USBPHY_PWD_RXPWDDIFF(v) (((v) << 19) & 0x80000)
45#define BP_USBPHY_PWD_RXPWD1PT1 18
46#define BM_USBPHY_PWD_RXPWD1PT1 0x40000
47#define BF_USBPHY_PWD_RXPWD1PT1(v) (((v) << 18) & 0x40000)
48#define BP_USBPHY_PWD_RXPWDENV 17
49#define BM_USBPHY_PWD_RXPWDENV 0x20000
50#define BF_USBPHY_PWD_RXPWDENV(v) (((v) << 17) & 0x20000)
51#define BP_USBPHY_PWD_TXPWDCOMP 14
52#define BM_USBPHY_PWD_TXPWDCOMP 0x4000
53#define BF_USBPHY_PWD_TXPWDCOMP(v) (((v) << 14) & 0x4000)
54#define BP_USBPHY_PWD_TXPWDVBG 13
55#define BM_USBPHY_PWD_TXPWDVBG 0x2000
56#define BF_USBPHY_PWD_TXPWDVBG(v) (((v) << 13) & 0x2000)
57#define BP_USBPHY_PWD_TXPWDV2I 12
58#define BM_USBPHY_PWD_TXPWDV2I 0x1000
59#define BF_USBPHY_PWD_TXPWDV2I(v) (((v) << 12) & 0x1000)
60#define BP_USBPHY_PWD_TXPWDIBIAS 11
61#define BM_USBPHY_PWD_TXPWDIBIAS 0x800
62#define BF_USBPHY_PWD_TXPWDIBIAS(v) (((v) << 11) & 0x800)
63#define BP_USBPHY_PWD_TXPWDFS 10
64#define BM_USBPHY_PWD_TXPWDFS 0x400
65#define BF_USBPHY_PWD_TXPWDFS(v) (((v) << 10) & 0x400)
66
67/**
68 * Register: HW_USBPHY_TX
69 * Address: 0x10
70 * SCT: yes
71*/
72#define HW_USBPHY_TX (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x10 + 0x0))
73#define HW_USBPHY_TX_SET (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x10 + 0x4))
74#define HW_USBPHY_TX_CLR (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x10 + 0x8))
75#define HW_USBPHY_TX_TOG (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x10 + 0xc))
76#define BP_USBPHY_TX_USBPHY_TX_EDGECTRL 26
77#define BM_USBPHY_TX_USBPHY_TX_EDGECTRL 0x1c000000
78#define BF_USBPHY_TX_USBPHY_TX_EDGECTRL(v) (((v) << 26) & 0x1c000000)
79#define BP_USBPHY_TX_USBPHY_TX_SYNC_INVERT 25
80#define BM_USBPHY_TX_USBPHY_TX_SYNC_INVERT 0x2000000
81#define BF_USBPHY_TX_USBPHY_TX_SYNC_INVERT(v) (((v) << 25) & 0x2000000)
82#define BP_USBPHY_TX_USBPHY_TX_SYNC_MUX 24
83#define BM_USBPHY_TX_USBPHY_TX_SYNC_MUX 0x1000000
84#define BF_USBPHY_TX_USBPHY_TX_SYNC_MUX(v) (((v) << 24) & 0x1000000)
85#define BP_USBPHY_TX_TXCMPOUT_STATUS 23
86#define BM_USBPHY_TX_TXCMPOUT_STATUS 0x800000
87#define BF_USBPHY_TX_TXCMPOUT_STATUS(v) (((v) << 23) & 0x800000)
88#define BP_USBPHY_TX_TXENCAL45DP 21
89#define BM_USBPHY_TX_TXENCAL45DP 0x200000
90#define BF_USBPHY_TX_TXENCAL45DP(v) (((v) << 21) & 0x200000)
91#define BP_USBPHY_TX_TXCAL45DP 16
92#define BM_USBPHY_TX_TXCAL45DP 0xf0000
93#define BF_USBPHY_TX_TXCAL45DP(v) (((v) << 16) & 0xf0000)
94#define BP_USBPHY_TX_TXENCAL45DN 13
95#define BM_USBPHY_TX_TXENCAL45DN 0x2000
96#define BF_USBPHY_TX_TXENCAL45DN(v) (((v) << 13) & 0x2000)
97#define BP_USBPHY_TX_TXCAL45DN 8
98#define BM_USBPHY_TX_TXCAL45DN 0xf00
99#define BF_USBPHY_TX_TXCAL45DN(v) (((v) << 8) & 0xf00)
100#define BP_USBPHY_TX_TXCALIBRATE 7
101#define BM_USBPHY_TX_TXCALIBRATE 0x80
102#define BF_USBPHY_TX_TXCALIBRATE(v) (((v) << 7) & 0x80)
103#define BP_USBPHY_TX_D_CAL 0
104#define BM_USBPHY_TX_D_CAL 0xf
105#define BF_USBPHY_TX_D_CAL(v) (((v) << 0) & 0xf)
106
107/**
108 * Register: HW_USBPHY_RX
109 * Address: 0x20
110 * SCT: yes
111*/
112#define HW_USBPHY_RX (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x20 + 0x0))
113#define HW_USBPHY_RX_SET (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x20 + 0x4))
114#define HW_USBPHY_RX_CLR (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x20 + 0x8))
115#define HW_USBPHY_RX_TOG (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x20 + 0xc))
116#define BP_USBPHY_RX_RXDBYPASS 22
117#define BM_USBPHY_RX_RXDBYPASS 0x400000
118#define BF_USBPHY_RX_RXDBYPASS(v) (((v) << 22) & 0x400000)
119#define BP_USBPHY_RX_DISCONADJ 4
120#define BM_USBPHY_RX_DISCONADJ 0x30
121#define BF_USBPHY_RX_DISCONADJ(v) (((v) << 4) & 0x30)
122#define BP_USBPHY_RX_ENVADJ 0
123#define BM_USBPHY_RX_ENVADJ 0x3
124#define BF_USBPHY_RX_ENVADJ(v) (((v) << 0) & 0x3)
125
126/**
127 * Register: HW_USBPHY_CTRL
128 * Address: 0x30
129 * SCT: yes
130*/
131#define HW_USBPHY_CTRL (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x30 + 0x0))
132#define HW_USBPHY_CTRL_SET (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x30 + 0x4))
133#define HW_USBPHY_CTRL_CLR (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x30 + 0x8))
134#define HW_USBPHY_CTRL_TOG (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x30 + 0xc))
135#define BP_USBPHY_CTRL_SFTRST 31
136#define BM_USBPHY_CTRL_SFTRST 0x80000000
137#define BF_USBPHY_CTRL_SFTRST(v) (((v) << 31) & 0x80000000)
138#define BP_USBPHY_CTRL_CLKGATE 30
139#define BM_USBPHY_CTRL_CLKGATE 0x40000000
140#define BF_USBPHY_CTRL_CLKGATE(v) (((v) << 30) & 0x40000000)
141#define BP_USBPHY_CTRL_UTMI_SUSPENDM 29
142#define BM_USBPHY_CTRL_UTMI_SUSPENDM 0x20000000
143#define BF_USBPHY_CTRL_UTMI_SUSPENDM(v) (((v) << 29) & 0x20000000)
144#define BP_USBPHY_CTRL_HOST_FORCE_LS_SE0 28
145#define BM_USBPHY_CTRL_HOST_FORCE_LS_SE0 0x10000000
146#define BF_USBPHY_CTRL_HOST_FORCE_LS_SE0(v) (((v) << 28) & 0x10000000)
147#define BP_USBPHY_CTRL_DATA_ON_LRADC 13
148#define BM_USBPHY_CTRL_DATA_ON_LRADC 0x2000
149#define BF_USBPHY_CTRL_DATA_ON_LRADC(v) (((v) << 13) & 0x2000)
150#define BP_USBPHY_CTRL_DEVPLUGIN_IRQ 12
151#define BM_USBPHY_CTRL_DEVPLUGIN_IRQ 0x1000
152#define BF_USBPHY_CTRL_DEVPLUGIN_IRQ(v) (((v) << 12) & 0x1000)
153#define BP_USBPHY_CTRL_ENIRQDEVPLUGIN 11
154#define BM_USBPHY_CTRL_ENIRQDEVPLUGIN 0x800
155#define BF_USBPHY_CTRL_ENIRQDEVPLUGIN(v) (((v) << 11) & 0x800)
156#define BP_USBPHY_CTRL_RESUME_IRQ 10
157#define BM_USBPHY_CTRL_RESUME_IRQ 0x400
158#define BF_USBPHY_CTRL_RESUME_IRQ(v) (((v) << 10) & 0x400)
159#define BP_USBPHY_CTRL_ENIRQRESUMEDETECT 9
160#define BM_USBPHY_CTRL_ENIRQRESUMEDETECT 0x200
161#define BF_USBPHY_CTRL_ENIRQRESUMEDETECT(v) (((v) << 9) & 0x200)
162#define BP_USBPHY_CTRL_ENOTGIDDETECT 7
163#define BM_USBPHY_CTRL_ENOTGIDDETECT 0x80
164#define BF_USBPHY_CTRL_ENOTGIDDETECT(v) (((v) << 7) & 0x80)
165#define BP_USBPHY_CTRL_DEVPLUGIN_POLARITY 5
166#define BM_USBPHY_CTRL_DEVPLUGIN_POLARITY 0x20
167#define BF_USBPHY_CTRL_DEVPLUGIN_POLARITY(v) (((v) << 5) & 0x20)
168#define BP_USBPHY_CTRL_ENDEVPLUGINDETECT 4
169#define BM_USBPHY_CTRL_ENDEVPLUGINDETECT 0x10
170#define BF_USBPHY_CTRL_ENDEVPLUGINDETECT(v) (((v) << 4) & 0x10)
171#define BP_USBPHY_CTRL_HOSTDISCONDETECT_IRQ 3
172#define BM_USBPHY_CTRL_HOSTDISCONDETECT_IRQ 0x8
173#define BF_USBPHY_CTRL_HOSTDISCONDETECT_IRQ(v) (((v) << 3) & 0x8)
174#define BP_USBPHY_CTRL_ENIRQHOSTDISCON 2
175#define BM_USBPHY_CTRL_ENIRQHOSTDISCON 0x4
176#define BF_USBPHY_CTRL_ENIRQHOSTDISCON(v) (((v) << 2) & 0x4)
177#define BP_USBPHY_CTRL_ENHOSTDISCONDETECT 1
178#define BM_USBPHY_CTRL_ENHOSTDISCONDETECT 0x2
179#define BF_USBPHY_CTRL_ENHOSTDISCONDETECT(v) (((v) << 1) & 0x2)
180#define BP_USBPHY_CTRL_ENHSPRECHARGEXMIT 0
181#define BM_USBPHY_CTRL_ENHSPRECHARGEXMIT 0x1
182#define BF_USBPHY_CTRL_ENHSPRECHARGEXMIT(v) (((v) << 0) & 0x1)
183
184/**
185 * Register: HW_USBPHY_STATUS
186 * Address: 0x40
187 * SCT: no
188*/
189#define HW_USBPHY_STATUS (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x40))
190#define BP_USBPHY_STATUS_RESUME_STATUS 10
191#define BM_USBPHY_STATUS_RESUME_STATUS 0x400
192#define BF_USBPHY_STATUS_RESUME_STATUS(v) (((v) << 10) & 0x400)
193#define BP_USBPHY_STATUS_OTGID_STATUS 8
194#define BM_USBPHY_STATUS_OTGID_STATUS 0x100
195#define BF_USBPHY_STATUS_OTGID_STATUS(v) (((v) << 8) & 0x100)
196#define BP_USBPHY_STATUS_DEVPLUGIN_STATUS 6
197#define BM_USBPHY_STATUS_DEVPLUGIN_STATUS 0x40
198#define BF_USBPHY_STATUS_DEVPLUGIN_STATUS(v) (((v) << 6) & 0x40)
199#define BP_USBPHY_STATUS_HOSTDISCONDETECT_STATUS 3
200#define BM_USBPHY_STATUS_HOSTDISCONDETECT_STATUS 0x8
201#define BF_USBPHY_STATUS_HOSTDISCONDETECT_STATUS(v) (((v) << 3) & 0x8)
202
203/**
204 * Register: HW_USBPHY_DEBUG
205 * Address: 0x50
206 * SCT: yes
207*/
208#define HW_USBPHY_DEBUG (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x50 + 0x0))
209#define HW_USBPHY_DEBUG_SET (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x50 + 0x4))
210#define HW_USBPHY_DEBUG_CLR (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x50 + 0x8))
211#define HW_USBPHY_DEBUG_TOG (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x50 + 0xc))
212#define BP_USBPHY_DEBUG_CLKGATE 30
213#define BM_USBPHY_DEBUG_CLKGATE 0x40000000
214#define BF_USBPHY_DEBUG_CLKGATE(v) (((v) << 30) & 0x40000000)
215#define BP_USBPHY_DEBUG_HOST_RESUME_DEBUG 29
216#define BM_USBPHY_DEBUG_HOST_RESUME_DEBUG 0x20000000
217#define BF_USBPHY_DEBUG_HOST_RESUME_DEBUG(v) (((v) << 29) & 0x20000000)
218#define BP_USBPHY_DEBUG_SQUELCHRESETLENGTH 25
219#define BM_USBPHY_DEBUG_SQUELCHRESETLENGTH 0x1e000000
220#define BF_USBPHY_DEBUG_SQUELCHRESETLENGTH(v) (((v) << 25) & 0x1e000000)
221#define BP_USBPHY_DEBUG_ENSQUELCHRESET 24
222#define BM_USBPHY_DEBUG_ENSQUELCHRESET 0x1000000
223#define BF_USBPHY_DEBUG_ENSQUELCHRESET(v) (((v) << 24) & 0x1000000)
224#define BP_USBPHY_DEBUG_SQUELCHRESETCOUNT 16
225#define BM_USBPHY_DEBUG_SQUELCHRESETCOUNT 0x1f0000
226#define BF_USBPHY_DEBUG_SQUELCHRESETCOUNT(v) (((v) << 16) & 0x1f0000)
227#define BP_USBPHY_DEBUG_ENTX2RXCOUNT 12
228#define BM_USBPHY_DEBUG_ENTX2RXCOUNT 0x1000
229#define BF_USBPHY_DEBUG_ENTX2RXCOUNT(v) (((v) << 12) & 0x1000)
230#define BP_USBPHY_DEBUG_TX2RXCOUNT 8
231#define BM_USBPHY_DEBUG_TX2RXCOUNT 0xf00
232#define BF_USBPHY_DEBUG_TX2RXCOUNT(v) (((v) << 8) & 0xf00)
233#define BP_USBPHY_DEBUG_ENHSTPULLDOWN 4
234#define BM_USBPHY_DEBUG_ENHSTPULLDOWN 0x30
235#define BF_USBPHY_DEBUG_ENHSTPULLDOWN(v) (((v) << 4) & 0x30)
236#define BP_USBPHY_DEBUG_HSTPULLDOWN 2
237#define BM_USBPHY_DEBUG_HSTPULLDOWN 0xc
238#define BF_USBPHY_DEBUG_HSTPULLDOWN(v) (((v) << 2) & 0xc)
239#define BP_USBPHY_DEBUG_DEBUG_INTERFACE_HOLD 1
240#define BM_USBPHY_DEBUG_DEBUG_INTERFACE_HOLD 0x2
241#define BF_USBPHY_DEBUG_DEBUG_INTERFACE_HOLD(v) (((v) << 1) & 0x2)
242#define BP_USBPHY_DEBUG_OTGIDPIOLOCK 0
243#define BM_USBPHY_DEBUG_OTGIDPIOLOCK 0x1
244#define BF_USBPHY_DEBUG_OTGIDPIOLOCK(v) (((v) << 0) & 0x1)
245
246/**
247 * Register: HW_USBPHY_DEBUG0_STATUS
248 * Address: 0x60
249 * SCT: no
250*/
251#define HW_USBPHY_DEBUG0_STATUS (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x60))
252#define BP_USBPHY_DEBUG0_STATUS_SQUELCH_COUNT 26
253#define BM_USBPHY_DEBUG0_STATUS_SQUELCH_COUNT 0xfc000000
254#define BF_USBPHY_DEBUG0_STATUS_SQUELCH_COUNT(v) (((v) << 26) & 0xfc000000)
255#define BP_USBPHY_DEBUG0_STATUS_UTMI_RXERROR_FAIL_COUNT 16
256#define BM_USBPHY_DEBUG0_STATUS_UTMI_RXERROR_FAIL_COUNT 0x3ff0000
257#define BF_USBPHY_DEBUG0_STATUS_UTMI_RXERROR_FAIL_COUNT(v) (((v) << 16) & 0x3ff0000)
258#define BP_USBPHY_DEBUG0_STATUS_LOOP_BACK_FAIL_COUNT 0
259#define BM_USBPHY_DEBUG0_STATUS_LOOP_BACK_FAIL_COUNT 0xffff
260#define BF_USBPHY_DEBUG0_STATUS_LOOP_BACK_FAIL_COUNT(v) (((v) << 0) & 0xffff)
261
262/**
263 * Register: HW_USBPHY_DEBUG1
264 * Address: 0x70
265 * SCT: yes
266*/
267#define HW_USBPHY_DEBUG1 (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x70 + 0x0))
268#define HW_USBPHY_DEBUG1_SET (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x70 + 0x4))
269#define HW_USBPHY_DEBUG1_CLR (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x70 + 0x8))
270#define HW_USBPHY_DEBUG1_TOG (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x70 + 0xc))
271#define BP_USBPHY_DEBUG1_ENTAILADJVD 13
272#define BM_USBPHY_DEBUG1_ENTAILADJVD 0x6000
273#define BF_USBPHY_DEBUG1_ENTAILADJVD(v) (((v) << 13) & 0x6000)
274#define BP_USBPHY_DEBUG1_ENTX2TX 12
275#define BM_USBPHY_DEBUG1_ENTX2TX 0x1000
276#define BF_USBPHY_DEBUG1_ENTX2TX(v) (((v) << 12) & 0x1000)
277#define BP_USBPHY_DEBUG1_PLL_IS_240 8
278#define BM_USBPHY_DEBUG1_PLL_IS_240 0x100
279#define BF_USBPHY_DEBUG1_PLL_IS_240(v) (((v) << 8) & 0x100)
280#define BP_USBPHY_DEBUG1_DBG_ADDRESS 0
281#define BM_USBPHY_DEBUG1_DBG_ADDRESS 0xf
282#define BF_USBPHY_DEBUG1_DBG_ADDRESS(v) (((v) << 0) & 0xf)
283
284/**
285 * Register: HW_USBPHY_VERSION
286 * Address: 0x80
287 * SCT: no
288*/
289#define HW_USBPHY_VERSION (*(volatile unsigned long *)(REGS_USBPHY_BASE + 0x80))
290#define BP_USBPHY_VERSION_MAJOR 24
291#define BM_USBPHY_VERSION_MAJOR 0xff000000
292#define BF_USBPHY_VERSION_MAJOR(v) (((v) << 24) & 0xff000000)
293#define BP_USBPHY_VERSION_MINOR 16
294#define BM_USBPHY_VERSION_MINOR 0xff0000
295#define BF_USBPHY_VERSION_MINOR(v) (((v) << 16) & 0xff0000)
296#define BP_USBPHY_VERSION_STEP 0
297#define BM_USBPHY_VERSION_STEP 0xffff
298#define BF_USBPHY_VERSION_STEP(v) (((v) << 0) & 0xffff)
299
300#endif /* __HEADERGEN__STMP3700__USBPHY__H__ */