SPRUHZ7K August 2015 – April 2024 AM5706 , AM5708 , AM5716 , AM5718 , AM5718-HIREL
Address Offset | 0x0000 0000 | ||
Physical Address | 0x4848 4000 | Instance | SS |
Description | CPSW_3G ID version register | ||
Type | R |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
REVISION |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:0 | REVISION | CPSW_3G Revision Value | R | 0x- |
Address Offset | 0x0000 0004 | ||
Physical Address | 0x4848 4004 | Instance | SS |
Description | Switch control register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | EEE_EN | DLR_EN | RX_VLAN_ENCAP | VLAN_AWARE | FIFO_LOOPBACK |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:5 | RESERVED | R | 0x0 | |
4 | EEE_EN | EEE (Energy Efficient Ethernet) enable 0 – EEE is disabled. 1 – EEE is enabled | RW | 0x0 |
3 | DLR_EN | DLR enable 0 - DLR is disabled. DLR packets will not be moved to queue priority 3 and will not be separated out onto dlr_cpdma_ch. 1 - DLR is disabled. DLR packets be moved to destination port transmit queue priority 3 and will be separated out onto dlr_cpdma_ch when packet is to egress on port 0. | RW | 0x0 |
2 | RX_VLAN_ENCAP | Port 0 VLAN Encapsulation (egress): 0 - Port 0 receive packets (from CPSW_3G) are not VLAN encapsulated. 1 - Port 0 receive packets (from CPSW_3G) are VLAN encapsulated. | RW | 0x0 |
1 | VLAN_AWARE | VLAN Aware Mode: 0 - CPSW_3G is in the VLAN unaware mode. 1 - CPSW_3G is in the VLAN aware mode. | RW | 0x0 |
0 | FIFO_LOOPBACK | FIFO Loopback Mode 0 - Loopback is disabled 1 - FIFO Loopback mode enabled. Each packet received is turned around and sent out on the same port's transmit path. Port 2 receive is fixed on channel zero. The RXSOFOVERRUN statistic will increment for every packet sent in FIFO loopback mode. | RW | 0x0 |
Address Offset | 0x0000 0008 | ||
Physical Address | 0x4848 4008 | Instance | SS |
Description | Soft reset register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | SOFT_RESET |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:1 | RESERVED | R | 0x0 | |
0 | SOFT_RESET | Software reset - Writing a one to this bit causes the 3G logic (INT, REGS, CPPI, and SPF modules) to be reset. After writing a one to this bit, it may be polled to determine if the reset has occurred. If a one is read, the reset has not yet occurred. If a zero is read then reset has occurred. | RW | 0x0 |
Address Offset | 0x0000 000C | ||
Physical Address | 0x4848 400C | Instance | SS |
Description | Statistics port enable register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | P2_STAT_EN | P1_STAT_EN | P0_STAT_EN |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:3 | RESERVED | R | 0x0 | |
2 | P2_STAT_EN | Port 2 (GMII2 and Port 2 FIFO) Statistics Enable 0 - Port 2 statistics are not enabled. 1 - Port 2 statistics are enabled. | RW | 0x0 |
1 | P1_STAT_EN | Port 1 (GMII1 and Port 1 FIFO) Statistics Enable 0 - Port 1 statistics are not enabled. 1 - Port 1 statistics are enabled. | RW | 0x0 |
0 | P0_STAT_EN | Port 0 Statistics Enable 0 - Port 0 statistics are not enabled 1 - Port 0 statistics are enabled. FIFO overruns (SOFOVERRUNS) are the only port 0 statistics that are enabled to be kept. | RW | 0x0 |
Address Offset | 0x0000 0010 | ||
Physical Address | 0x4848 4010 | Instance | SS |
Description | Transmit priority type register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | P2_PRI3_SHAPE_EN | P2_PRI2_SHAPE_EN | P2_PRI1_SHAPE_EN | P1_PRI3_SHAPE_EN | P1_PRI2_SHAPE_EN | P1_PRI1_SHAPE_EN | RESERVED | P2_PTYPE_ESC | P1_PTYPE_ESC | P0_PTYPE_ESC | RESERVED | ESC_PRI_LD_VAL |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:22 | RESERVED | R | 0x0 | |
21 | P2_PRI3_SHAPE_EN | Port 2 Queue Priority 3 Transmit Shape Enable - If there is only one shaping queue then it must be priority 3. | RW | 0x0 |
20 | P2_PRI2_SHAPE_EN | Port 2 Queue Priority 2 Transmit Shape Enable - If there are two shaping queues then they must be priorities 3 and 2. | RW | 0x0 |
19 | P2_PRI1_SHAPE_EN | Port 2 Queue Priority 1 Transmit Shape Enable - If there are three shaping queues all three bits should be set. | RW | 0x0 |
18 | P1_PRI3_SHAPE_EN | Port 1 Queue Priority 3 Transmit Shape Enable - If there is only one shaping queue then it must be priority 3. | RW | 0x0 |
17 | P1_PRI2_SHAPE_EN | Port 1 Queue Priority 2 Transmit Shape Enable- If there are two shaping queues then they must be priorities 3 and 2. | RW | 0x0 |
16 | P1_PRI1_SHAPE_EN | Port 1 Queue Priority 1 Transmit Shape Enable- If there are three shaping queues all three bits should be set. | RW | 0x0 |
15:11 | RESERVED | R | 0x0 | |
10 | P2_PTYPE_ESC | Port 2 Priority Type Escalate - 0 - Port 2 priority type fixed 1 - Port 2 priority type escalate Escalate should not be used with queue shaping. | RW | 0x0 |
9 | P1_PTYPE_ESC | Port 1 Priority Type Escalate - 0 - Port 1 priority type fixed 1 - Port 1 priority type escalate Escalate should not be used with queue shaping. | RW | 0x0 |
8 | P0_PTYPE_ESC | Port 0 Priority Type Escalate - 0 - Port 0 priority type fixed 1 - Port 0 priority type escalate Escalate should not be used with queue shaping. | RW | 0x0 |
7:5 | RESERVED | R | 0x0 | |
4:0 | ESC_PRI_LD_VAL | Escalate Priority Load Value When a port is in escalate priority, this is the number of higher priority packets sent before the next lower priority is allowed to send a packet. Escalate priority allows lower priority packets to be sent at a fixed rate relative to the next higher priority. | RW | 0x0 |
Address Offset | 0x0000 0014 | ||
Physical Address | 0x4848 4014 | Instance | SS |
Description | Software idle | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | SOFT_IDLE |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:1 | RESERVED | R | 0x0 | |
0 | SOFT_IDLE | Software Idle - Setting this bit causes the switch fabric to stop forwarding packets at the next start of packet. | RW | 0x0 |
Address Offset | 0x0000 0018 | ||
Physical Address | 0x4848 4018 | Instance | SS |
Description | Throughput rate | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | SL_RX_THRU_RATE | RESERVED | CPDMA_THRU_RATE |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:16 | RESERVED | R | 0x0 | |
15:12 | SL_RX_THRU_RATE | CPGMAC_SL Switch FIFO receive through rate. This register value is the maximum throughput of the ethernet ports to the crossbar SCR. The default is one 8-byte word for every 3 MAIN_CLK periods maximum. | RW | 0x3 |
11:4 | RESERVED | R | 0x0 | |
3:0 | CPDMA_THRU_RATE | CPDMA Switch FIFO receive through rate. This register value is the maximum throughput of the CPDMA host port to the crossbar SCR. The default is one 8-byte word for every 3 MAIN_CLK periods maximum. | RW | 0x3 |
Address Offset | 0x0000 001C | ||
Physical Address | 0x4848 401C | Instance | SS |
Description | CPGMAC_SL short gap threshold | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | GAP_THRESH |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:5 | RESERVED | R | 0x0 | |
4:0 | GAP_THRESH | CPGMAC_SL Short Gap Threshold - This is the CPGMAC_SL associated FIFO transmit block usage value for triggering TX_SHORT_GAP. | RW | 0xB |
Address Offset | 0x0000 0020 | ||
Physical Address | 0x4848 4020 | Instance | SS |
Description | Transmit start words | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | TX_START_WDS |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:11 | RESERVED | R | 0x0 | |
10:0 | TX_START_WDS | FIFO Packet Transmit (egress) Start Words. This value is the number of required packet words in the transmit FIFO before the packet egress will begin. This value is non-zero to preclude underrun. Decimal 32 is the recommended value. It should not be increased unnecessairly to prevent adding to the switch latency. | RW | 0x20 |
Address Offset | 0x0000 0024 | ||
Physical Address | 0x4848 4024 | Instance | SS |
Description | Flow control | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | P2_FLOW_EN | P1_FLOW_EN | P0_FLOW_EN |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:3 | RESERVED | R | 0x0 | |
2 | P2_FLOW_EN | Port 2 Receive flow control enable | RW | 0x0 |
1 | P1_FLOW_EN | Port 1 Receive flow control enable | RW | 0x0 |
0 | P0_FLOW_EN | Port 0 Receive flow control enable | RW | 0x1 |
Address Offset | 0x0000 0028 | ||
Physical Address | 0x4848 4028 | Instance | SS |
Description | LTYPE1 and LTYPE 2 Register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
VLAN_LTYPE2 | VLAN_LTYPE1 |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:16 | VLAN_LTYPE2 | Time Sync VLAN LTYPE2 This VLAN LTYPE value is used for tx and rx. This is the inner VLAN if both are present. | RW | 0x8100 |
15:0 | VLAN_LTYPE1 | Time Sync VLAN LTYPE1 This VLAN LTYPE value is used for tx and rx. This is the outer VLAN if both are present. | RW | 0x8100 |
Address Offset | 0x0000 002C | ||
Physical Address | 0x4848 402C | Instance | SS |
Description | VLAN_LTYPE1 and VLAN_LTYPE2 Register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
TS_LTYPE2 | TS_LTYPE1 |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:16 | TS_LTYPE2 | Time Sync LTYPE2 This is an Ethertype value to match for tx and rx time sync packets. | RW | 0x0 |
15:0 | TS_LTYPE1 | Time Sync LTYPE1 This is an ethertype value to match for tx and rx time sync packets. | RW | 0x0 |
Address Offset | 0x0000 0030 | ||
Physical Address | 0x4848 4030 | Instance | SS |
Description | DLR LTYPE register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | DLR_LTYPE |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:16 | RESERVED | R | 0x0 | |
15:0 | DLR_LTYPE | DLR LTYPE. This is the ethertype value to match for DLR packets. | RW | 0x80E1 |
Address Offset | 0x0000 0034 | ||
Physical Address | 0x4848 4034 | Instance | SS |
Description | EEE Pre-scale Counter Load Value Register | ||
Type | RW |
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | EEE_PRESCALE |
Bits | Field Name | Description | Type | Reset |
---|---|---|---|---|
31:12 | RESERVED | R | 0x0 | |
11:0 | EEE_PRESCALE | Energy Efficient Ethernet Pre-scale count load value – This value is loaded into the EEE pre-scale counter each time the pre-scale count decrements to zero. The EEE counters are enabled to decrement each time the pre-scale counter reaches zero (and the EEE counters are enabled to count time). If this value is zero then the EEE counters decrement on every clock. If this value is 0x001 then the counters decrement on every other clock (and so on). | RW | 0x0 |