mmc: exynos_dw_mmc: Add quirk for disabling FMP
authorSam Protsenko <semen.protsenko@linaro.org>
Sun, 26 Oct 2025 01:06:56 +0000 (20:06 -0500)
committerPeng Fan <peng.fan@nxp.com>
Fri, 7 Nov 2025 01:28:29 +0000 (09:28 +0800)
commit1e665e543c51d665f3fe1f8dc428f86198812ead
tree0ad2cf29b8cdeac8a2cbc54f5f95fcba1fd008cb
parent6f0845fcb2ca687e346b74caae62c5ad418b1879
mmc: exynos_dw_mmc: Add quirk for disabling FMP

Add DWMCI_QUIRK_DISABLE_FMP which disables Flash Memory Protector (FMP)
during driver's init. It's usually done by early bootloaders, but in
some cases (like USB boot) the FMP may be left unconfigured. The issue
was observed on Exynos850 SoC (the E850-96 board). Enabling this quirk
makes eMMC functional even in such cases.

No functional change, as this feature is only added here but not enabled
for any chips yet.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Anand Moon <linux.amoon@gmail.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-exynos/include/mach/dwmmc.h
drivers/mmc/exynos_dw_mmc.c