summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2025-05-20 08:35:31 -0600
committerTom Rini <trini@konsulko.com>2025-05-20 08:35:31 -0600
commita3e09b24ffd4429909604f1b28455b44306edbaa (patch)
tree80cc0238cd8a30645e4e764d375107091399d48a /drivers/mmc
parenteeb5ff1a468b2303efa9deb2483b5edbebb568c6 (diff)
parent72ba30aeccfc225152c19991732228f95b050ca4 (diff)
Merge tag 'mmc-2025-05-20' of https://source.denx.de/u-boot/custodians/u-boot-mmc
CI: https://source.denx.de/u-boot/custodians/u-boot-mmc/-/pipelines/26241 - Fix mmc cv1800b build without MMC_SUPPORTS_TUNING
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/cv1800b_sdhci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/cv1800b_sdhci.c b/drivers/mmc/cv1800b_sdhci.c
index 4e75051c317..377e6a887df 100644
--- a/drivers/mmc/cv1800b_sdhci.c
+++ b/drivers/mmc/cv1800b_sdhci.c
@@ -31,6 +31,7 @@ static void cv1800b_sdhci_reset(struct sdhci_host *host, u8 mask)
udelay(10);
}
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
static int cv1800b_execute_tuning(struct mmc *mmc, u8 opcode)
{
struct sdhci_host *host = dev_get_priv(mmc->dev);
@@ -61,9 +62,12 @@ static int cv1800b_execute_tuning(struct mmc *mmc, u8 opcode)
return 0;
}
+#endif
const struct sdhci_ops cv1800b_sdhci_sd_ops = {
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
.platform_execute_tuning = cv1800b_execute_tuning,
+#endif
};
static int cv1800b_sdhci_bind(struct udevice *dev)