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>
This commit is contained in:
Jean-Jacques Hiblot
2017-09-21 16:30:09 +02:00
committed by Jaehoon Chung
parent 04a2ea248f
commit 01298da31d
2 changed files with 55 additions and 18 deletions

View File

@@ -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 {