mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH master] mci: stm32_sdmmc2: add STM32MP131 AMBA primecell peripheral ID
@ 2022-04-26 14:15 Ahmad Fatoum
  2022-04-29  7:16 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2022-04-26 14:15 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

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@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-29  7:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-26 14:15 [PATCH master] mci: stm32_sdmmc2: add STM32MP131 AMBA primecell peripheral ID Ahmad Fatoum
2022-04-29  7:16 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox