[PATCH v2 3/4] mtd: rawnand: omap_gpmc: fix OF based partition parsing for NAND
Roger Quadros
rogerq at kernel.org
Thu Jan 11 14:19:19 CET 2024
Set NAND chip ofnode and device so OF based partition parsing
can work.
Signed-off-by: Roger Quadros <rogerq at kernel.org>
---
Notes:
v2: initial commit
drivers/mtd/nand/raw/omap_gpmc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mtd/nand/raw/omap_gpmc.c b/drivers/mtd/nand/raw/omap_gpmc.c
index f827c578d9..b36b6fabae 100644
--- a/drivers/mtd/nand/raw/omap_gpmc.c
+++ b/drivers/mtd/nand/raw/omap_gpmc.c
@@ -1226,6 +1226,8 @@ static int gpmc_nand_probe(struct udevice *dev)
base = devm_ioremap(dev, res.start, resource_size(&res));
gpmc_nand_init(nand, base);
+ mtd->dev = dev;
+ nand_set_flash_node(nand, dev_ofnode(dev));
ret = nand_scan(mtd, CONFIG_SYS_NAND_MAX_CHIPS);
if (ret)
--
2.34.1
More information about the U-Boot
mailing list