X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Fmmc.h;h=7e4b88195000c03e759d5d4d5570d5ed028e65b3;hb=13a3e2ee237f515af5738c07aaf604db9b54be34;hp=611c5691015fcfd2c0bae0bb61deaf870cc93ae1;hpb=cc4c78074adc6044e06222d00de27fee7b7900f8;p=karo-tx-uboot.git diff --git a/include/mmc.h b/include/mmc.h index 611c569101..7e4b881950 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -55,8 +55,7 @@ #define MMC_MODE_4BIT (1 << 2) #define MMC_MODE_8BIT (1 << 3) #define MMC_MODE_SPI (1 << 4) -#define MMC_MODE_HC (1 << 5) -#define MMC_MODE_DDR_52MHz (1 << 6) +#define MMC_MODE_DDR_52MHz (1 << 5) #define SD_DATA_4BIT 0x00040000 @@ -267,6 +266,28 @@ #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;