[PATCH 08/11] Removing dead SH_HICOSH4

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Christoph Egger
Date: Wednesday, July 14, 2010 - 5:41 am

SH_HICOSH4 doesn't exist in Kconfig, therefore removing all references
for it from the source code.

Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
---
 drivers/net/cs89x0.c |   51 +------------------------------------------------
 drivers/net/cs89x0.h |    4 ---
 2 files changed, 2 insertions(+), 53 deletions(-)

diff --git a/drivers/net/cs89x0.c b/drivers/net/cs89x0.c
index 7a5d787..d1762fe 100644
--- a/drivers/net/cs89x0.c
+++ b/drivers/net/cs89x0.c
@@ -170,11 +170,7 @@ static char version[] __initdata =
 /* The cs8900 has 4 IRQ pins, software selectable. cs8900_irq_map maps
    them to system IRQ numbers. This mapping is card specific and is set to
    the configuration of the Cirrus Eval board for this chip. */
-#if defined(CONFIG_SH_HICOSH4)
-static unsigned int netcard_portlist[] __used __initdata =
-   { 0x0300, 0};
-static unsigned int cs8900_irq_map[] = {1,0,0,0};
-#elif defined(CONFIG_MACH_IXDP2351)
+#if defined(CONFIG_MACH_IXDP2351)
 static unsigned int netcard_portlist[] __used __initdata = {IXDP2351_VIRT_CS8900_BASE, 0};
 static unsigned int cs8900_irq_map[] = {IRQ_IXDP2351_CS8900, 0, 0, 0};
 #elif defined(CONFIG_ARCH_IXDP2X01)
@@ -537,12 +533,6 @@ cs89x0_probe1(struct net_device *dev, int ioaddr, int modular)
 		goto out1;
 	}
 
-#ifdef CONFIG_SH_HICOSH4
-	/* truly reset the chip */
-	writeword(ioaddr, ADD_PORT, 0x0114);
-	writeword(ioaddr, DATA_PORT, 0x0040);
-#endif
-
 	/* if they give us an odd I/O address, then do ONE write to
            the address port, to get it back to address zero, where we
            expect to find the EISA signature word. An IO with a base of 0x3
@@ -608,37 +598,6 @@ cs89x0_probe1(struct net_device *dev, int ioaddr, int modular)
 	   the driver will always do *something* instead of complain that
 	   adapter_cnf is 0. */
 
