All of lore.kernel.org
 help / color / mirror / Atom feed
* DB1x00 FLASH and Kernel 2.6.8.1
@ 2004-10-06 15:23 Charles Eidsness
  2004-10-09  8:51 ` Pete Popov
  0 siblings, 1 reply; 2+ messages in thread
From: Charles Eidsness @ 2004-10-06 15:23 UTC (permalink / raw)
  To: linux-mips

Hi All,

I had to make a minor change to the db1x00 flash's memory map definition 
file in version 2.6.8.1 of the kernel in order to get flash support to 
compile. See attached patch if interested.

Cheers,
Charles

--- linux-2.6.8.1-mips/drivers/mtd/maps/db1x00-flash.c	2004-01-30 
02:34:34.000000000 -0500
+++ linux-2.6.8.1-mips/drivers/mtd/maps/db1x00-flash.c	2004-10-06 
10:39:20.950558416 -0400
@@ -164,9 +164,9 @@
  			return 1;
  	}
  	db1xxx_mtd_map.size = window_size;
-	db1xxx_mtd_map.buswidth = flash_buswidth;
+	db1xxx_mtd_map.bankwidth = flash_buswidth;
  	db1xxx_mtd_map.phys = window_addr;
-	db1xxx_mtd_map.buswidth = flash_buswidth;
+	db1xxx_mtd_map.bankwidth = flash_buswidth;
  	return 0;
  }

@@ -189,7 +189,7 @@
  	 * specific machine settings might have been set above.
  	 */
  	printk(KERN_NOTICE "Db1xxx flash: probing %d-bit flash bus\n",
-			db1xxx_mtd_map.buswidth*8);
+			db1xxx_mtd_map.bankwidth*8);
  	db1xxx_mtd_map.virt = (unsigned long)ioremap(window_addr, window_size);
  	db1xxx_mtd = do_map_probe("cfi_probe", &db1xxx_mtd_map);
  	if (!db1xxx_mtd) return -ENXIO;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-09  8:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-06 15:23 DB1x00 FLASH and Kernel 2.6.8.1 Charles Eidsness
2004-10-09  8:51 ` Pete Popov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.