summaryrefslogtreecommitdiff
path: root/include/sdhci.h
diff options
context:
space:
mode:
authorStephen Carlson <stcarlso@linux.microsoft.com>2021-08-17 22:46:41 +0300
committerJaehoon Chung <jh80.chung@samsung.com>2021-10-29 12:22:32 +0300
commit40e6f52454fc9adb6269ef8089c1fd2ded85fee8 (patch)
treec2d7718ebb946d038f36d78b553be00d1fa7f900 /include/sdhci.h
parentee02543561d4d776b15ad1ad2f6430b361414102 (diff)
downloadu-boot-40e6f52454fc9adb6269ef8089c1fd2ded85fee8.tar.xz
drivers: mmc: Add wait_dat0 support for sdhci driver
Adds an implementation of the wait_dat0 MMC operation for the DM SDHCI driver, allowing the driver to continue when the card is ready rather than waiting for the worst case time on each MMC switch operation. Signed-off-by: Stephen Carlson <stcarlso@linux.microsoft.com> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'include/sdhci.h')
-rw-r--r--include/sdhci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sdhci.h b/include/sdhci.h
index 44a0d84e5a..c718dd7206 100644
--- a/include/sdhci.h
+++ b/include/sdhci.h
@@ -65,6 +65,8 @@
#define SDHCI_CARD_STATE_STABLE BIT(17)
#define SDHCI_CARD_DETECT_PIN_LEVEL BIT(18)
#define SDHCI_WRITE_PROTECT BIT(19)
+#define SDHCI_DATA_LVL_MASK 0x00F00000
+#define SDHCI_DATA_0_LVL_MASK BIT(20)
#define SDHCI_HOST_CONTROL 0x28
#define SDHCI_CTRL_LED BIT(0)