]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
mmc: Add support for eMMC 5.1B specification
authorHan Xu <han.xu@nxp.com>
Wed, 25 Feb 2026 21:13:32 +0000 (15:13 -0600)
committerPeng Fan <peng.fan@nxp.com>
Mon, 23 Mar 2026 03:27:52 +0000 (11:27 +0800)
Add support for eMMC specification version 5.1B by defining
MMC_VERSION_5_1B and including it in the version array.

eMMC 5.1B (JESD84-B51B) is a minor revision of the 5.1 specification
that primarily addresses MDT (Manufacturing Date) adjustment for dates
beyond 2025. This aligns with the Linux kernel commit 9996707822f82
("mmc: core: Adjust MDT beyond 2025").

Since the manufacturing date field is not currently used in U-Boot,
this change has no functional impact beyond proper device recognition.
It allows the driver to correctly identify and initialize eMMC devices
that report version 5.1B in their Extended CSD register.

Signed-off-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/mmc.c
include/mmc.h

index c5705f4f2154fa2fc5bdb9125156da27d834efa6..f0e38efb262b7b7ebb705e7862cac93b97afac5a 100644 (file)
@@ -2343,7 +2343,8 @@ static int mmc_startup_v4(struct mmc *mmc)
                MMC_VERSION_4_41,
                MMC_VERSION_4_5,
                MMC_VERSION_5_0,
-               MMC_VERSION_5_1
+               MMC_VERSION_5_1,
+               MMC_VERSION_5_1B
        };
 
 #if CONFIG_IS_ENABLED(MMC_TINY)
index 51d3f2f8dd599d82ef4e2c33068479cce8f23f8f..9509c9e9543d2d43f9fabd3c6fe61d207f13b88e 100644 (file)
@@ -54,6 +54,7 @@ struct bd_info;
 #define MMC_VERSION_4_5                MAKE_MMC_VERSION(4, 5, 0)
 #define MMC_VERSION_5_0                MAKE_MMC_VERSION(5, 0, 0)
 #define MMC_VERSION_5_1                MAKE_MMC_VERSION(5, 1, 0)
+#define MMC_VERSION_5_1B       MAKE_MMC_VERSION(5, 1, 0xB)
 
 #define MMC_CAP(mode)          (1 << mode)
 #define MMC_MODE_HS            (MMC_CAP(MMC_HS) | MMC_CAP(SD_HS))