aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/raw/Makefile
diff options
context:
space:
mode:
authorChristophe Kerello <christophe.kerello@st.com>2018-12-14 10:58:07 +0100
committerMiquel Raynal <miquel.raynal@bootlin.com>2019-02-05 15:39:37 +0100
commit2cd457f328c100bc98e36d55fe210e9ab067c704 (patch)
treeaba8b5b62cc7de5c6ba513b81295d7ccfdc1f3db /drivers/mtd/nand/raw/Makefile
parentdt-bindings: mtd: stm32_fmc2: add STM32 FMC2 NAND controller documentation (diff)
downloadlinux-dev-2cd457f328c100bc98e36d55fe210e9ab067c704.tar.xz
linux-dev-2cd457f328c100bc98e36d55fe210e9ab067c704.zip
mtd: rawnand: stm32_fmc2: add STM32 FMC2 NAND flash controller driver
The driver adds the support for the STMicroelectronics FMC2 NAND Controller found on STM32MP SOCs. This patch is based on FMC2 command sequencer. The purpose of the command sequencer is to facilitate the programming and the reading of NAND flash pages with the ECC and to free the CPU of sequencing tasks. It requires one DMA channel for write and two DMA channels for read operations. Only NAND_ECC_HW mode is actually supported. The driver supports a maximum 8k page size. The following ECC strength and step size are currently supported: - nand-ecc-strength = <8>, nand-ecc-step-size = <512> (BCH8) - nand-ecc-strength = <4>, nand-ecc-step-size = <512> (BCH4) - nand-ecc-strength = <1>, nand-ecc-step-size = <512> (Extended ECC based on Hamming) This patch has been tested on Micron MT29F8G08ABACAH4 and MT29F8G16ABACAH4 Signed-off-by: Christophe Kerello <christophe.kerello@st.com> Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/mtd/nand/raw/Makefile')
-rw-r--r--drivers/mtd/nand/raw/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/raw/Makefile b/drivers/mtd/nand/raw/Makefile
index 57159b349054..325bc9eb3858 100644
--- a/drivers/mtd/nand/raw/Makefile
+++ b/drivers/mtd/nand/raw/Makefile
@@ -56,6 +56,7 @@ obj-$(CONFIG_MTD_NAND_BRCMNAND) += brcmnand/
obj-$(CONFIG_MTD_NAND_QCOM) += qcom_nandc.o
obj-$(CONFIG_MTD_NAND_MTK) += mtk_ecc.o mtk_nand.o
obj-$(CONFIG_MTD_NAND_TEGRA) += tegra_nand.o
+obj-$(CONFIG_MTD_NAND_STM32_FMC2) += stm32_fmc2_nand.o
nand-objs := nand_base.o nand_legacy.o nand_bbt.o nand_timings.o nand_ids.o
nand-objs += nand_onfi.o