]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/mmc.h
dm: mmc: Add an MMC uclass
[karo-tx-uboot.git] / include / mmc.h
index 3eaebe5295124998b120d41ed48410afbef9aab3..7e4b88195000c03e759d5d4d5570d5ed028e65b3 100644 (file)
 #define MMC_NUM_BOOT_PARTITION 2
 #define MMC_PART_RPMB           3       /* RPMB partition number */
 
+/* Driver model support */
+
+/**
+ * struct mmc_uclass_priv - Holds information about a device used by the uclass
+ */
+struct mmc_uclass_priv {
+       struct mmc *mmc;
+};
+
+/**
+ * mmc_get_mmc_dev() - get the MMC struct pointer for a device
+ *
+ * Provided that the device is already probed and ready for use, this value
+ * will be available.
+ *
+ * @dev:       Device
+ * @return associated mmc struct pointer if available, else NULL
+ */
+struct mmc *mmc_get_mmc_dev(struct udevice *dev);
+
+/* End of driver model support */
+
 struct mmc_cid {
        unsigned long psn;
        unsigned short oid;