On 08.03.24 12:17, Steffen Trumtrar wrote: > The timings are used to check if mci_host->timing is equal to one of > this values. Linux uses a different numbering. Adapt that for compatability. > > Signed-off-by: Steffen Trumtrar <s.trumtrar@xxxxxxxxxxxxxx> Reviewed-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> > --- > include/mci.h | 18 ++++++++++-------- > 1 file changed, 10 insertions(+), 8 deletions(-) > > diff --git a/include/mci.h b/include/mci.h > index 9c9d44881d..91460b7ef6 100644 > --- a/include/mci.h > +++ b/include/mci.h > @@ -411,14 +411,16 @@ enum mci_timing { > MMC_TIMING_LEGACY = 0, > MMC_TIMING_MMC_HS = 1, > MMC_TIMING_SD_HS = 2, > - MMC_TIMING_UHS_SDR12 = MMC_TIMING_LEGACY, > - MMC_TIMING_UHS_SDR25 = MMC_TIMING_SD_HS, > - MMC_TIMING_UHS_SDR50 = 3, > - MMC_TIMING_UHS_SDR104 = 4, > - MMC_TIMING_UHS_DDR50 = 5, > - MMC_TIMING_MMC_HS200 = 6, > - MMC_TIMING_MMC_DDR52 = 7, > - MMC_TIMING_MMC_HS400 = 8, > + MMC_TIMING_UHS_SDR12 = 3, > + MMC_TIMING_UHS_SDR25 = 4, > + MMC_TIMING_UHS_SDR50 = 5, > + MMC_TIMING_UHS_SDR104 = 6, > + MMC_TIMING_UHS_DDR50 = 7, > + MMC_TIMING_MMC_DDR52 = 8, > + MMC_TIMING_MMC_HS200 = 9, > + MMC_TIMING_MMC_HS400 = 10, > + MMC_TIMING_SD_EXP = 11, > + MMC_TIMING_SD_EXP_1_2V = 12, > }; > > static inline bool mci_timing_is_ddr(enum mci_timing timing) > -- 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 |