diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-11-28 17:23:01 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-12-01 16:32:30 -0500 |
commit | 44c7fccec4098772b9451a252d162faea4f0cc34 (patch) | |
tree | 6551bdf5b87b1cc76a16b44cf0fd3a583e4ed16f /drivers | |
parent | bf9f56d585c1e4cab6c44270fa5865237751dbda (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/skge.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/skge.c b/drivers/net/skge.c index 59359409da7a..53d2059a6604 100644 --- a/drivers/net/skge.c +++ b/drivers/net/skge.c | |||
@@ -2190,9 +2190,12 @@ static void yukon_mac_init(struct skge_hw *hw, int port) | |||
2190 | TX_JAM_IPG_VAL(TX_JAM_IPG_DEF) | | 2190 | TX_JAM_IPG_VAL(TX_JAM_IPG_DEF) | |
2191 | TX_IPG_JAM_DATA(TX_IPG_JAM_DEF)); | 2191 | TX_IPG_JAM_DATA(TX_IPG_JAM_DEF)); |
2192 | 2192 | ||
2193 | /* serial mode register */ | 2193 | /* configure the Serial Mode Register */ |
2194 | reg = GM_SMOD_VLAN_ENA | IPG_DATA_VAL(IPG_DATA_DEF); | 2194 | reg = DATA_BLIND_VAL(DATA_BLIND_DEF) |
2195 | if (hw->dev[port]->mtu > 1500) | 2195 | | GM_SMOD_VLAN_ENA |
2196 | | IPG_DATA_VAL(IPG_DATA_DEF); | ||
2197 | |||
2198 | if (hw->dev[port]->mtu > ETH_DATA_LEN) | ||
2196 | reg |= GM_SMOD_JUMBO_ENA; | 2199 | reg |= GM_SMOD_JUMBO_ENA; |
2197 | 2200 | ||
2198 | gma_write16(hw, port, GM_SERIAL_MODE, reg); | 2201 | gma_write16(hw, port, GM_SERIAL_MODE, reg); |