[PATCH master] mci: stm32_sdmmc2: add STM32MP131 AMBA primecell peripheral ID

Ahmad Fatoum a.fatoum at pengutronix.de
Tue Apr 26 07:15:04 PDT 2022


v5.18-rc1 device tree now features different peripheral ID. As
peripheral IDs have no fallbacks, this meant broken SD on STM32MP131.

Add new peripheral ID without special handling as IP is
backwards-compatible. DT also contains a st,stm32-sdmmc2 compatible,
which we could match against in future, but for now this isn't
necessary.

Fixes: b01786baa849 ("dts: update to v5.18-rc1")
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 drivers/mci/stm32_sdmmc2.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/mci/stm32_sdmmc2.c b/drivers/mci/stm32_sdmmc2.c
index 0c620427ee44..40ffc17908b2 100644
--- a/drivers/mci/stm32_sdmmc2.c
+++ b/drivers/mci/stm32_sdmmc2.c
@@ -643,6 +643,11 @@ static struct amba_id stm32_sdmmc2_ids[] = {
 		.id     = 0x00253180,
 		.mask	= 0xf0ffffff,
 	},
+	/* ST Micro STM32MP13 */
+	{
+		.id     = 0x20253180,
+		.mask	= 0xf0ffffff,
+	},
 	{ 0, 0 },
 };
 
-- 
2.30.2




More information about the barebox mailing list