mmc: Add a saved_clock member
authorFaiz Abbas <faiz_abbas@ti.com>
Wed, 26 Feb 2020 08:14:29 +0000 (13:44 +0530)
committerPeng Fan <peng.fan@nxp.com>
Mon, 9 Mar 2020 00:33:15 +0000 (08:33 +0800)
Add a saved_clock member to struct mmc to store the previous clock speed
in the clock needs to be stopped for some time.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
include/mmc.h

index 4bdeb92..8a9ea0b 100644 (file)
@@ -605,6 +605,7 @@ struct mmc {
        bool clk_disable; /* true if the clock can be turned off */
        uint bus_width;
        uint clock;
+       uint saved_clock;
        enum mmc_voltage signal_voltage;
        uint card_caps;
        uint host_caps;