]> git.dujemihanovic.xyz Git - u-boot.git/commit
sf: add struct spi_flash.sector_size parameter
authorRichard Retanubun <RichardRetanubun@ruggedcom.com>
Wed, 16 Feb 2011 21:37:22 +0000 (16:37 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 12 Apr 2011 06:15:37 +0000 (02:15 -0400)
commit4e6a515899290635bfd7fe3aef8c4d4d9e88fced
treee4e38baaa882e2dab02c7a1ab83a0912029d605b
parentcdb6a00fb8f96b9259ed7d77a1eacbfa3777ddac
sf: add struct spi_flash.sector_size parameter

This patch adds a new member to struct spi_flash (u16 sector_size)
and updates the spi flash drivers to start populating it.

This parameter can be used by spi flash commands that need to round
up units of operation to the flash's sector_size.

Having this number in one place also allows duplicated code to be
further collapsed into one common location (such as erase parameter
and the detected message).

Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
drivers/mtd/spi/atmel.c
drivers/mtd/spi/eon.c
drivers/mtd/spi/macronix.c
drivers/mtd/spi/ramtron.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
include/spi_flash.h