]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
sf: unify erase commands
authorMike Frysinger <vapier@gentoo.org>
Mon, 5 Mar 2012 03:35:50 +0000 (22:35 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 5 Mar 2012 03:35:50 +0000 (22:35 -0500)
commitc4e932ce732b9d5f9d6e0a0559b7f6c8610a8ac9
tree20ec7705475e9a364f1a1054c52b55d26d79ffe9
parenta4ed3b653163367628d4ad173dfe3faf388da0ac
sf: unify erase commands

Analysis of the flash drivers shows that they all use 0x20 if the erase
size is 4KiB, or 0xd8 if it's larger.  So with this info in hand, we can
unify all the erase functionality in one place.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
drivers/mtd/spi/eon.c
drivers/mtd/spi/macronix.c
drivers/mtd/spi/spansion.c
drivers/mtd/spi/spi_flash.c
drivers/mtd/spi/spi_flash_internal.h
drivers/mtd/spi/sst.c
drivers/mtd/spi/stmicro.c
drivers/mtd/spi/winbond.c