diff options
author | Roger Quadros <rogerq@kernel.org> | 2024-01-11 15:19:19 +0200 |
---|---|---|
committer | Dario Binacchi <dario.binacchi@amarulasolutions.com> | 2024-01-15 08:58:24 +0100 |
commit | e76959aba50811c2aec70fe86561b7eaad85d0d6 (patch) | |
tree | 458f3f380e90e95123d95da50cdc1b4e96adcb1a /drivers/mtd | |
parent | dd01a229c8058504cbba39c57ae7d67132493441 (diff) | |
download | u-boot-e76959aba50811c2aec70fe86561b7eaad85d0d6.zip u-boot-e76959aba50811c2aec70fe86561b7eaad85d0d6.tar.gz u-boot-e76959aba50811c2aec70fe86561b7eaad85d0d6.tar.bz2 |
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 <rogerq@kernel.org>
Link: https://www.mail-archive.com/u-boot@lists.denx.de/msg499178.html
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Diffstat (limited to 'drivers/mtd')
-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 c430f6d..2f8fa7d 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) |