diff options
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | 2017-09-21 16:30:09 +0200 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2018-01-12 18:11:04 +0900 |
commit | 01298da31d92ecc46cf9130d8cff68bc51698197 (patch) | |
tree | d80163eb1f56b262cacedef86b88547b9e1bb803 /include/mmc.h | |
parent | 04a2ea248f58b3b6216d0cd0a6b8698df8b14355 (diff) | |
download | u-boot-midas-01298da31d92ecc46cf9130d8cff68bc51698197.tar.gz u-boot-midas-01298da31d92ecc46cf9130d8cff68bc51698197.tar.bz2 u-boot-midas-01298da31d92ecc46cf9130d8cff68bc51698197.zip |
mmc: Change mode when switching to a boot partition
Boot partitions do not support HS200. Changing to a lower performance mode
is required to access them.
mmc_select_mode_and_width() and sd_select_mode_and_width() are modified to
make it easier to call them outside of the initialization context.
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 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/mmc.h b/include/mmc.h index 59ea363ea2..a8901bffc7 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -585,7 +585,12 @@ struct mmc { #endif #endif u8 *ext_csd; - enum bus_mode selected_mode; + enum bus_mode selected_mode; /* mode currently used */ + enum bus_mode best_mode; /* best mode is the supported mode with the + * highest bandwidth. It may not always be the + * operating mode due to limitations when + * accessing the boot partitions + */ }; struct mmc_hwpart_conf { |