aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/chelsio
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/chelsio')
-rw-r--r--drivers/net/chelsio/common.h1
-rw-r--r--drivers/net/chelsio/subr.c49
2 files changed, 2 insertions, 48 deletions
diff --git a/drivers/net/chelsio/common.h b/drivers/net/chelsio/common.h
index 036b2dfb1d40..092f31a126e6 100644
--- a/drivers/net/chelsio/common.h
+++ b/drivers/net/chelsio/common.h
@@ -286,7 +286,6 @@ struct board_info {
286 unsigned int clock_mc3; 286 unsigned int clock_mc3;
287 unsigned int clock_mc4; 287 unsigned int clock_mc4;
288 unsigned int espi_nports; 288 unsigned int espi_nports;
289 unsigned int clock_cspi;
290 unsigned int clock_elmer0; 289 unsigned int clock_elmer0;
291 unsigned char mdio_mdien; 290 unsigned char mdio_mdien;
292 unsigned char mdio_mdiinv; 291 unsigned char mdio_mdiinv;
diff --git a/drivers/net/chelsio/subr.c b/drivers/net/chelsio/subr.c
index 53bde15fc94d..599d178df62d 100644
--- a/drivers/net/chelsio/subr.c
+++ b/drivers/net/chelsio/subr.c
@@ -185,9 +185,6 @@ static int t1_pci_intr_handler(adapter_t *adapter)
185 return 0; 185 return 0;
186} 186}
187 187
188#ifdef CONFIG_CHELSIO_T1_COUGAR
189#include "cspi.h"
190#endif
191#ifdef CONFIG_CHELSIO_T1_1G 188#ifdef CONFIG_CHELSIO_T1_1G
192#include "fpga_defs.h" 189#include "fpga_defs.h"
193 190
@@ -280,7 +277,7 @@ static void mi1_mdio_init(adapter_t *adapter, const struct board_info *bi)
280 t1_tpi_write(adapter, A_ELMER0_PORT0_MI1_CFG, val); 277 t1_tpi_write(adapter, A_ELMER0_PORT0_MI1_CFG, val);
281} 278}
282 279
283#if defined(CONFIG_CHELSIO_T1_1G) || defined(CONFIG_CHELSIO_T1_COUGAR) 280#if defined(CONFIG_CHELSIO_T1_1G)
284/* 281/*
285 * Elmer MI1 MDIO read/write operations. 282 * Elmer MI1 MDIO read/write operations.
286 */ 283 */
@@ -317,7 +314,7 @@ static int mi1_mdio_write(struct net_device *dev, int phy_addr, int mmd_addr,
317 return 0; 314 return 0;
318} 315}
319 316
320#if defined(CONFIG_CHELSIO_T1_1G) || defined(CONFIG_CHELSIO_T1_COUGAR) 317#if defined(CONFIG_CHELSIO_T1_1G)
321static const struct mdio_ops mi1_mdio_ops = { 318static const struct mdio_ops mi1_mdio_ops = {
322 .init = mi1_mdio_init, 319 .init = mi1_mdio_init,
323 .read = mi1_mdio_read, 320 .read = mi1_mdio_read,
@@ -752,31 +749,6 @@ int t1_elmer0_ext_intr_handler(adapter_t *adapter)
752 mod_detect ? "removed" : "inserted"); 749 mod_detect ? "removed" : "inserted");
753 } 750 }
754 break; 751 break;
755#ifdef CONFIG_CHELSIO_T1_COUGAR
756 case CHBT_BOARD_COUGAR:
757 if (adapter->params.nports == 1) {
758 if (cause & ELMER0_GP_BIT1) { /* Vitesse MAC */
759 struct cmac *mac = adapter->port[0].mac;
760 mac->ops->interrupt_handler(mac);
761 }
762 if (cause & ELMER0_GP_BIT5) { /* XPAK MOD_DETECT */
763 }
764 } else {
765 int i, port_bit;
766
767 for_each_port(adapter, i) {
768 port_bit = i ? i + 1 : 0;
769 if (!(cause & (1 << port_bit)))
770 continue;
771
772 phy = adapter->port[i].phy;
773 phy_cause = phy->ops->interrupt_handler(phy);
774 if (phy_cause & cphy_cause_link_change)
775 t1_link_changed(adapter, i);
776 }
777 }
778 break;
779#endif
780 } 752 }
781 t1_tpi_write(adapter, A_ELMER0_INT_CAUSE, cause); 753 t1_tpi_write(adapter, A_ELMER0_INT_CAUSE, cause);
782 return 0; 754 return 0;
@@ -955,7 +927,6 @@ static int board_init(adapter_t *adapter, const struct board_info *bi)
955 case CHBT_BOARD_N110: 927 case CHBT_BOARD_N110:
956 case CHBT_BOARD_N210: 928 case CHBT_BOARD_N210:
957 case CHBT_BOARD_CHT210: 929 case CHBT_BOARD_CHT210:
958 case CHBT_BOARD_COUGAR:
959 t1_tpi_par(adapter, 0xf); 930 t1_tpi_par(adapter, 0xf);
960 t1_tpi_write(adapter, A_ELMER0_GPO, 0x800); 931 t1_tpi_write(adapter, A_ELMER0_GPO, 0x800);
961 break; 932 break;
@@ -1004,10 +975,6 @@ int t1_init_hw_modules(adapter_t *adapter)
1004 adapter->regs + A_MC5_CONFIG); 975 adapter->regs + A_MC5_CONFIG);
1005 } 976 }
1006 977
1007#ifdef CONFIG_CHELSIO_T1_COUGAR
1008 if (adapter->cspi && t1_cspi_init(adapter->cspi))
1009 goto out_err;
1010#endif
1011 if (adapter->espi && t1_espi_init(adapter->espi, bi->chip_mac, 978 if (adapter->espi && t1_espi_init(adapter->espi, bi->chip_mac,
1012 bi->espi_nports)) 979 bi->espi_nports))
1013 goto out_err; 980 goto out_err;
@@ -1061,10 +1028,6 @@ void t1_free_sw_modules(adapter_t *adapter)
1061 t1_tp_destroy(adapter->tp); 1028 t1_tp_destroy(adapter->tp);
1062 if (adapter->espi) 1029 if (adapter->espi)
1063 t1_espi_destroy(adapter->espi); 1030 t1_espi_destroy(adapter->espi);
1064#ifdef CONFIG_CHELSIO_T1_COUGAR
1065 if (adapter->cspi)
1066 t1_cspi_destroy(adapter->cspi);
1067#endif
1068} 1031}
1069 1032
1070static void __devinit init_link_config(struct link_config *lc, 1033static void __devinit init_link_config(struct link_config *lc,
@@ -1084,14 +1047,6 @@ static void __devinit init_link_config(struct link_config *lc,
1084 } 1047 }
1085} 1048}
1086 1049
1087#ifdef CONFIG_CHELSIO_T1_COUGAR
1088 if (bi->clock_cspi && !(adapter->cspi = t1_cspi_create(adapter))) {
1089 pr_err("%s: CSPI initialization failed\n",
1090 adapter->name);
1091 goto error;
1092 }
1093#endif
1094
1095/* 1050/*
1096 * Allocate and initialize the data structures that hold the SW state of 1051 * Allocate and initialize the data structures that hold the SW state of
1097 * the Terminator HW modules. 1052 * the Terminator HW modules.