From 19f7a34a4642e25aa8b80c6d75129fe7848a158d Mon Sep 17 00:00:00 2001 From: Aswath Govindraju Date: Fri, 13 Aug 2021 23:04:41 +0530 Subject: 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 Reviewed-by: Jaehoon Chung Tested-by: Jaehoon Chung --- include/mmc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/mmc.h b/include/mmc.h index 0bf19de20e5..b92e2553402 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) -- cgit v1.3.1