Commit b18f2091 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Jeff Garzik

[PATCH] skge: remove unused declarations

Get rid of definitions for chip versions and PHY chips that
this driver does not support.
Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
parent 47079534
...@@ -636,10 +636,6 @@ static void skge_led_on(struct skge_hw *hw, int port) ...@@ -636,10 +636,6 @@ static void skge_led_on(struct skge_hw *hw, int port)
xm_phy_write(hw, port, PHY_BCOM_P_EXT_CTRL, xm_phy_write(hw, port, PHY_BCOM_P_EXT_CTRL,
PHY_B_PEC_LED_ON); PHY_B_PEC_LED_ON);
break; break;
case SK_PHY_LONE:
xm_phy_write(hw, port, PHY_LONE_LED_CFG,
0x0800);
break;
default: default:
skge_write8(hw, SK_REG(port, TX_LED_TST), LED_T_ON); skge_write8(hw, SK_REG(port, TX_LED_TST), LED_T_ON);
skge_write32(hw, SK_REG(port, TX_LED_VAL), 100); skge_write32(hw, SK_REG(port, TX_LED_VAL), 100);
...@@ -670,10 +666,6 @@ static void skge_led_off(struct skge_hw *hw, int port) ...@@ -670,10 +666,6 @@ static void skge_led_off(struct skge_hw *hw, int port)
xm_phy_write(hw, port, PHY_BCOM_P_EXT_CTRL, xm_phy_write(hw, port, PHY_BCOM_P_EXT_CTRL,
PHY_B_PEC_LED_OFF); PHY_B_PEC_LED_OFF);
break; break;
case SK_PHY_LONE:
xm_phy_write(hw, port, PHY_LONE_LED_CFG,
PHY_L_LC_LEDT);
break;
default: default:
skge_write32(hw, SK_REG(port, TX_LED_VAL), 0); skge_write32(hw, SK_REG(port, TX_LED_VAL), 0);
skge_write8(hw, SK_REG(port, TX_LED_CTRL), LED_T_OFF); skge_write8(hw, SK_REG(port, TX_LED_CTRL), LED_T_OFF);
...@@ -1202,7 +1194,7 @@ static void genesis_mac_init(struct skge_hw *hw, int port) ...@@ -1202,7 +1194,7 @@ static void genesis_mac_init(struct skge_hw *hw, int port)
case SK_PHY_BCOM: case SK_PHY_BCOM:
ctrl1 = PHY_CT_SP1000; ctrl1 = PHY_CT_SP1000;
ctrl2 = 0; ctrl2 = 0;
ctrl3 = PHY_SEL_TYPE; ctrl3 = PHY_AN_CSMA;
ctrl4 = PHY_B_PEC_EN_LTR; ctrl4 = PHY_B_PEC_EN_LTR;
ctrl5 = PHY_B_AC_TX_TST; ctrl5 = PHY_B_AC_TX_TST;
...@@ -1624,7 +1616,7 @@ static void yukon_init(struct skge_hw *hw, int port) ...@@ -1624,7 +1616,7 @@ static void yukon_init(struct skge_hw *hw, int port)
ctrl = 0; ctrl = 0;
ct1000 = 0; ct1000 = 0;
adv = PHY_SEL_TYPE; adv = PHY_AN_CSMA;
if (skge->autoneg == AUTONEG_ENABLE) { if (skge->autoneg == AUTONEG_ENABLE) {
if (iscopper(hw)) { if (iscopper(hw)) {
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment