]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: rawnand: nand_base: support for 'NAND_IS_BOOT_MEDIUM' flag
authorArseniy Krasnov <avkrasnov@salutedevices.com>
Mon, 26 Aug 2024 13:17:08 +0000 (16:17 +0300)
committerNeil Armstrong <neil.armstrong@linaro.org>
Wed, 28 Aug 2024 14:05:45 +0000 (16:05 +0200)
commit9905e77edaa9b4a43285e587317c600ffa7be7ca
treed40601e8d311af73da8331980f5868da6891e4e3
parentee2af844ba1b27b2e959c4e649e4b769fbeb4074
mtd: rawnand: nand_base: support for 'NAND_IS_BOOT_MEDIUM' flag

Based on Linux kernel:
commit f922bd798bb9 ("mtd: rawnand: add an option to specify NAND chip as a boot device")

Allow to define a NAND chip as a boot device. This can be helpful
for the selection of the ECC algorithm and strength in case the boot
ROM supports only a subset of controller provided options.

Signed-off-by: Arseniy Krasnov <avkrasnov@salutedevices.com>
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
Link: https://lore.kernel.org/r/20240826131710.29746-2-avkrasnov@salutedevices.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
drivers/mtd/nand/raw/nand_base.c
include/linux/mtd/rawnand.h