forked from zephyrproject-rtos/zephyr
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disk: sdhc: Switch to clock frequency from DTS
The "spi-max-frequency" property already exists, but was unused. This now sets the SPI clock frequency to this value (limited to 24MHz) once initialisation is complete. Due to the nature of the SPI API, it is necessary to have two separate configuration structures to switch clock speed as some SPI drivers only compare pointers to detect changes. Fixes: zephyrproject-rtos#32996 Signed-off-by: Rich Barlow <rich@bennellick.com>
- Loading branch information
Rich Barlow
committed
Mar 26, 2021
1 parent
63ca48a
commit ee52000
Showing
1 changed file
with
70 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters