.. | .. |
---|
1 | | -/* SPDX-License-Identifier: GPL-2.0 */ |
---|
2 | 1 | /* |
---|
3 | 2 | * Broadcom AMBA Interconnect definitions. |
---|
4 | 3 | * |
---|
5 | | - * Copyright (C) 1999-2019, Broadcom Corporation |
---|
6 | | - * |
---|
| 4 | + * Portions of this code are copyright (c) 2022 Cypress Semiconductor Corporation |
---|
| 5 | + * |
---|
| 6 | + * Copyright (C) 1999-2017, Broadcom Corporation |
---|
| 7 | + * |
---|
7 | 8 | * Unless you and Broadcom execute a separate written software license |
---|
8 | 9 | * agreement governing use of this software, this software is licensed to you |
---|
9 | 10 | * under the terms of the GNU General Public License version 2 (the "GPL"), |
---|
10 | 11 | * available at http://www.broadcom.com/licenses/GPLv2.php, with the |
---|
11 | 12 | * following added to such license: |
---|
12 | | - * |
---|
| 13 | + * |
---|
13 | 14 | * As a special exception, the copyright holders of this software give you |
---|
14 | 15 | * permission to link this software with independent modules, and to copy and |
---|
15 | 16 | * distribute the resulting executable under terms of your choice, provided that |
---|
.. | .. |
---|
17 | 18 | * the license of that module. An independent module is a module which is not |
---|
18 | 19 | * derived from this software. The special exception does not apply to any |
---|
19 | 20 | * modifications of the software. |
---|
20 | | - * |
---|
| 21 | + * |
---|
21 | 22 | * Notwithstanding the above, under no circumstances may you combine this |
---|
22 | 23 | * software in any way with any other Broadcom software provided under a license |
---|
23 | 24 | * other than the GPL, without Broadcom's express prior written consent. |
---|
.. | .. |
---|
25 | 26 | * |
---|
26 | 27 | * <<Broadcom-WL-IPTag/Open:>> |
---|
27 | 28 | * |
---|
28 | | - * $Id: aidmp.h 514727 2014-11-12 03:02:48Z $ |
---|
| 29 | + * $Id: aidmp.h 617751 2016-02-08 09:04:22Z $ |
---|
29 | 30 | */ |
---|
30 | 31 | |
---|
31 | 32 | #ifndef _AIDMP_H |
---|
.. | .. |
---|
114 | 115 | #define SD_SZ_MASK 0xfffff000 |
---|
115 | 116 | #define SD_SG32 0x00000008 |
---|
116 | 117 | #define SD_SZ_ALIGN 0x00000fff |
---|
117 | | - |
---|
118 | 118 | |
---|
119 | 119 | #if !defined(_LANGUAGE_ASSEMBLY) && !defined(__ASSEMBLY__) |
---|
120 | 120 | |
---|
.. | .. |
---|
308 | 308 | #define AI_OOBDINWIDTH 0x364 |
---|
309 | 309 | #define AI_OOBDOUTWIDTH 0x368 |
---|
310 | 310 | |
---|
311 | | - |
---|
312 | 311 | #define AI_IOCTRLSET 0x400 |
---|
313 | 312 | #define AI_IOCTRLCLEAR 0x404 |
---|
314 | 313 | #define AI_IOCTRL 0x408 |
---|
.. | .. |
---|
374 | 373 | #define AIELD_ERRDONE_MASK 0x3 |
---|
375 | 374 | |
---|
376 | 375 | /* errlogstatus */ |
---|
377 | | -#define AIELS_TIMEOUT_MASK 0x3 |
---|
| 376 | +#define AIELS_SLAVE_ERR 0x1 |
---|
| 377 | +#define AIELS_TIMEOUT 0x2 |
---|
| 378 | +#define AIELS_DECODE 0x3 |
---|
| 379 | +#define AIELS_TIMEOUT_MASK 0x3 |
---|
| 380 | + |
---|
| 381 | +/* errorlog status bit map, for SW use */ |
---|
| 382 | +#define AXI_WRAP_STS_NONE (0) |
---|
| 383 | +#define AXI_WRAP_STS_TIMEOUT (1<<0) |
---|
| 384 | +#define AXI_WRAP_STS_SLAVE_ERR (1<<1) |
---|
| 385 | +#define AXI_WRAP_STS_DECODE_ERR (1<<2) |
---|
| 386 | +#define AXI_WRAP_STS_PCI_RD_ERR (1<<3) |
---|
| 387 | +#define AXI_WRAP_STS_WRAP_RD_ERR (1<<4) |
---|
| 388 | +#define AXI_WRAP_STS_SET_CORE_FAIL (1<<5) |
---|
| 389 | + |
---|
| 390 | +/* errlogFrags */ |
---|
| 391 | +#define AXI_ERRLOG_FLAGS_WRITE_REQ (1<<24) |
---|
378 | 392 | |
---|
379 | 393 | /* config */ |
---|
380 | 394 | #define AICFG_OOB 0x00000020 |
---|
.. | .. |
---|
400 | 414 | #define AI_OOBSEL_7_SHIFT 24 |
---|
401 | 415 | #define AI_IOCTRL_ENABLE_D11_PME (1 << 14) |
---|
402 | 416 | |
---|
| 417 | +/* bit Specific for AI_OOBSELOUTB30 */ |
---|
| 418 | +#define OOB_B_ALP_REQUEST 0 |
---|
| 419 | +#define OOB_B_HT_REQUEST 1 |
---|
| 420 | +#define OOB_B_ILP_REQUEST 2 |
---|
| 421 | +#define OOB_B_ALP_AVAIL_REQUEST 3 |
---|
| 422 | +#define OOB_B_HT_AVAIL_REQUEST 4 |
---|
| 423 | + |
---|
| 424 | +/* mask for interrupts from each core to wrapper */ |
---|
| 425 | +#define AI_OOBSELINA74_CORE_MASK 0x80808080 |
---|
| 426 | +#define AI_OOBSELINA30_CORE_MASK 0x80808080 |
---|
| 427 | + |
---|
| 428 | +/* axi id mask in the error log id */ |
---|
| 429 | +#define AI_ERRLOGID_AXI_ID_MASK 0x07 |
---|
| 430 | + |
---|
403 | 431 | #endif /* _AIDMP_H */ |
---|