diff options
author | Kishon Vijay Abraham I | 2017-09-21 16:30:00 +0200 |
---|---|---|
committer | Jaehoon Chung | 2018-01-12 18:11:04 +0900 |
commit | aff5d3c83fb8c294b3c4b97c5b6386306b47f1a0 (patch) | |
tree | 77ca6c45a1fe42319577c1e6ca456c6dfab8c925 /include/mmc.h | |
parent | 2a4d212f7110712f51ae8af73abbdb0ae2af0814 (diff) |
mmc: Enable signal voltage to be selected from mmc core
Add a new function *mmc_set_signal_voltage* in mmc core
which can be used during mmc initialization to select the
signal voltage. Platform driver should use the set_ios
callback function to select the signal voltage.
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Diffstat (limited to 'include/mmc.h')
-rw-r--r-- | include/mmc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h index 3e57887af01..e5249637c85 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -272,6 +272,13 @@ #define ENHNCD_SUPPORT (0x2) #define PART_ENH_ATTRIB (0x1f) +enum mmc_voltage { + MMC_SIGNAL_VOLTAGE_000 = 0, + MMC_SIGNAL_VOLTAGE_120, + MMC_SIGNAL_VOLTAGE_180, + MMC_SIGNAL_VOLTAGE_330 +}; + /* Maximum block size for MMC */ #define MMC_MAX_BLOCK_LEN 512 @@ -457,6 +464,7 @@ struct mmc { int high_capacity; uint bus_width; uint clock; + enum mmc_voltage signal_voltage; uint card_caps; uint ocr; uint dsr; |