Skip to content

Commit 3aeb76a

Browse files
committed
drivers: sdhc: fix sdhc caps field offset
The first field in the capabilities register, "Timeout Clock Frequency" takes up the first 6 bits (5:0), not 5. Reference: 2.2.26, SD Specifications, Part A2, SD Host Controller Simplified Specification, Version 4.20 URL: https://www.sdcard.org/downloads/pls/pdf/?p=PartA2_SD%20Host_Controller_Simplified_Specification_Ver4.20.jpg Signed-off-by: Amneesh Singh <[email protected]>
1 parent 179045e commit 3aeb76a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/drivers/sdhc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ enum sd_voltage {
161161
* driver, using the @ref sdhc_get_host_props api.
162162
*/
163163
struct sdhc_host_caps {
164-
unsigned int timeout_clk_freq: 5; /**< Timeout clock frequency */
164+
unsigned int timeout_clk_freq: 6; /**< Timeout clock frequency */
165165
unsigned int _rsvd_6: 1; /**< Reserved */
166166
unsigned int timeout_clk_unit: 1; /**< Timeout clock unit */
167167
unsigned int sd_base_clk: 8; /**< SD base clock frequency */

0 commit comments

Comments
 (0)