diff options
| author | Alper Nebi Yasak <[email protected]> | 2022-03-15 20:46:26 +0300 |
|---|---|---|
| committer | Jaehoon Chung <[email protected]> | 2022-03-16 18:10:19 +0900 |
| commit | 2a1d7c635fdede97a05d16067a936bba0a37f908 (patch) | |
| tree | 11b759d5256caec7cae47a76e1d49c5b38f5ce14 /include | |
| parent | 0f3466f52fbacce67e147b9234e6323edff26a6d (diff) | |
mmc: sdhci: Add HS400 Enhanced Strobe support
Delegate setting the Enhanced Strobe configuration to individual drivers
if they set a function for it. Return -ENOTSUPP if they do not, like
what the MMC uclass does.
Signed-off-by: Alper Nebi Yasak <[email protected]>
Reviewed-by: Jaehoon Chung <[email protected]>
Reviewed-by: Kever Yang <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sdhci.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/sdhci.h b/include/sdhci.h index c8d69f5a63f..88f1917480b 100644 --- a/include/sdhci.h +++ b/include/sdhci.h @@ -272,6 +272,18 @@ struct sdhci_ops { int (*platform_execute_tuning)(struct mmc *host, u8 opcode); int (*set_delay)(struct sdhci_host *host); int (*deferred_probe)(struct sdhci_host *host); + + /** + * set_enhanced_strobe() - Set HS400 Enhanced Strobe config + * + * This is called after setting the card speed and mode to + * HS400 ES, and should set any host-specific configuration + * necessary for it. + * + * @host: SDHCI host structure + * Return: 0 if successful, -ve on error + */ + int (*set_enhanced_strobe)(struct sdhci_host *host); }; #define ADMA_MAX_LEN 65532 |
