mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
mmc: add a hs400_tuning flag
Some controllers may have difference between HS200 tuning and HS400 tuning, such as different registers setting, different procedure, or different errata. This patch is to add a hs400_tuning flag to identify the tuning for HS400 mode. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
This commit is contained in:
parent
1b5f0ba7a5
commit
8c96880814
|
@ -1982,7 +1982,9 @@ static int mmc_select_hs400(struct mmc *mmc)
|
|||
mmc_set_clock(mmc, mmc->tran_speed, false);
|
||||
|
||||
/* execute tuning if needed */
|
||||
mmc->hs400_tuning = 1;
|
||||
err = mmc_execute_tuning(mmc, MMC_CMD_SEND_TUNING_BLOCK_HS200);
|
||||
mmc->hs400_tuning = 0;
|
||||
if (err) {
|
||||
debug("tuning failed\n");
|
||||
return err;
|
||||
|
|
|
@ -707,6 +707,7 @@ struct mmc {
|
|||
* accessing the boot partitions
|
||||
*/
|
||||
u32 quirks;
|
||||
u8 hs400_tuning;
|
||||
};
|
||||
|
||||
struct mmc_hwpart_conf {
|
||||
|
|
Loading…
Reference in New Issue
Block a user