mtd/drivers/mtd/maps ixp4xx.c,1.7,1.8

dvrabel at infradead.org dvrabel at infradead.org
Thu Sep 8 06:32:23 EDT 2005


Update of /home/cvs/mtd/drivers/mtd/maps
In directory phoenix.infradead.org:/tmp/cvs-serv7567

Modified Files:
	ixp4xx.c 
Log Message:
ixp4xx: remove platform specific bits
  - Intel chip driver has a reboot notifier so no need to reset the chip here.
  - Don't play with chip selects (platform code should do this if necessary).

Signed-off-by: David Vrabel <dvrabel at arcom.com>


Index: ixp4xx.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/maps/ixp4xx.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ixp4xx.c	4 Nov 2004 13:24:15 -0000	1.7
+++ ixp4xx.c	8 Sep 2005 10:32:20 -0000	1.8
@@ -108,12 +108,6 @@
 	if(!info)
 		return 0;
 
-	/*
-	 * This is required for a soft reboot to work.
-	 */
-	d.x[0] = 0xff;
-	ixp4xx_write16(&info->map, d, 0x55 * 0x2);
-
 	if (info->mtd) {
 		del_mtd_partitions(info->mtd);
 		map_destroy(info->mtd);
@@ -132,9 +126,6 @@
 	if (plat->exit)
 		plat->exit();
 
-	/* Disable flash write */
-	*IXP4XX_EXP_CS0 &= ~IXP4XX_FLASH_WRITABLE;
-
 	return 0;
 }
 
@@ -163,12 +154,6 @@
 
 	dev_set_drvdata(&dev->dev, info);
 
-	/* 
-	 * Enable flash write 
-	 * TODO: Move this out to board specific code
-	 */
-	*IXP4XX_EXP_CS0 |= IXP4XX_FLASH_WRITABLE;
-
 	/*
 	 * Tell the MTD layer we're not 1:1 mapped so that it does
 	 * not attempt to do a direct access on us.





More information about the linux-mtd-cvs mailing list