]> Git Repo - J-u-boot.git/commit - drivers/mtd/nand/raw/Kconfig
mtd: rawnand: omap_gpmc: support u-boot driver model
authorRoger Quadros <[email protected]>
Tue, 20 Dec 2022 10:21:59 +0000 (12:21 +0200)
committerDario Binacchi <[email protected]>
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 <[email protected]>
Signed-off-by: Michael Trimarchi <[email protected]>
Signed-off-by: Dario Binacchi <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
drivers/mtd/nand/raw/Kconfig
drivers/mtd/nand/raw/omap_gpmc.c
This page took 0.036598 seconds and 4 git commands to generate.