mmc: Add generic tuning flag
Set generic mmc->tuning flag when performing tuning to indicate this condition to drivers. Drivers may use this to bypass various checks during tuning. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
This commit is contained in:
parent
d1343522e5
commit
8c22089788
|
@ -124,7 +124,13 @@ static int dm_mmc_execute_tuning(struct udevice *dev, uint opcode)
|
||||||
|
|
||||||
int mmc_execute_tuning(struct mmc *mmc, uint opcode)
|
int mmc_execute_tuning(struct mmc *mmc, uint opcode)
|
||||||
{
|
{
|
||||||
return dm_mmc_execute_tuning(mmc->dev, opcode);
|
int ret;
|
||||||
|
|
||||||
|
mmc->tuning = true;
|
||||||
|
ret = dm_mmc_execute_tuning(mmc->dev, opcode);
|
||||||
|
mmc->tuning = false;
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -736,6 +736,7 @@ struct mmc {
|
||||||
* accessing the boot partitions
|
* accessing the boot partitions
|
||||||
*/
|
*/
|
||||||
u32 quirks;
|
u32 quirks;
|
||||||
|
bool tuning:1;
|
||||||
bool hs400_tuning:1;
|
bool hs400_tuning:1;
|
||||||
|
|
||||||
enum bus_mode user_speed_mode; /* input speed mode from user */
|
enum bus_mode user_speed_mode; /* input speed mode from user */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user