]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spi-nor: Add spi flash lock config option
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Tue, 3 Oct 2023 03:17:13 +0000 (08:47 +0530)
committerMichal Simek <michal.simek@amd.com>
Tue, 7 Nov 2023 12:47:08 +0000 (13:47 +0100)
commit188c803d08c6f1744484de6663f7c5d31ef71cfe
tree1b95607befc6119490368bc4a4fdc152489f5325
parentbd9ff681bdd1893d11ab8d4ea79a9f74d0fffdb7
mtd: spi-nor: Add spi flash lock config option

Provide an explicit configuration option to disable default "lock"
of any flash chip which supports locking. By disabling the lock
config will save some amount of memory and also don't expose the
lock functionality to the users i.e., via sf protect command.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Link: https://lore.kernel.org/r/20231003031715.5343-2-venkatesh.abbarapu@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
cmd/sf.c
drivers/mtd/spi/Kconfig
drivers/mtd/spi/spi-nor-core.c