diff options
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | 2017-11-30 17:43:55 +0100 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2018-01-12 18:11:04 +0900 |
commit | 7abff2c3b3cbf091f486605684f306d0d631d8d6 (patch) | |
tree | 4b43f5e0cd0d069a0bbb5aa9b6e176da4a564d1b /include/mmc.h | |
parent | 52d241dfba7c3903a3a7d97fe6cb815c9ed379d6 (diff) | |
download | u-boot-7abff2c3b3cbf091f486605684f306d0d631d8d6.tar.gz u-boot-7abff2c3b3cbf091f486605684f306d0d631d8d6.tar.bz2 u-boot-7abff2c3b3cbf091f486605684f306d0d631d8d6.zip |
dm: mmc: update mmc_of_parse()
* convert to livetree API
* don't fail because of an invalid bus-width, instead default to 1-bit.
* recognize 1.2v DDR and 1.2v HS200 flags
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Diffstat (limited to 'include/mmc.h')
-rw-r--r-- | include/mmc.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/mmc.h b/include/mmc.h index 6230a32823..e3f777f680 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -651,7 +651,16 @@ int mmc_unbind(struct udevice *dev); int mmc_initialize(bd_t *bis); int mmc_init(struct mmc *mmc); int mmc_send_tuning(struct mmc *mmc, u32 opcode, int *cmd_error); -int mmc_of_parse(const void *fdt, int node, struct mmc_config *cfg); + +/** + * mmc_of_parse() - Parse the device tree to get the capabilities of the host + * + * @dev: MMC device + * @cfg: MMC configuration + * @return 0 if OK, -ve on error + */ +int mmc_of_parse(struct udevice *dev, struct mmc_config *cfg); + int mmc_read(struct mmc *mmc, u64 src, uchar *dst, int size); /** |