commit | 9f2a65e74e4363b4e2762e37f5fd5f5dcdfb49fc | [log] [tgz] |
---|---|---|
author | Rich Barlow <rich@bennellick.com> | Wed Mar 24 17:08:09 2021 +0000 |
committer | Anas Nashif <anas.nashif@intel.com> | Fri Mar 26 08:34:43 2021 -0400 |
tree | a63f18154019f2b3cf5fc8de40e60573ecbf2f0d | |
parent | d9f40d53a6cb66930fe254f7f1ae25a20a956eb9 [diff] |
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: #32996 Signed-off-by: Rich Barlow <rich@bennellick.com>