File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -575,6 +575,12 @@ int spi_dw_init(const struct device *dev)
575575 write_imr (dev , DW_SPI_IMR_MASK );
576576 clear_bit_ssienr (dev );
577577
578+ /* SSI component version */
579+ spi -> version = read_ssi_comp_version (dev );
580+ LOG_DBG ("Version: %c.%c%c%c" , (spi -> version >> 24 ) & 0xff ,
581+ (spi -> version >> 16 ) & 0xff , (spi -> version >> 8 ) & 0xff ,
582+ spi -> version & 0xff );
583+
578584 LOG_DBG ("Designware SPI driver initialized on device: %p" , dev );
579585
580586 err = spi_context_cs_configure_all (& spi -> ctx );
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ struct spi_dw_config {
4949struct spi_dw_data {
5050 DEVICE_MMIO_RAM ;
5151 struct spi_context ctx ;
52+ uint32_t version ; /* ssi comp version */
5253 uint8_t dfs ; /* dfs in bytes: 1,2 or 4 */
5354 uint8_t fifo_diff ; /* cannot be bigger than FIFO depth */
5455};
You can’t perform that action at this time.
0 commit comments