]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: rawnand: stm32_fmc2: add STM32 FMC2 NAND flash controller driver
authorChristophe Kerello <christophe.kerello@st.com>
Fri, 5 Apr 2019 09:41:50 +0000 (11:41 +0200)
committerPatrick Delaunay <patrick.delaunay@st.com>
Fri, 12 Apr 2019 14:09:13 +0000 (16:09 +0200)
commit7bb75023a720432a32840c6df543aae92653b23d
treee3fd663b8b22bd5ea6f9d3c31b51da47be869e65
parent6899385f41ee43170c82dddc814323d2e2901a22
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 adds the polling mode, a basic mode that do not need
any DMA channels.

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.

Signed-off-by: Christophe Kerello <christophe.kerello@st.com>
drivers/mtd/nand/raw/Kconfig
drivers/mtd/nand/raw/Makefile
drivers/mtd/nand/raw/stm32_fmc2_nand.c [new file with mode: 0644]