]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
sf: Make 4K sector support configurable
authorMarek Vasut <marex@denx.de>
Sun, 2 Aug 2015 23:28:56 +0000 (01:28 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:24:12 +0000 (10:24 +0200)
commitd4125cf9c34058c24559eeaf413ea594bd5a26b1
treeeda77a30df94b4286111c06068d001432297310e
parent24f72723cf3151b1b5d0a5d8e27f1174b9f36ef3
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