Skip to content

Commit 673a2f3

Browse files
myguitarcujomalainey
authored andcommitted
drivers: spi: dw: fix dfs offset in HSSI controller
The DFS(Data Frame Size) is at CTRLR0[4:0] in HSSI controller. Signed-off-by: Younghyun Park <younghyunpark@google.com>
1 parent 8b03ca7 commit 673a2f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi_dw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ static int spi_dw_configure(const struct device *dev,
226226
}
227227

228228
/* Word size */
229-
if (info->max_xfer_size == 32) {
229+
if (!IS_ENABLED(CONFIG_SPI_DW_HSSI) && (info->max_xfer_size == 32)) {
230230
ctrlr0 |= DW_SPI_CTRLR0_DFS_32(SPI_WORD_SIZE_GET(config->operation));
231231
} else {
232232
ctrlr0 |= DW_SPI_CTRLR0_DFS_16(SPI_WORD_SIZE_GET(config->operation));

0 commit comments

Comments
 (0)