diff options
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | 2017-09-21 16:30:01 +0200 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2018-01-12 18:11:04 +0900 |
commit | 318a7a576bc49aa8b4207e694d3fbd48c663d6ac (patch) | |
tree | b693aae78287dc6ad3eb069d6a4308266187bff1 /include/mmc.h | |
parent | aff5d3c83fb8c294b3c4b97c5b6386306b47f1a0 (diff) | |
download | u-boot-318a7a576bc49aa8b4207e694d3fbd48c663d6ac.tar.gz u-boot-318a7a576bc49aa8b4207e694d3fbd48c663d6ac.tar.bz2 u-boot-318a7a576bc49aa8b4207e694d3fbd48c663d6ac.zip |
mmc: Add a new callback function to perform the 74 clocks cycle sequence
Add a new callback function *send_init_stream* which start a sequence of
at least 74 clock cycles.
The mmc core uses *mmc_send_init_stream* in order to invoke the callback
function. This will be used during power cycle where the specification
requires such a sequence after power up.
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Diffstat (limited to 'include/mmc.h')
-rw-r--r-- | include/mmc.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/mmc.h b/include/mmc.h index e5249637c8..bd096aeb21 100644 --- a/include/mmc.h +++ b/include/mmc.h @@ -361,6 +361,14 @@ struct dm_mmc_ops { int (*set_ios)(struct udevice *dev); /** + * send_init_stream() - send the initialization stream: 74 clock cycles + * This is used after power up before sending the first command + * + * @dev: Device to update + */ + void (*send_init_stream)(struct udevice *dev); + + /** * get_cd() - See whether a card is present * * @dev: Device to check @@ -382,11 +390,13 @@ struct dm_mmc_ops { int dm_mmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, struct mmc_data *data); int dm_mmc_set_ios(struct udevice *dev); +void dm_mmc_send_init_stream(struct udevice *dev); int dm_mmc_get_cd(struct udevice *dev); int dm_mmc_get_wp(struct udevice *dev); /* Transition functions for compatibility */ int mmc_set_ios(struct mmc *mmc); +void mmc_send_init_stream(struct mmc *mmc); int mmc_getcd(struct mmc *mmc); int mmc_getwp(struct mmc *mmc); |