Skip to content

Commit 92c1897

Browse files
committed
[nrf fromtree] drivers: mspi_dw: Add support for DQS line
Add possibility of using data strobe signal (DQS) called RXDS in the SSI documentation. This signal may be necessary to make use of DDR modes. Remove also a TODO comment that should have been removed when support for DDR was added in fc64fec. Signed-off-by: Andrzej Głąbek <[email protected]> (cherry picked from commit 0e1dfd9)
1 parent a622cf1 commit 92c1897

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

drivers/mspi/mspi_dw.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,6 @@ static int _api_dev_config(const struct device *dev,
691691
}
692692

693693
if (param_mask & MSPI_DEVICE_CONFIG_DATA_RATE) {
694-
/* TODO: add support for DDR */
695694
dev_data->spi_ctrlr0 &= ~(SPI_CTRLR0_SPI_DDR_EN_BIT |
696695
SPI_CTRLR0_INST_DDR_EN_BIT);
697696
switch (cfg->data_rate) {
@@ -712,10 +711,10 @@ static int _api_dev_config(const struct device *dev,
712711
}
713712

714713
if (param_mask & MSPI_DEVICE_CONFIG_DQS) {
715-
/* TODO: add support for DQS */
714+
dev_data->spi_ctrlr0 &= ~SPI_CTRLR0_SPI_RXDS_EN_BIT;
715+
716716
if (cfg->dqs_enable) {
717-
LOG_ERR("DQS line is not supported.");
718-
return -ENOTSUP;
717+
dev_data->spi_ctrlr0 |= SPI_CTRLR0_SPI_RXDS_EN_BIT;
719718
}
720719
}
721720

0 commit comments

Comments
 (0)