mtd: rawnand: stm32_fmc2: add NAND Write Protect support
authorChristophe Kerello <christophe.kerello@foss.st.com>
Tue, 22 Feb 2022 16:38:49 +0000 (17:38 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 15 Mar 2022 08:10:52 +0000 (09:10 +0100)
commit7ce4f1fad28e538d216065b5042f6f20a5f50a90
treea53c4b42e06add9010c04e0a1fafd09f0d03b635
parentc149bf41404e34014e37de32fac332892b11bd4a
mtd: rawnand: stm32_fmc2: add NAND Write Protect support

This patch adds the support of the WP# signal. WP will be disabled
before the first access to the NAND flash.

Signed-off-by: Christophe Kerello <christophe.kerello@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/mtd/nand/raw/stm32_fmc2_nand.c