diff options
author | Aswath Govindraju <a-govindraju@ti.com> | 2021-08-13 20:34:41 +0300 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2021-09-10 13:17:04 +0300 |
commit | 19f7a34a4642e25aa8b80c6d75129fe7848a158d (patch) | |
tree | 74c326eca33b00ff58048c052749f9452725fc13 /include | |
parent | 4a3ea75de4c5b3053eac326bf1c753ed65df8cb9 (diff) | |
download | u-boot-19f7a34a4642e25aa8b80c6d75129fe7848a158d.tar.xz |
mmc: Add support for enumerating MMC card in a given mode using mmc command
Add support for enumerating MMC card in a given mode using mmc rescan and
mmc dev commands. The speed mode is provided as the last argument in these
commands and is indicated using the index from enum bus_mode in
include/mmc.h. A speed mode can be set only if it has already been enabled
in the device tree.
Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Tested-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/mmc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h index 0bf19de20e..b92e255340 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -726,6 +726,8 @@ struct mmc { */ u32 quirks; u8 hs400_tuning; + + enum bus_mode user_speed_mode; /* input speed mode from user */ }; #if CONFIG_IS_ENABLED(DM_MMC) |