-#ifdef CONFIG_SH_HICOSH4
-	if (1) {
-		/* For the HiCO.SH4 board, things are different: we don't
-		   have EEPROM, but there is some data in flash, so we go
-		   get it there directly (MAC). */
-		__u16 *confd;
-		short cnt;
-		if (((* (volatile __u32 *) 0xa0013ff0) & 0x00ffffff)
-			== 0x006c3000) {
-			confd = (__u16*) 0xa0013fc0;
-		} else {
-			confd = (__u16*) 0xa001ffc0;
-		}
-		cnt = (*confd++ & 0x00ff) >> 1;
-		while (--cnt > 0) {
-			__u16 j = *confd++;
-
-			switch (j & 0x0fff) {
-			case PP_IA:
-				for (i = 0; i < ETH_ALEN/2; i++) {
-					dev->dev_addr[i*2] = confd[i] & 0xFF;
-					dev->dev_addr[i*2+1] = confd[i] >> 8;
-				}
-				break;
-			}
-			j = (j >> 12) + 1;
-			confd += j;
-			cnt -= j;
-		}
-	} else
-#endif
 
         if ((readreg(dev, PP_SelfST) & (EEPROM_OK | EEPROM_PRESENT)) ==
 	      (EEPROM_OK|EEPROM_PRESENT)) {
@@ -693,11 +652,7 @@ cs89x0_probe1(struct net_device *dev, int ioaddr, int modular)
         printk("\n");
 
 	/* First check to see if an EEPROM is attached. */
-#ifdef CONFIG_SH_HICOSH4 /* no EEPROM on HiCO, don't hazzle with it here */
-	if (1) {
-		printk(KERN_NOTICE "cs89x0: No EEPROM on HiCO.SH4\n");
-	} else
-#endif
+
 	if ((readreg(dev, PP_SelfST) & EEPROM_PRESENT) == 0)
 		printk(KERN_WARNING "cs89x0: No EEPROM, relying on command line....\n");
 	else if (get_eeprom_data(dev, START_EEPROM_DATA,CHKSUM_LEN,eeprom_buff) < 0) {
@@ -1234,7 +1189,6 @@ net_open(struct net_device *dev)
 	int i;
 	int ret;
 
-#if !defined(CONFIG_SH_HICOSH4) && !defined(CONFIG_ARCH_PNX010X) /* uses irq#1, so this won't work */
 	if (dev->irq < 2) {
 		/* Allow interrupts to be generated by the chip */
 /* Cirrus' release had this: */
@@ -1263,7 +1217,6 @@ net_open(struct net_device *dev)
 		}
 	}
 	else
-#endif
 	{
 #ifndef CONFIG_CS89x0_NONISA_IRQ
 		if (((1 << dev->irq) & lp->irq_map) == 0) {
diff --git a/drivers/net/cs89x0.h b/drivers/net/cs89x0.h
index 204ed37..91423b7 100644
--- a/drivers/net/cs89x0.h
+++ b/drivers/net/cs89x0.h
@@ -437,11 +437,7 @@
 #define IRQ_MAP_EEPROM_DATA 0x0046 /*  Offset into eeprom for the IRQ map */
 #define IRQ_MAP_LEN 0x0004 /*  No of bytes to read for the IRQ map */
 #define PNP_IRQ_FRMT 0x0022 /*  PNP small item IRQ format */
-#ifdef CONFIG_SH_HICOSH4
-#define CS8900_IRQ_MAP 0x0002 /* HiCO-SH4 board has its IRQ on #1 */
-#else
 #define CS8900_IRQ_MAP 0x1c20 /*  This IRQ map is fixed */
-#endif
 
 #define CS8920_NO_INTS 0x0F   /*  Max CS8920 interrupt select # */
 
-- 
1.7.0.4

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 00/11] Removing dead code, Christoph Egger, (Wed Jul 14, 5:39 am)
[PATCH 01/11] Removing dead RT2800PCI_SOC, Christoph Egger, (Wed Jul 14, 5:39 am)
[PATCH 02/11] Removing dead {AR,WAVE}LAN, Christoph Egger, (Wed Jul 14, 5:39 am)
[PATCH 03/11] Removing dead CASSINI_QGE_DEBUG, Christoph Egger, (Wed Jul 14, 5:39 am)
[PATCH 04/11] Removing dead CASSINI_MULTICAST_REG_WRITE, Christoph Egger, (Wed Jul 14, 5:40 am)
[PATCH 05/11] Removing dead CASSINI_NAPI, Christoph Egger, (Wed Jul 14, 5:40 am)
[PATCH 06/11] Removing dead CHELSIO_T1_COUGAR, Christoph Egger, (Wed Jul 14, 5:41 am)
[PATCH 07/11] Removing dead ARCH_PNX010X, Christoph Egger, (Wed Jul 14, 5:41 am)
[PATCH 08/11] Removing dead SH_HICOSH4, Christoph Egger, (Wed Jul 14, 5:41 am)
[PATCH 10/11] Removing dead NETWINDER_{T,R}X_DMA_PROBLEMS, Christoph Egger, (Wed Jul 14, 5:41 am)
[PATCH 11/11] Removing dead REDWOOD_{5,6}, Christoph Egger, (Wed Jul 14, 5:41 am)
Re: [PATCH 01/11] Removing dead RT2800PCI_SOC, Luis Correia, (Wed Jul 14, 5:46 am)
Re: [PATCH 11/11] Removing dead REDWOOD_{5,6}, Nicolas Pitre, (Wed Jul 14, 5:48 am)
Re: [PATCH 01/11] Removing dead RT2800PCI_SOC, Ivo Van Doorn, (Wed Jul 14, 5:52 am)
Re: [PATCH 01/11] Removing dead RT2800PCI_SOC, John W. Linville, (Wed Jul 14, 6:15 am)
Re: [PATCH 01/11] Removing dead RT2800PCI_SOC, Bartlomiej Zolnierki ..., (Wed Jul 14, 7:14 am)
Re: [PATCH 01/11] Removing dead RT2800PCI_SOC, Felix Fietkau, (Wed Jul 14, 7:44 am)
Re: [PATCH 02/11] Removing dead {AR,WAVE}LAN, David Miller, (Wed Jul 14, 12:17 pm)
Re: [PATCH 03/11] Removing dead CASSINI_QGE_DEBUG, David Miller, (Wed Jul 14, 12:18 pm)
Re: [PATCH 05/11] Removing dead CASSINI_NAPI, David Miller, (Wed Jul 14, 1:36 pm)
Re: [PATCH 06/11] Removing dead CHELSIO_T1_COUGAR, David Miller, (Wed Jul 14, 1:37 pm)
Re: [PATCH 07/11] Removing dead ARCH_PNX010X, David Miller, (Wed Jul 14, 1:39 pm)
Re: [PATCH 08/11] Removing dead SH_HICOSH4, David Miller, (Wed Jul 14, 1:40 pm)
Re: [PATCH 11/11] Removing dead REDWOOD_{5,6}, David Miller, (Wed Jul 14, 1:44 pm)
Re: [PATCH 01/11] Removing dead RT2800PCI_SOC, Bartlomiej Zolnierki ..., (Thu Jul 15, 1:41 am)
Re: [PATCH 01/11] Removing dead RT2800PCI_SOC, Gertjan van Wingerde, (Fri Jul 16, 12:18 am)
Re: [PATCH 01/11] Removing dead RT2800PCI_SOC, Helmut Schaa, (Fri Jul 16, 3:08 am)
Re: [PATCH 01/11] Removing dead RT2800PCI_SOC, Gertjan van Wingerde, (Fri Jul 16, 8:46 am)
Re: [PATCH 01/11] Removing dead RT2800PCI_SOC, Helmut Schaa, (Fri Jul 16, 10:44 am)
Re: [PATCH 07/11] Removing dead ARCH_PNX010X, Christoph Egger, (Mon Jul 19, 7:37 am)