diff options
author | Steffen Trumtrar <s.trumtrar@pengutronix.de> | 2024-03-18 11:18:19 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2024-03-18 13:17:07 +0100 |
commit | 312fe15bc7341efc1ea93c6b458184d14c2edde5 (patch) | |
tree | 44575a0fdc554a126efffbef6dc796b7e164dd3a | |
parent | 6d0980c89783391c785a7d0498ac04fd3f4a05da (diff) | |
download | barebox-312fe15bc7341efc1ea93c6b458184d14c2edde5.tar.gz barebox-312fe15bc7341efc1ea93c6b458184d14c2edde5.tar.xz |
include: mci: sync mci_timing with linux
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@pengutronix.de>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
-rw-r--r-- | include/mci.h | 18 |
1 files 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) |