mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-11 20:07:00 +00:00
skge: serial mode register values
For compatiablity with sk98lin, make sure and set same values in serial mode register. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
bf9f56d585
commit
44c7fccec4
@ -2190,9 +2190,12 @@ static void yukon_mac_init(struct skge_hw *hw, int port)
|
|||||||
TX_JAM_IPG_VAL(TX_JAM_IPG_DEF) |
|
TX_JAM_IPG_VAL(TX_JAM_IPG_DEF) |
|
||||||
TX_IPG_JAM_DATA(TX_IPG_JAM_DEF));
|
TX_IPG_JAM_DATA(TX_IPG_JAM_DEF));
|
||||||
|
|
||||||
/* serial mode register */
|
/* configure the Serial Mode Register */
|
||||||
reg = GM_SMOD_VLAN_ENA | IPG_DATA_VAL(IPG_DATA_DEF);
|
reg = DATA_BLIND_VAL(DATA_BLIND_DEF)
|
||||||
if (hw->dev[port]->mtu > 1500)
|
| GM_SMOD_VLAN_ENA
|
||||||
|
| IPG_DATA_VAL(IPG_DATA_DEF);
|
||||||
|
|
||||||
|
if (hw->dev[port]->mtu > ETH_DATA_LEN)
|
||||||
reg |= GM_SMOD_JUMBO_ENA;
|
reg |= GM_SMOD_JUMBO_ENA;
|
||||||
|
|
||||||
gma_write16(hw, port, GM_SERIAL_MODE, reg);
|
gma_write16(hw, port, GM_SERIAL_MODE, reg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user