drivers: spi_dw: Get clock frequency from DTS
The spi_dw driver used system clock frequency as a base for SPI bus frequency calculation. This commit corrects that by obtaining the needed value from DTS. Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>
This commit is contained in:
parent
09b64467a9
commit
4a543e138d
7 changed files with 19 additions and 16 deletions
|
@ -42,6 +42,7 @@
|
|||
#define DT_DW_ICTL_IRQ_FLAGS DT_SNPS_DESIGNWARE_INTC_81800_IRQ_0_SENSE
|
||||
|
||||
#define DT_SPI_0_BASE_ADDRESS DT_SNPS_DESIGNWARE_SPI_E000_BASE_ADDRESS
|
||||
#define DT_SPI_0_CLOCK_FREQUENCY DT_SNPS_DESIGNWARE_SPI_E000_CLOCKS_CLOCK_FREQUENCY
|
||||
#define DT_SPI_0_NAME DT_SNPS_DESIGNWARE_SPI_E000_LABEL
|
||||
#define DT_SPI_0_IRQ DT_SNPS_DESIGNWARE_SPI_E000_IRQ_0
|
||||
#define DT_SPI_DW_IRQ_FLAGS DT_SNPS_DESIGNWARE_SPI_E000_IRQ_0_SENSE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue