diff options
author | Steffen Trumtrar <s.trumtrar@pengutronix.de> | 2024-03-18 11:18:21 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2024-03-18 13:17:07 +0100 |
commit | 8b8c5b0e39a3070fd21ecfff0f402a439dccf5f4 (patch) | |
tree | 29499b5cbe62052dd336dfd1ca9912effda638f0 /include | |
parent | 3455c97f58415b75c91b62792bdf9352107e8187 (diff) | |
download | barebox-8b8c5b0e39a3070fd21ecfff0f402a439dccf5f4.tar.gz barebox-8b8c5b0e39a3070fd21ecfff0f402a439dccf5f4.tar.xz |
mci: core: save the set clock as actual_clock
Linux mmc_host saves the actual_clock set on the HC. Do the same to use
it later.
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/mci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mci.h b/include/mci.h index 91460b7ef6..fe0bd26888 100644 --- a/include/mci.h +++ b/include/mci.h @@ -460,6 +460,7 @@ struct mci_host { unsigned f_min; /**< host interface lower limit */ unsigned f_max; /**< host interface upper limit */ unsigned clock; /**< Current clock used to talk to the card */ + unsigned actual_clock; enum mci_bus_width bus_width; /**< used data bus width to the card */ enum mci_timing timing; /**< used timing specification to the card */ unsigned max_req_size; |