mtd: rawnand: ams-delta: Make the driver custom I/O ready
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Wed, 12 Feb 2020 00:39:28 +0000 (01:39 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 11 Mar 2020 15:17:53 +0000 (16:17 +0100)
commit2b1dcee304b67f3c4e7e2e910be90e36eef46050
treee661137b71fbb73a4549628c04ff681caff83961
parentedfd8d9c763f5f91cda663e89f34dccacd8eb586
mtd: rawnand: ams-delta: Make the driver custom I/O ready

In order to be merged with "gpio-nand", the driver must support custom
(non-GPIO) I/O accessors.

Allow platforms to omit data GPIO port as well as NWE pin info from
device setup.  For the driver to still work on such platform, custom
I/O accessors as well as a custom probe function which initialises the
driver private structure with those accessors must be added to the
driver.

Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200212003929.6682-14-jmkrzyszt@gmail.com
drivers/mtd/nand/raw/ams-delta.c