diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-06-03 12:27:55 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-06-20 16:18:16 +0200 |
commit | dee6282fbfc974c4103895d1ccb1cffb3c0a3412 (patch) | |
tree | 1243c4659baff19243798904de5fc9a9ff91f937 /include/mci.h | |
parent | 9590d6f9f13559411c137e5d3390dc7c6d5732b0 (diff) | |
download | barebox-dee6282fbfc974c4103895d1ccb1cffb3c0a3412.tar.gz barebox-dee6282fbfc974c4103895d1ccb1cffb3c0a3412.tar.xz |
mci: Use tran_speed field to fix highspeed MMC card clock
The tran_speed field as decoded from csd is valid in most cases,
so use it to determine the maximum clock we can support. It is
not valid though for MMC highspeed cards, in this case the
csd contains invalid values and we have to set tran_speed explicitly
to the maximum speed. As the values passed into mci_set_clock are
now based on tran_speed we no longer have to limit the rate to
tran_speed in mci_set_clock.
The (intended) effect of this patch is that highspeed MMC cards are
no longer limited to non highspeed rates.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/mci.h')
-rw-r--r-- | include/mci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mci.h b/include/mci.h index edb7c7f1da..1ca00c70f7 100644 --- a/include/mci.h +++ b/include/mci.h @@ -336,7 +336,7 @@ struct mci { unsigned csd[4]; /**< card's "card specific data register" */ unsigned cid[4]; /**< card's "card identification register" */ unsigned short rca; /* FIXME */ - unsigned tran_speed; /**< not yet used */ + unsigned tran_speed; /**< Maximum transfer speed */ /** currently used data block length for read accesses */ unsigned read_bl_len; /** currently used data block length for write accesses */ |