]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: rawnand: omap_gpmc: support u-boot driver model
authorRoger Quadros <rogerq@kernel.org>
Tue, 20 Dec 2022 10:21:59 +0000 (12:21 +0200)
committerDario Binacchi <dario.binacchi@amarulasolutions.com>
Sun, 8 Jan 2023 09:38:50 +0000 (10:38 +0100)
commitff0d078942382ffdcbcfe44083427385dface1eb
tree01bffb892afa513a3514e1d1b37d03f632e3a5db
parentdbb8711530160554823ccb8770dc6c570f482569
mtd: rawnand: omap_gpmc: support u-boot driver model

Adds driver model support.

We need to be able to self initialize the NAND controller/chip
at probe and so enable CONFIG_SYS_NAND_SELF_INIT.

Doing so requires nand_register() API which is provided by nand.c
and needs to be enabled during SPL build via CONFIG_SPL_NAND_INIT.
But nand.c also provides nand_init() so we need to get rid of nand_init()
in omap_gpmc driver if CONFIG_SPL_NAND_INIT is set.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Link: https://lore.kernel.org/all/20221220102203.52398-5-rogerq@kernel.org
drivers/mtd/nand/raw/Kconfig
drivers/mtd/nand/raw/omap_gpmc.c