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

Support u-boot driver model. We still retain
support legacy way of doing things if ELM_BASE
is defined in <asm/arch/hardware.h>

We could completely get rid of that if all
platforms defining ELM_BASE get rid of that definition
and enable CONFIG_SYS_NAND_SELF_INIT and are verified
to work.

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>
Reviewed-by: Tom Rini <trini@konsulko.com>
Link: https://lore.kernel.org/all/20221220102203.52398-9-rogerq@kernel.org
Link: https://lore.kernel.org/all/CABGWkvrvKiVA_yaDnHJcHEKwc+pEuLdz=i6HQEY0oJQvohCUsw@mail.gmail.com
drivers/mtd/nand/raw/omap_elm.c
drivers/mtd/nand/raw/omap_elm.h [moved from include/linux/mtd/omap_elm.h with 97% similarity]
drivers/mtd/nand/raw/omap_gpmc.c