summaryrefslogtreecommitdiff
path: root/include/drivers
diff options
context:
space:
mode:
authorTien Hock, Loh <tien.hock.loh@intel.com>2019-03-07 11:34:20 +0800
committerTien Hock, Loh <tien.hock.loh@intel.com>2019-03-07 11:34:20 +0800
commita468e756377ebe73920eb83f4a4425cabab66ebc (patch)
tree76ac6077eda8b433325e3c034b44d0d55812bcc9 /include/drivers
parent1cf55aba4902d43c95e5a24acf6d85de96923dc0 (diff)
drivers: mmc: Fix some issues with MMC stack
Some bugs in MMC stack needs to be fixed: - scr cannot be local as this will cause cache issue when invalidating after the read DMA transfer is completed - ACMD41 needs to send voltage information in initialization, otherwise the command is a query, thus will not initialize the controller - when checking device state, retry until the retries counter goes to zero before failing Signed-off-by: Tien Hock, Loh <tien.hock.loh@intel.com>
Diffstat (limited to 'include/drivers')
-rw-r--r--include/drivers/mmc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drivers/mmc.h b/include/drivers/mmc.h
index 2aaa28d6..7611f019 100644
--- a/include/drivers/mmc.h
+++ b/include/drivers/mmc.h
@@ -220,6 +220,7 @@ struct mmc_device_info {
unsigned long long device_size; /* Size of device in bytes */
unsigned int block_size; /* Block size in bytes */
unsigned int max_bus_freq; /* Max bus freq in Hz */
+ unsigned int ocr_voltage; /* OCR voltage */
enum mmc_device_type mmc_dev_type; /* Type of MMC */
};