OSDN Git Service

mtd: rawnand: ingenic: Separate top-level and SoC specific code
authorPaul Cercueil <paul@crapouillou.net>
Tue, 19 Mar 2019 14:53:58 +0000 (15:53 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 8 Apr 2019 08:21:04 +0000 (10:21 +0200)
commit15de8c6efd0effef3a5226bd5ab7f101c9f4948f
tree7348903c96769662789587935c59a113752c66b0
parentd74fd06f44108832c7d879419fe8de976519e522
mtd: rawnand: ingenic: Separate top-level and SoC specific code

The ingenic-nand driver uses an API provided by the jz4780-bch driver.
This makes it difficult to support other SoCs in the jz4780-bch driver.
To work around this, we separate the API functions from the SoC-specific
code, so that these API functions are SoC-agnostic.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/ingenic/Kconfig
drivers/mtd/nand/raw/ingenic/Makefile
drivers/mtd/nand/raw/ingenic/ingenic_ecc.c [new file with mode: 0644]
drivers/mtd/nand/raw/ingenic/ingenic_ecc.h [new file with mode: 0644]
drivers/mtd/nand/raw/ingenic/ingenic_nand.c
drivers/mtd/nand/raw/ingenic/jz4780_bch.c
drivers/mtd/nand/raw/ingenic/jz4780_bch.h [deleted file]