hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/mach-mmp/regs-usb.h
....@@ -1,10 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * Copyright (C) 2011 Marvell International Ltd. All rights reserved.
3
- *
4
- * This program is free software; you can redistribute it and/or modify it
5
- * under the terms of the GNU General Public License as published by the
6
- * Free Software Foundation; either version 2 of the License, or (at your
7
- * option) any later version.
84 */
95
106 #ifndef __ASM_ARCH_REGS_USB_H
....@@ -124,100 +120,6 @@
124120 #define UTMI_RX_SQ_THRESH_MASK (0xf << 4)
125121
126122 #define UTMI_OTG_ADDON_OTG_ON (1 << 0)
127
-
128
-/* For MMP3 USB Phy */
129
-#define USB2_PLL_REG0 0x4
130
-#define USB2_PLL_REG1 0x8
131
-#define USB2_TX_REG0 0x10
132
-#define USB2_TX_REG1 0x14
133
-#define USB2_TX_REG2 0x18
134
-#define USB2_RX_REG0 0x20
135
-#define USB2_RX_REG1 0x24
136
-#define USB2_RX_REG2 0x28
137
-#define USB2_ANA_REG0 0x30
138
-#define USB2_ANA_REG1 0x34
139
-#define USB2_ANA_REG2 0x38
140
-#define USB2_DIG_REG0 0x3C
141
-#define USB2_DIG_REG1 0x40
142
-#define USB2_DIG_REG2 0x44
143
-#define USB2_DIG_REG3 0x48
144
-#define USB2_TEST_REG0 0x4C
145
-#define USB2_TEST_REG1 0x50
146
-#define USB2_TEST_REG2 0x54
147
-#define USB2_CHARGER_REG0 0x58
148
-#define USB2_OTG_REG0 0x5C
149
-#define USB2_PHY_MON0 0x60
150
-#define USB2_RESETVE_REG0 0x64
151
-#define USB2_ICID_REG0 0x78
152
-#define USB2_ICID_REG1 0x7C
153
-
154
-/* USB2_PLL_REG0 */
155
-/* This is for Ax stepping */
156
-#define USB2_PLL_FBDIV_SHIFT_MMP3 0
157
-#define USB2_PLL_FBDIV_MASK_MMP3 (0xFF << 0)
158
-
159
-#define USB2_PLL_REFDIV_SHIFT_MMP3 8
160
-#define USB2_PLL_REFDIV_MASK_MMP3 (0xF << 8)
161
-
162
-#define USB2_PLL_VDD12_SHIFT_MMP3 12
163
-#define USB2_PLL_VDD18_SHIFT_MMP3 14
164
-
165
-/* This is for B0 stepping */
166
-#define USB2_PLL_FBDIV_SHIFT_MMP3_B0 0
167
-#define USB2_PLL_REFDIV_SHIFT_MMP3_B0 9
168
-#define USB2_PLL_VDD18_SHIFT_MMP3_B0 14
169
-#define USB2_PLL_FBDIV_MASK_MMP3_B0 0x01FF
170
-#define USB2_PLL_REFDIV_MASK_MMP3_B0 0x3E00
171
-
172
-#define USB2_PLL_CAL12_SHIFT_MMP3 0
173
-#define USB2_PLL_CALI12_MASK_MMP3 (0x3 << 0)
174
-
175
-#define USB2_PLL_VCOCAL_START_SHIFT_MMP3 2
176
-
177
-#define USB2_PLL_KVCO_SHIFT_MMP3 4
178
-#define USB2_PLL_KVCO_MASK_MMP3 (0x7<<4)
179
-
180
-#define USB2_PLL_ICP_SHIFT_MMP3 8
181
-#define USB2_PLL_ICP_MASK_MMP3 (0x7<<8)
182
-
183
-#define USB2_PLL_LOCK_BYPASS_SHIFT_MMP3 12
184
-
185
-#define USB2_PLL_PU_PLL_SHIFT_MMP3 13
186
-#define USB2_PLL_PU_PLL_MASK (0x1 << 13)
187
-
188
-#define USB2_PLL_READY_MASK_MMP3 (0x1 << 15)
189
-
190
-/* USB2_TX_REG0 */
191
-#define USB2_TX_IMPCAL_VTH_SHIFT_MMP3 8
192
-#define USB2_TX_IMPCAL_VTH_MASK_MMP3 (0x7 << 8)
193
-
194
-#define USB2_TX_RCAL_START_SHIFT_MMP3 13
195
-
196
-/* USB2_TX_REG1 */
197
-#define USB2_TX_CK60_PHSEL_SHIFT_MMP3 0
198
-#define USB2_TX_CK60_PHSEL_MASK_MMP3 (0xf << 0)
199
-
200
-#define USB2_TX_AMP_SHIFT_MMP3 4
201
-#define USB2_TX_AMP_MASK_MMP3 (0x7 << 4)
202
-
203
-#define USB2_TX_VDD12_SHIFT_MMP3 8
204
-#define USB2_TX_VDD12_MASK_MMP3 (0x3 << 8)
205
-
206
-/* USB2_TX_REG2 */
207
-#define USB2_TX_DRV_SLEWRATE_SHIFT 10
208
-
209
-/* USB2_RX_REG0 */
210
-#define USB2_RX_SQ_THRESH_SHIFT_MMP3 4
211
-#define USB2_RX_SQ_THRESH_MASK_MMP3 (0xf << 4)
212
-
213
-#define USB2_RX_SQ_LENGTH_SHIFT_MMP3 10
214
-#define USB2_RX_SQ_LENGTH_MASK_MMP3 (0x3 << 10)
215
-
216
-/* USB2_ANA_REG1*/
217
-#define USB2_ANA_PU_ANA_SHIFT_MMP3 14
218
-
219
-/* USB2_OTG_REG0 */
220
-#define USB2_OTG_PU_OTG_SHIFT_MMP3 3
221123
222124 /* fsic registers */
223125 #define FSIC_MISC 0x4