mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 11:06:41 -05:00
The Realtek RTl93xx switch SoC series has a built in ECC controller that can provide BCH6 or BCH12 over 512 data and 6 tag bytes. It generates 10 (BCH6) or 20 (BCH12) bytes of parity. This engine will most likely work in conjunction with the Realtek spi-mem based NAND controller but can work on its own. Therefore the initial implementation will be of type external. Remark! The engine can support any data blocks that are multiples of 512 bytes. For now limit it to data+oob layouts that have been analyzed from existing devices. This way it keeps compatibility and pre-existing vendor data can be read. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
17 lines
557 B
Makefile
17 lines
557 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
nandcore-objs := core.o bbt.o
|
|
obj-$(CONFIG_MTD_NAND_CORE) += nandcore.o
|
|
obj-$(CONFIG_MTD_NAND_ECC_MEDIATEK) += ecc-mtk.o
|
|
obj-$(CONFIG_MTD_NAND_ECC_REALTEK) += ecc-realtek.o
|
|
obj-$(CONFIG_SPI_QPIC_SNAND) += qpic_common.o
|
|
obj-$(CONFIG_MTD_NAND_QCOM) += qpic_common.o
|
|
obj-y += onenand/
|
|
obj-y += raw/
|
|
obj-y += spi/
|
|
|
|
nandcore-$(CONFIG_MTD_NAND_ECC) += ecc.o
|
|
nandcore-$(CONFIG_MTD_NAND_ECC_SW_HAMMING) += ecc-sw-hamming.o
|
|
nandcore-$(CONFIG_MTD_NAND_ECC_SW_BCH) += ecc-sw-bch.o
|
|
nandcore-$(CONFIG_MTD_NAND_ECC_MXIC) += ecc-mxic.o
|