]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: EXT_CSD registers for write protection
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 30 Mar 2020 05:24:16 +0000 (07:24 +0200)
committerPeng Fan <peng.fan@nxp.com>
Wed, 22 Apr 2020 12:41:54 +0000 (20:41 +0800)
Add the EXT_CSD register definition related to write protection.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/mmc.h

index e83c22423bfc79df81cc2c0b51f42c6efd10b116..4ecd6c744c51c96f58a241b1d573cfe9312b4d4c 100644 (file)
@@ -223,6 +223,9 @@ static inline bool mmc_is_tuning_cmd(uint cmdidx)
 #define EXT_CSD_WR_REL_PARAM           166     /* R */
 #define EXT_CSD_WR_REL_SET             167     /* R/W */
 #define EXT_CSD_RPMB_MULT              168     /* RO */
+#define EXT_CSD_USER_WP                        171     /* R/W & R/W/C_P & R/W/E_P */
+#define EXT_CSD_BOOT_WP                        173     /* R/W & R/W/C_P */
+#define EXT_CSD_BOOT_WP_STATUS         174     /* R */
 #define EXT_CSD_ERASE_GROUP_DEF                175     /* R/W */
 #define EXT_CSD_BOOT_BUS_WIDTH         177
 #define EXT_CSD_PART_CONF              179     /* R/W */