| .. | .. |
|---|
| 1 | | -/* SPDX-License-Identifier: GPL-2.0 */ |
|---|
| 2 | 1 | /* |
|---|
| 3 | 2 | * SDIO Host Controller Spec header file |
|---|
| 4 | 3 | * Register map and definitions for the Standard Host Controller |
|---|
| 5 | 4 | * |
|---|
| 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 | + * |
|---|
| 8 | 9 | * Unless you and Broadcom execute a separate written software license |
|---|
| 9 | 10 | * agreement governing use of this software, this software is licensed to you |
|---|
| 10 | 11 | * under the terms of the GNU General Public License version 2 (the "GPL"), |
|---|
| 11 | 12 | * available at http://www.broadcom.com/licenses/GPLv2.php, with the |
|---|
| 12 | 13 | * following added to such license: |
|---|
| 13 | | - * |
|---|
| 14 | + * |
|---|
| 14 | 15 | * As a special exception, the copyright holders of this software give you |
|---|
| 15 | 16 | * permission to link this software with independent modules, and to copy and |
|---|
| 16 | 17 | * distribute the resulting executable under terms of your choice, provided that |
|---|
| .. | .. |
|---|
| 18 | 19 | * the license of that module. An independent module is a module which is not |
|---|
| 19 | 20 | * derived from this software. The special exception does not apply to any |
|---|
| 20 | 21 | * modifications of the software. |
|---|
| 21 | | - * |
|---|
| 22 | + * |
|---|
| 22 | 23 | * Notwithstanding the above, under no circumstances may you combine this |
|---|
| 23 | 24 | * software in any way with any other Broadcom software provided under a license |
|---|
| 24 | 25 | * other than the GPL, without Broadcom's express prior written consent. |
|---|
| .. | .. |
|---|
| 97 | 98 | #define SD3_Tuning_Info_Register 0x0EC |
|---|
| 98 | 99 | #define SD3_WL_BT_reset_register 0x0F0 |
|---|
| 99 | 100 | |
|---|
| 100 | | - |
|---|
| 101 | 101 | /* preset value indices */ |
|---|
| 102 | 102 | #define SD3_PRESETVAL_INITIAL_IX 0 |
|---|
| 103 | 103 | #define SD3_PRESETVAL_DESPEED_IX 1 |
|---|
| .. | .. |
|---|
| 141 | 141 | |
|---|
| 142 | 142 | #define SDIO_OCR_READ_FAIL (2) |
|---|
| 143 | 143 | |
|---|
| 144 | | - |
|---|
| 145 | 144 | #define CAP_ASYNCINT_SUP_M BITFIELD_MASK(1) |
|---|
| 146 | 145 | #define CAP_ASYNCINT_SUP_S 29 |
|---|
| 147 | 146 | |
|---|
| .. | .. |
|---|
| 184 | 183 | #define CAP3_RETUNING_MODES_M BITFIELD_MASK(2) |
|---|
| 185 | 184 | #define CAP3_RETUNING_MODES_S (46 - CAP3_MSBits_OFFSET) |
|---|
| 186 | 185 | |
|---|
| 186 | +#define CAP3_RETUNING_TC_DISABLED (0x0) |
|---|
| 187 | +#define CAP3_RETUNING_TC_1024S (0xB) |
|---|
| 188 | +#define CAP3_RETUNING_TC_OTHER (0xF) |
|---|
| 189 | + |
|---|
| 187 | 190 | #define CAP3_CLK_MULT_M BITFIELD_MASK(8) |
|---|
| 188 | 191 | #define CAP3_CLK_MULT_S (48 - CAP3_MSBits_OFFSET) |
|---|
| 189 | 192 | |
|---|