diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-10-20 18:52:14 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-10-21 11:59:59 +0200 |
commit | 7ef4cf1a432257f99bee06232929e76292de47ae (patch) | |
tree | 30c7bdccab1f301e04d93317b1d82b7288fc5207 | |
parent | 575f687c6d7230bf4f1202f48c5153f40964b936 (diff) | |
download | barebox-7ef4cf1a432257f99bee06232929e76292de47ae.tar.gz barebox-7ef4cf1a432257f99bee06232929e76292de47ae.tar.xz |
mci: stm32_sdmmc2: add support for SDMMC v2.0 as well
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@st.com/T/#u
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/mci/stm32_sdmmc2.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/mci/stm32_sdmmc2.c b/drivers/mci/stm32_sdmmc2.c index da2dc592ad..0c620427ee 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 }, }; |