diff options
| author | Roger Quadros <[email protected]> | 2024-01-11 15:19:19 +0200 |
|---|---|---|
| committer | Dario Binacchi <[email protected]> | 2024-01-15 08:58:24 +0100 |
| commit | e76959aba50811c2aec70fe86561b7eaad85d0d6 (patch) | |
| tree | 458f3f380e90e95123d95da50cdc1b4e96adcb1a /drivers | |
| parent | dd01a229c8058504cbba39c57ae7d67132493441 (diff) | |
mtd: rawnand: omap_gpmc: fix OF based partition parsing for NAND
Set NAND chip ofnode and device so OF based partition parsing
can work.
Signed-off-by: Roger Quadros <[email protected]>
Link: https://www.mail-archive.com/[email protected]/msg499178.html
Signed-off-by: Dario Binacchi <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/mtd/nand/raw/omap_gpmc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/nand/raw/omap_gpmc.c b/drivers/mtd/nand/raw/omap_gpmc.c index c430f6d31c7..2f8fa7d73d2 100644 --- a/drivers/mtd/nand/raw/omap_gpmc.c +++ b/drivers/mtd/nand/raw/omap_gpmc.c @@ -1189,6 +1189,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) |
