forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/include/sdioh.h
....@@ -1,16 +1,17 @@
1
-/* SPDX-License-Identifier: GPL-2.0 */
21 /*
32 * SDIO Host Controller Spec header file
43 * Register map and definitions for the Standard Host Controller
54 *
6
- * Copyright (C) 1999-2019, Broadcom Corporation
7
- *
5
+ * Portions of this code are copyright (c) 2022 Cypress Semiconductor Corporation
6
+ *
7
+ * Copyright (C) 1999-2017, Broadcom Corporation
8
+ *
89 * Unless you and Broadcom execute a separate written software license
910 * agreement governing use of this software, this software is licensed to you
1011 * under the terms of the GNU General Public License version 2 (the "GPL"),
1112 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
1213 * following added to such license:
13
- *
14
+ *
1415 * As a special exception, the copyright holders of this software give you
1516 * permission to link this software with independent modules, and to copy and
1617 * distribute the resulting executable under terms of your choice, provided that
....@@ -18,7 +19,7 @@
1819 * the license of that module. An independent module is a module which is not
1920 * derived from this software. The special exception does not apply to any
2021 * modifications of the software.
21
- *
22
+ *
2223 * Notwithstanding the above, under no circumstances may you combine this
2324 * software in any way with any other Broadcom software provided under a license
2425 * other than the GPL, without Broadcom's express prior written consent.
....@@ -97,7 +98,6 @@
9798 #define SD3_Tuning_Info_Register 0x0EC
9899 #define SD3_WL_BT_reset_register 0x0F0
99100
100
-
101101 /* preset value indices */
102102 #define SD3_PRESETVAL_INITIAL_IX 0
103103 #define SD3_PRESETVAL_DESPEED_IX 1
....@@ -141,7 +141,6 @@
141141
142142 #define SDIO_OCR_READ_FAIL (2)
143143
144
-
145144 #define CAP_ASYNCINT_SUP_M BITFIELD_MASK(1)
146145 #define CAP_ASYNCINT_SUP_S 29
147146
....@@ -184,6 +183,10 @@
184183 #define CAP3_RETUNING_MODES_M BITFIELD_MASK(2)
185184 #define CAP3_RETUNING_MODES_S (46 - CAP3_MSBits_OFFSET)
186185
186
+#define CAP3_RETUNING_TC_DISABLED (0x0)
187
+#define CAP3_RETUNING_TC_1024S (0xB)
188
+#define CAP3_RETUNING_TC_OTHER (0xF)
189
+
187190 #define CAP3_CLK_MULT_M BITFIELD_MASK(8)
188191 #define CAP3_CLK_MULT_S (48 - CAP3_MSBits_OFFSET)
189192