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: Stefan Agner <stefan@agner.ch> Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Este cometimento está contido em:

cometido por
Miquel Raynal

ascendente
f308d7353d
cometimento
f922bd798b
@@ -5859,6 +5859,9 @@ static int nand_dt_init(struct nand_chip *chip)
|
||||
if (of_get_nand_bus_width(dn) == 16)
|
||||
chip->options |= NAND_BUSWIDTH_16;
|
||||
|
||||
if (of_property_read_bool(dn, "nand-is-boot-medium"))
|
||||
chip->options |= NAND_IS_BOOT_MEDIUM;
|
||||
|
||||
if (of_get_nand_on_flash_bbt(dn))
|
||||
chip->bbt_options |= NAND_BBT_USE_FLASH;
|
||||
|
||||
|
Criar uma nova questão referindo esta
Bloquear um utilizador