.. | .. |
---|
1 | | -/* SPDX-License-Identifier: GPL-2.0 */ |
---|
2 | 1 | /* |
---|
3 | 2 | * SDIO device core hardware definitions. |
---|
4 | 3 | * sdio is a portion of the pcmcia core in core rev 3 - rev 8 |
---|
5 | 4 | * |
---|
6 | 5 | * SDIO core support 1bit, 4 bit SDIO mode as well as SPI mode. |
---|
7 | 6 | * |
---|
8 | | - * Copyright (C) 1999-2019, Broadcom Corporation |
---|
9 | | - * |
---|
| 7 | + * Portions of this code are copyright (c) 2022 Cypress Semiconductor Corporation |
---|
| 8 | + * |
---|
| 9 | + * Copyright (C) 1999-2017, Broadcom Corporation |
---|
| 10 | + * |
---|
10 | 11 | * Unless you and Broadcom execute a separate written software license |
---|
11 | 12 | * agreement governing use of this software, this software is licensed to you |
---|
12 | 13 | * under the terms of the GNU General Public License version 2 (the "GPL"), |
---|
13 | 14 | * available at http://www.broadcom.com/licenses/GPLv2.php, with the |
---|
14 | 15 | * following added to such license: |
---|
15 | | - * |
---|
| 16 | + * |
---|
16 | 17 | * As a special exception, the copyright holders of this software give you |
---|
17 | 18 | * permission to link this software with independent modules, and to copy and |
---|
18 | 19 | * distribute the resulting executable under terms of your choice, provided that |
---|
.. | .. |
---|
20 | 21 | * the license of that module. An independent module is a module which is not |
---|
21 | 22 | * derived from this software. The special exception does not apply to any |
---|
22 | 23 | * modifications of the software. |
---|
23 | | - * |
---|
| 24 | + * |
---|
24 | 25 | * Notwithstanding the above, under no circumstances may you combine this |
---|
25 | 26 | * software in any way with any other Broadcom software provided under a license |
---|
26 | 27 | * other than the GPL, without Broadcom's express prior written consent. |
---|
.. | .. |
---|
28 | 29 | * |
---|
29 | 30 | * <<Broadcom-WL-IPTag/Open:>> |
---|
30 | 31 | * |
---|
31 | | - * $Id: sbsdio.h 514727 2014-11-12 03:02:48Z $ |
---|
| 32 | + * $Id: sbsdio.h 665717 2016-10-18 23:29:25Z $ |
---|
32 | 33 | */ |
---|
33 | 34 | |
---|
34 | 35 | #ifndef _SBSDIO_H |
---|
.. | .. |
---|
90 | 91 | #define SROM_BLANK 0x04 /* depreciated in corerev 6 */ |
---|
91 | 92 | #define SROM_OTP 0x80 /* OTP present */ |
---|
92 | 93 | |
---|
93 | | -/* SBSDIO_CHIP_CTRL */ |
---|
94 | | -#define SBSDIO_CHIP_CTRL_XTAL 0x01 /* or'd with onchip xtal_pu, |
---|
95 | | - * 1: power on oscillator |
---|
96 | | - * (for 4318 only) |
---|
97 | | - */ |
---|
98 | 94 | /* SBSDIO_WATERMARK */ |
---|
99 | 95 | #define SBSDIO_WATERMARK_MASK 0x7f /* number of words - 1 for sd device |
---|
100 | 96 | * to wait before sending data to host |
---|
.. | .. |
---|
121 | 117 | * external pads in tri-state; requires |
---|
122 | 118 | * sdio bus power cycle to clear (rev 9) |
---|
123 | 119 | */ |
---|
124 | | -#define SBSDIO_DEVCTL_EN_F2_BLK_WATERMARK 0x10 /* Enable function 2 tx for each block */ |
---|
125 | 120 | #define SBSDIO_DEVCTL_F2WM_ENAB 0x10 /* Enable F2 Watermark */ |
---|
126 | 121 | #define SBSDIO_DEVCTL_NONDAT_PADS_ISO 0x20 /* Isolate sdio clk and cmd (non-data) */ |
---|
| 122 | +#define SBSDIO_DEVCTL_ADDR_RESET 0x40 /* Reset SB Address to default value */ |
---|
127 | 123 | |
---|
128 | 124 | /* SBSDIO_FUNC1_CHIPCLKCSR */ |
---|
129 | 125 | #define SBSDIO_FORCE_ALP 0x01 /* Force ALP request to backplane */ |
---|
.. | .. |
---|
167 | 163 | |
---|
168 | 164 | /* direct(mapped) cis space */ |
---|
169 | 165 | #define SBSDIO_CIS_BASE_COMMON 0x1000 /* MAPPED common CIS address */ |
---|
| 166 | +#ifdef BCMSPI |
---|
| 167 | +#define SBSDIO_CIS_SIZE_LIMIT 0x100 /* maximum bytes in one spi CIS */ |
---|
| 168 | +#else |
---|
170 | 169 | #define SBSDIO_CIS_SIZE_LIMIT 0x200 /* maximum bytes in one CIS */ |
---|
| 170 | +#endif /* !BCMSPI */ |
---|
171 | 171 | #define SBSDIO_OTP_CIS_SIZE_LIMIT 0x078 /* maximum bytes OTP CIS */ |
---|
172 | 172 | |
---|
173 | 173 | #define SBSDIO_CIS_OFT_ADDR_MASK 0x1FFFF /* cis offset addr is < 17 bits */ |
---|