net: rswitch: Set GWMDNC register
To support jumbo frames, set GWMDNC register with acceptable maximum values for TX and RX. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
fcff581ee4
commit
9c90316a11
@ -668,6 +668,8 @@ static int rswitch_gwca_hw_init(struct rswitch_private *priv)
|
||||
iowrite32(upper_32_bits(priv->gwca.linkfix_table_dma), priv->addr + GWDCBAC0);
|
||||
iowrite32(lower_32_bits(priv->gwca.ts_queue.ring_dma), priv->addr + GWTDCAC10);
|
||||
iowrite32(upper_32_bits(priv->gwca.ts_queue.ring_dma), priv->addr + GWTDCAC00);
|
||||
iowrite32(GWMDNC_TSDMN(1) | GWMDNC_TXDMN(0x1e) | GWMDNC_RXDMN(0x1f),
|
||||
priv->addr + GWMDNC);
|
||||
iowrite32(GWCA_TS_IRQ_BIT, priv->addr + GWTSDCC0);
|
||||
|
||||
iowrite32(GWTPC_PPPL(GWCA_IPV_NUM), priv->addr + GWTPC0);
|
||||
|
@ -773,6 +773,10 @@ enum rswitch_gwca_mode {
|
||||
#define GWARIRM_ARIOG BIT(0)
|
||||
#define GWARIRM_ARR BIT(1)
|
||||
|
||||
#define GWMDNC_TSDMN(num) (((num) << 16) & GENMASK(17, 16))
|
||||
#define GWMDNC_TXDMN(num) (((num) << 8) & GENMASK(12, 8))
|
||||
#define GWMDNC_RXDMN(num) ((num) & GENMASK(4, 0))
|
||||
|
||||
#define GWDCC_BALR BIT(24)
|
||||
#define GWDCC_DCP_MASK GENMASK(18, 16)
|
||||
#define GWDCC_DCP(prio) FIELD_PREP(GWDCC_DCP_MASK, (prio))
|
||||
|
Loading…
Reference in New Issue
Block a user