On Wed, Feb 12, 2020 at 03:14:29PM +0100, Ahmad Fatoum wrote: > The SDMMC2 doesn't need any special setup for High-Speed modes, except > for the clock changes. Thus set the cap flags if the max clock would > allow for the higher speed mode. > > Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> > --- > drivers/mci/stm32_sdmmc2.c | 5 +++++ > 1 file changed, 5 insertions(+) Applied, thanks Sascha > > diff --git a/drivers/mci/stm32_sdmmc2.c b/drivers/mci/stm32_sdmmc2.c > index 695e61d1ccd7..0c26869b0378 100644 > --- a/drivers/mci/stm32_sdmmc2.c > +++ b/drivers/mci/stm32_sdmmc2.c > @@ -631,6 +631,11 @@ static int stm32_sdmmc2_probe(struct amba_device *adev, > > mci_of_parse(&priv->mci); > > + if (mci->f_max >= 26000000) > + mci->host_caps |= MMC_CAP_MMC_HIGHSPEED; > + if (mci->f_max >= 52000000) > + mci->host_caps |= MMC_CAP_MMC_HIGHSPEED_52MHZ; > + > return mci_register(&priv->mci); > > priv_free: > -- > 2.25.0 > > > _______________________________________________ > barebox mailing list > barebox@xxxxxxxxxxxxxxxxxxx > http://lists.infradead.org/mailman/listinfo/barebox > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox