summaryrefslogtreecommitdiffstats
path: root/include/mmc.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-05-01 13:52:34 -0600
committerSimon Glass <sjg@chromium.org>2016-05-17 09:54:43 -0600
commitcffe5d86cfe853ae9271d37522f8bc5795cc4c69 (patch)
tree1cdf6a6e9740f888957e2c6aba672326989eef1b /include/mmc.h
parentb6694a33c45530e4c260c7fd6c77cc8472c9412f (diff)
downloadblackbird-obmc-uboot-cffe5d86cfe853ae9271d37522f8bc5795cc4c69.tar.gz
blackbird-obmc-uboot-cffe5d86cfe853ae9271d37522f8bc5795cc4c69.zip
dm: mmc: Set up the device pointer when using the MMC uclass
Update the existing drivers to set up this new pointer. This will be required by the MMC uclass. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/mmc.h')
-rw-r--r--include/mmc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h
index f01674d9fc..6d1f05c328 100644
--- a/include/mmc.h
+++ b/include/mmc.h
@@ -381,6 +381,9 @@ struct mmc {
char init_in_progress; /* 1 if we have done mmc_start_init() */
char preinit; /* start init as early as possible */
int ddr_mode;
+#ifdef CONFIG_DM_MMC
+ struct udevice *dev; /* Device for this MMC controller */
+#endif
};
struct mmc_hwpart_conf {
OpenPOWER on IntegriCloud