mtd: rawnand: stm32_fmc2: add MP25 support
authorChristophe Kerello <christophe.kerello@foss.st.com>
Mon, 19 Feb 2024 14:05:05 +0000 (15:05 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 26 Feb 2024 10:36:27 +0000 (11:36 +0100)
commit0bfad3b3561d6f219b768d2a4265642ee9d31b1d
tree25771724ddf7e06ef758f2af422950cf762c4f18
parenta9ae475cc60d908dfd232d1c064fc34ec51d3228
mtd: rawnand: stm32_fmc2: add MP25 support

FMC2 IP supports up to 4 chip select. On MP1 SoC, only 2 of them are
available when on MP25 SoC, the 4 chip select are available.

Let's use a platform data structure for parameters that will differ.

Signed-off-by: Christophe Kerello <christophe.kerello@foss.st.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20240219140505.85794-4-christophe.kerello@foss.st.com
drivers/mtd/nand/raw/stm32_fmc2_nand.c