u-boot-brain/drivers/mtd/spi
Michael Walle 5d867bcc23 mtd: spi-nor: add unlock all config option
Provide an explicit configuration option to disable default "unlock all"
of any flash chip which supports locking. It doesn't make sense to
automatically unprotect the entire flash on each u-boot startup if the
block protection bits are actually used.

Traditionally, the unlock was there to be able to write to flash devices
which powered-up with the block protection bits set. Over time this
feature creeped into all flash devices which support locking.

For a more detailed description and discussion see:
https://lore.kernel.org/linux-mtd/20201203162959.29589-8-michael@walle.cc/

Keep things simple in u-boot and just provide a configration option to
disable this behavior which can be set per board.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
2021-02-08 14:01:13 +05:30
..
fsl_espi_spl.c common: Move hang() to the same header as panic() 2020-01-17 17:53:40 -05:00
Kconfig mtd: spi-nor: add unlock all config option 2021-02-08 14:01:13 +05:30
Makefile spi: Allow separate control of SPI_FLASH_TINY for SPL/TPL 2020-08-03 22:19:54 -04:00
sandbox.c dm: Avoid accessing seq directly 2020-12-18 20:32:21 -07:00
sf_dataflash.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
sf_internal.h mtd: spi: Fix incorrect indentation 2020-10-27 08:13:33 +01:00
sf_mtd.c common: Drop flash.h from common header 2020-05-18 14:53:28 -04:00
sf_probe.c dm: Rename U_BOOT_DRIVER_ALIAS to DM_DRIVER_ALIAS 2021-01-05 12:26:35 -07:00
sf-uclass.c spi: Tweak a few strange SPI NOR features for of-platdata 2021-01-05 12:24:41 -07:00
spi-nor-core.c mtd: spi-nor: add unlock all config option 2021-02-08 14:01:13 +05:30
spi-nor-ids.c mtd: spi-nor-ids: add Micron MT25QL01G flash 2020-12-18 16:19:33 +05:30
spi-nor-tiny.c mtd: spi: Fix logging in spi-nor-tiny 2020-09-30 08:52:41 -04:00