AM261x MCU+ SDK: enet_soc_cfg.h Source File

| AM261x MCU+ SDK 26.00.00 |

enet_soc_cfg.h
Go to the documentation of this file.
1 /*
2 * Copyright (c) Texas Instruments Incorporated 2020-23
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 *
11 * Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the
14 * distribution.
15 *
16 * Neither the name of Texas Instruments Incorporated nor the names of
17 * its contributors may be used to endorse or promote products derived
18 * from this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
39 #ifndef ENET_SOC_CFG_H_
40 #define ENET_SOC_CFG_H_
41
42 /* ========================================================================== */
43 /* Include Files */
44 /* ========================================================================== */
45
46 #include <stdint.h>
47
48 #ifdef __cplusplus
49 extern "C" {
50 #endif
51
52 /* ========================================================================== */
53 /* Macros */
54 /* ========================================================================== */
55
56 /* --------------------------------------------------------------------------*/
57 /* Enet generic config options */
58 /* --------------------------------------------------------------------------*/
60 #define ENET_CFG_ENETPHY_PHY_MAX (2U)
61
62 /* --------------------------------------------------------------------------*/
63 /* CPSW Peripheral and CPSW Module related config options */
64 /* --------------------------------------------------------------------------*/
65
67 #define ENET_CFG_CPSW_INTERVLAN (ENET_OFF)
68
70 #define ENET_CFG_CPSW_2PORTSWITCH (ENET_OFF)
71
73 #define ENET_CFG_CPDMA_CH_OVERRIDE (ENET_ON)
74
76 #define ENET_CFG_CPSW_IET_INCL (ENET_ON)
77
79 #define ENET_CFG_ALE_VLAN_MASK_MUX (ENET_OFF)
80
82 #define ENET_CFG_CPSW_MACPORT_MII (ENET_ON)
83
85 #define ENET_CFG_CPSW_XGMII (ENET_OFF)
86
88 #define ENET_CFG_CPSW_SGMII (ENET_OFF)
89
91 #define ENET_CFG_CPSW_MACPORT_SGMII (ENET_OFF)
92
94 #define ENET_CFG_CPSW_CPPI_CAST (ENET_OFF)
95
97 #define ENET_CFG_CPSW_HOSTPORT_TRAFFIC_SHAPING (ENET_ON)
98
100 #define ENET_CFG_CPSW_MACPORT_TRAFFIC_SHAPING (ENET_ON)
101
103 #define ENET_CFG_CPSW_MACPORT_INTERVLAN (ENET_OFF)
104
106 #define ENET_CFG_REMOTE_CLIENT_CORES_MAX (1U)
107
109 #define ENET_CFG_RM_MAC_ADDR_MAX (4U)
110
112 #define ENET_CFG_CPDMA_MULTICORE_SUPPORT (ENET_ON)
113
114 /* \brief CPSW Checksum Offload support */
115 #define ENET_CFG_CPSW_CSUM_OFFLOAD_SUPPORT (ENET_ON)
116
117 /* \brief SOC CPSW Version Info */
118 #define ENET_SOC_CFG_XGE_CPSW_ID_VER_REG_MAJOR_VER (1U)
119
120 #define ENET_SOC_CFG_XGE_CPSW_ID_VER_REG_MINOR_VER (3U)
121
122 #define ENET_SOC_CFG_XGE_CPSW_ID_VER_REG_RTL_VER (2U)
123
125 #define ENET_CFG_RM_TX_CH_MAX (8U)
126
128 #define ENET_CFG_RM_RX_CH_MAX (8U)
129
131 #define ENET_CFG_RM_HW_PUSH_MAX (0U)
132 /* --------------------------------------------------------------------------*/
133 /* GMAC Peripheral and CPSW Module related config options */
134 /* --------------------------------------------------------------------------*/
135
137 #define CPSW_STATS_MACPORT_MAX (2U)
138
140 #define CPSW_ALE_NUM_PORTS ((CPSW_STATS_MACPORT_MAX) + 1U)
141
143 #define ENET_CFG_CPSW_EST (ENET_ON)
144 #define ENET_CFG_CPSW_MACPORT_EST (ENET_ON)
145
147 #define ENET_CFG_CPSW_CUTTHRU (ENET_ON)
148
150 #define ENET_CFG_MDIO_CLAUSE45 (ENET_ON)
151
153 #define ENET_CFG_CPSW_ESTF_NUM (CPSW_STATS_MACPORT_MAX)
154
156 #define ENET_CFG_CPSW_GENF_NUM (2U)
157
159 #define ENET_CFG_CPSW_HWPUSH_NUM (8U)
160 /* ========================================================================== */
161 /* Structures and Enums */
162 /* ========================================================================== */
163
164 /* None */
165
166 /* ========================================================================== */
167 /* Global Variables Declarations */
168 /* ========================================================================== */
169
170 /* None */
171
172 /* ========================================================================== */
173 /* Function Declarations */
174 /* ========================================================================== */
175
176 /* None */
177
178 /* ========================================================================== */
179 /* Deprecated Function Declarations */
180 /* ========================================================================== */
181
182 /* None */
183
184 /* ========================================================================== */
185 /* Static Function Definitions */
186 /* ========================================================================== */
187
188 /* None */
189
190 #ifdef __cplusplus
191 }
192 #endif
193
194 #endif /* ENET_SOC_CFG_H_ */