]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: nand: arasan: Remove hardcoded bbt option
authorAshok Reddy Soma <ashok.reddy.soma@amd.com>
Fri, 24 Feb 2023 05:07:06 +0000 (22:07 -0700)
committerMichal Simek <michal.simek@amd.com>
Thu, 9 Mar 2023 12:15:00 +0000 (13:15 +0100)
Bad block table option is hardcoded to read from flash with
NAND_BBT_USE_FLASH option. This decision should be done based on DT
property. Remove this hardcoding, to be able to use DT property.

Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com>
Link: https://lore.kernel.org/r/20230224050709.30014-2-ashok.reddy.soma@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/mtd/nand/raw/arasan_nfc.c

index 4621bfb03e385c3b4be9a731aece8a323918340d..ddb4cb1cbae8609e6aecc44c0455ae3e26501df3 100644 (file)
@@ -1248,7 +1248,6 @@ static int arasan_probe(struct udevice *dev)
        /* Buffer read/write routines */
        nand_chip->read_buf = arasan_nand_read_buf;
        nand_chip->write_buf = arasan_nand_write_buf;
-       nand_chip->bbt_options = NAND_BBT_USE_FLASH;
 
        writel(0x0, &info->reg->cmd_reg);
        writel(0x0, &info->reg->pgm_reg);