|
389 | 389 | #define MVPP2_GMAC_IN_BAND_AUTONEG BIT(2) |
390 | 390 | #define MVPP2_GMAC_IN_BAND_AUTONEG_BYPASS BIT(3) |
391 | 391 | #define MVPP2_GMAC_IN_BAND_RESTART_AN BIT(4) |
392 | | -#define MVPP2_GMAC_CONFIG_MII_SPEED BIT(5) |
| 392 | +#define MVPP2_GMAC_CONFIG_MII_SPEED BIT(5) |
393 | 393 | #define MVPP2_GMAC_CONFIG_GMII_SPEED BIT(6) |
394 | 394 | #define MVPP2_GMAC_AN_SPEED_EN BIT(7) |
395 | 395 | #define MVPP2_GMAC_FC_ADV_EN BIT(9) |
|
430 | 430 | #define MVPP22_XLG_CTRL0_REG 0x100 |
431 | 431 | #define MVPP22_XLG_CTRL0_PORT_EN BIT(0) |
432 | 432 | #define MVPP22_XLG_CTRL0_MAC_RESET_DIS BIT(1) |
| 433 | +#define MVPP22_XLG_CTRL0_FORCE_LINK_DOWN BIT(2) |
| 434 | +#define MVPP22_XLG_CTRL0_FORCE_LINK_PASS BIT(3) |
433 | 435 | #define MVPP22_XLG_CTRL0_RX_FLOW_CTRL_EN BIT(7) |
434 | 436 | #define MVPP22_XLG_CTRL0_TX_FLOW_CTRL_EN BIT(8) |
435 | 437 | #define MVPP22_XLG_CTRL0_MIB_CNT_DIS BIT(14) |
|
481 | 483 | /* XPCS registers. PPv2.2 only */ |
482 | 484 | #define MVPP22_XPCS_BASE(port) (0x7400 + (port) * 0x1000) |
483 | 485 | #define MVPP22_XPCS_CFG0 0x0 |
| 486 | +#define MVPP22_XPCS_CFG0_RESET_DIS BIT(0) |
484 | 487 | #define MVPP22_XPCS_CFG0_PCS_MODE(n) ((n) << 3) |
485 | 488 | #define MVPP22_XPCS_CFG0_ACTIVE_LANE(n) ((n) << 5) |
486 | 489 |
|
|
549 | 552 | #define MVPP2_MAX_TSO_SEGS 300 |
550 | 553 | #define MVPP2_MAX_SKB_DESCS (MVPP2_MAX_TSO_SEGS * 2 + MAX_SKB_FRAGS) |
551 | 554 |
|
552 | | -/* Dfault number of RXQs in use */ |
553 | | -#define MVPP2_DEFAULT_RXQ 1 |
| 555 | +/* Max number of RXQs per port */ |
| 556 | +#define MVPP2_PORT_MAX_RXQ 32 |
554 | 557 |
|
555 | 558 | /* Max number of Rx descriptors */ |
556 | 559 | #define MVPP2_MAX_RXD_MAX 1024 |
@@ -803,7 +806,7 @@ struct mvpp2_port { |
803 | 806 | u8 id; |
804 | 807 |
|
805 | 808 | /* Index of the port from the "group of ports" complex point |
806 | | - * of view |
| 809 | + * of view. This is specific to PPv2.2. |
807 | 810 | */ |
808 | 811 | int gop_id; |
809 | 812 |
|
|
0 commit comments