]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - include/mmc.h
mmc: don't read the size of eMMC enhanced user data area in SPL
[people/ms/u-boot.git] / include / mmc.h
index e89ba95e5dca1457e45263c10cbe073996f04f73..cd068b9429bf419d67ffa99e0f846899f5b36d89 100644 (file)
@@ -585,17 +585,23 @@ struct mmc {
        uint tran_speed;
        uint legacy_speed; /* speed for the legacy mode provided by the card */
        uint read_bl_len;
+#if CONFIG_IS_ENABLED(MMC_WRITE)
        uint write_bl_len;
        uint erase_grp_size;    /* in 512-byte sectors */
+#endif
        uint hc_wp_grp_size;    /* in 512-byte sectors */
+#if CONFIG_IS_ENABLED(MMC_WRITE)
        struct sd_ssr   ssr;    /* SD status register */
+#endif
        u64 capacity;
        u64 capacity_user;
        u64 capacity_boot;
        u64 capacity_rpmb;
        u64 capacity_gp[4];
+#ifndef CONFIG_SPL_BUILD
        u64 enh_user_start;
        u64 enh_user_size;
+#endif
 #if !CONFIG_IS_ENABLED(BLK)
        struct blk_desc block_dev;
 #endif