[PATCH] mci: stm32_sdmmc2: add support for SDMMC v2.0 as well

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



According to kernel commit 7a2a98be672b ("mmc: mmci: Add support for
sdmmc variant revision 2.0")[0], v2.0 is completely backwards compatible
with v1.1. Add the v2.0's periphid to have the driver work with both.

[0]: https://lore.kernel.org/linux-arm-kernel/20200128090636.13689-10-ludovic.barre@xxxxxx/T/#u
Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 drivers/mci/stm32_sdmmc2.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/drivers/mci/stm32_sdmmc2.c b/drivers/mci/stm32_sdmmc2.c
index da2dc592adb3..0c620427ee44 100644
--- a/drivers/mci/stm32_sdmmc2.c
+++ b/drivers/mci/stm32_sdmmc2.c
@@ -633,11 +633,16 @@ priv_free:
 }
 
 static struct amba_id stm32_sdmmc2_ids[] = {
-	/* ST Micro STM32MP157C */
+	/* ST Micro STM32MP15 v1.1 */
 	{
 		.id     = 0x10153180,
 		.mask	= 0xf0ffffff,
 	},
+	/* ST Micro STM32MP15 v2.0 */
+	{
+		.id     = 0x00253180,
+		.mask	= 0xf0ffffff,
+	},
 	{ 0, 0 },
 };
 
-- 
2.28.0


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



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux