diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-03-30 07:24:17 +0200 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2020-04-22 20:41:54 +0800 |
commit | 1601ea212623c9bdb479636bec9e7299b0cb14dd (patch) | |
tree | 56f0be024d5b1337e74fb8d927224e0ee4feec14 /include | |
parent | 9abfe33d10ef80c4d99c1d2b23e434a043866f13 (diff) | |
download | u-boot-1601ea212623c9bdb479636bec9e7299b0cb14dd.tar.gz |
mmc: export mmc_send_ext_csd()
Export function mmc_send_ext_csd() for reading the extended CSD register.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/mmc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h index 4ecd6c744c..85fc3497a1 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -896,6 +896,17 @@ int mmc_get_env_dev(void); */ struct blk_desc *mmc_get_blk_desc(struct mmc *mmc); +/** + * mmc_send_ext_csd() - read the extended CSD register + * + * @mmc: MMC device + * @ext_csd a cache aligned buffer of length MMC_MAX_BLOCK_LEN allocated by + * the caller, e.g. using + * ALLOC_CACHE_ALIGN_BUFFER(u8, ext_csd, MMC_MAX_BLOCK_LEN) + * Return: 0 for success + */ +int mmc_send_ext_csd(struct mmc *mmc, u8 *ext_csd); + static inline enum dma_data_direction mmc_get_dma_dir(struct mmc_data *data) { return data->flags & MMC_DATA_WRITE ? DMA_TO_DEVICE : DMA_FROM_DEVICE; |