diff options
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | 2017-09-21 16:29:57 +0200 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2018-01-12 18:11:04 +0900 |
commit | d0c221fe7336fc7d9ada57d96f4a8911a3aac041 (patch) | |
tree | 2f77d13094264e9c5af62e5564e4b73af8985a40 /include/mmc.h | |
parent | 7a96ec74592847cd7bf5664cb72996500ebde92b (diff) | |
download | u-boot-d0c221fe7336fc7d9ada57d96f4a8911a3aac041.tar.gz |
mmc: refactor SD startup to make it easier to support new modes
The SDcard startup process currently handles only 2 modes. To make it
easier to add support for more modes, let's make the process more generic
and use a list of the modes to try.
The major functional change is that when a mode fails we try the next one.
Not all modes are tried, only those supported by the card and the host.
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/mmc.h')
-rw-r--r-- | include/mmc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h index dd83f14b6c..9fe6a87e88 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -59,6 +59,7 @@ #define MMC_MODE_8BIT BIT(30) #define MMC_MODE_4BIT BIT(29) +#define MMC_MODE_1BIT BIT(28) #define MMC_MODE_SPI BIT(27) |