summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/raw/ingenic/Makefile
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2019-03-19 15:53:58 +0100
committerMiquel Raynal <miquel.raynal@bootlin.com>2019-04-08 10:21:04 +0200
commit15de8c6efd0effef3a5226bd5ab7f101c9f4948f (patch)
tree7348903c96769662789587935c59a113752c66b0 /drivers/mtd/nand/raw/ingenic/Makefile
parentd74fd06f44108832c7d879419fe8de976519e522 (diff)
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>
Diffstat (limited to 'drivers/mtd/nand/raw/ingenic/Makefile')
-rw-r--r--drivers/mtd/nand/raw/ingenic/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/ingenic/Makefile b/drivers/mtd/nand/raw/ingenic/Makefile
index af2d5de21f60..f3c3c0f230b0 100644
--- a/drivers/mtd/nand/raw/ingenic/Makefile
+++ b/drivers/mtd/nand/raw/ingenic/Makefile
@@ -1,2 +1,5 @@
obj-$(CONFIG_MTD_NAND_JZ4740) += jz4740_nand.o
-obj-$(CONFIG_MTD_NAND_JZ4780) += ingenic_nand.o jz4780_bch.o
+obj-$(CONFIG_MTD_NAND_JZ4780) += ingenic_nand.o
+
+obj-$(CONFIG_MTD_NAND_INGENIC_ECC) += ingenic_ecc.o
+obj-$(CONFIG_MTD_NAND_JZ4780_BCH) += jz4780_bch.o