aboutsummaryrefslogtreecommitdiff
path: root/include/mmc.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2024-05-01 19:30:18 -0600
committerTom Rini <trini@konsulko.com>2024-05-07 08:00:40 -0600
commit2143a11e61492cee2f4f5bd4f4203c652c394d0b (patch)
tree2df3938f0bb8cefbc868059638c3a4a44d3cb2d5 /include/mmc.h
parent797cea685b28a566976ebddcee11174c9f70c3b6 (diff)
downloadu-boot-2143a11e61492cee2f4f5bd4f4203c652c394d0b.zip
u-boot-2143a11e61492cee2f4f5bd4f4203c652c394d0b.tar.gz
u-boot-2143a11e61492cee2f4f5bd4f4203c652c394d0b.tar.bz2
mmc: Migrate MMC_SUPPORTS_TUNING to Kconfig
The constraints on the MMC_SUPPORTS_TUNING symbol can easily be expressed in Kconfig (with the addition of SPL_MMC_SUPPORTS_TUNING). Furthermore, in order to remove <common.h> from the MMC subsystem, the way this symbol is used today needs to be changed in order to continue functioning. Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/mmc.h')
-rw-r--r--include/mmc.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/mmc.h b/include/mmc.h
index 4b8327f..7f19003 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -18,13 +18,6 @@
struct bd_info;
-#if CONFIG_IS_ENABLED(MMC_HS200_SUPPORT)
-#define MMC_SUPPORTS_TUNING
-#endif
-#if CONFIG_IS_ENABLED(MMC_UHS_SUPPORT)
-#define MMC_SUPPORTS_TUNING
-#endif
-
/* SD/MMC version bits; 8 flags, 8 major, 8 minor, 8 change */
#define SD_VERSION_SD (1U << 31)
#define MMC_VERSION_MMC (1U << 30)
@@ -485,7 +478,7 @@ struct dm_mmc_ops {
*/
int (*get_wp)(struct udevice *dev);
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
/**
* execute_tuning() - Start the tuning process
*