]> git.ipfire.org Git - people/ms/u-boot.git/commit
sf: Make 4K sector support configurable
authorMarek Vasut <marex@denx.de>
Sun, 2 Aug 2015 23:28:56 +0000 (01:28 +0200)
committerJagan Teki <jteki@openedev.com>
Mon, 17 Aug 2015 10:29:48 +0000 (15:59 +0530)
commit0a02655481834a4ebdf457e43c24729ffd7daf37
tree0202005fa3dfe497b6884c3c59ff59675fe7787b
parent632093b566569329bc6e5b0893bdca01de905314
sf: Make 4K sector support configurable

Make the support for 4K subpage I/O on a SPI NOR flash configurable.
A board which requires the SPI NOR to be accessed in larger 32KiB
or 64KiB pages can disable the 4K subpage support, but by default,
the support for 4K subpage I/O is enabled. The functionality of this
option is the same as CONFIG_MTD_SPI_NOR_USE_4K_SECTORS in Linux.

This is extremely useful in case one uses UBI on a SPI NOR flash.
UBI needs at least 15k EBs and can not work on a flash which uses
4k ones, so disabling the support for 4k subpages lets UBI work on
such flash.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Jagan Teki <jteki@openedev.com>
drivers/mtd/spi/Kconfig
drivers/mtd/spi/sf_internal.h