Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bsp_sedi/drivers/spi/sedi_spi_dw_apb.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ static inline void lld_spi_config_cpol_cpha(sedi_spi_regs_t *spi, int cpol, int
cpha = cpha ? SEDI_RBFV(SPI, CTRLR0, SCPH, SCPH_START) :
SEDI_RBFV(SPI, CTRLR0, SCPH, SCPH_MIDDLE);

SEDI_PREG_RBF_SET(SPI, CTRLR0, SCPH, cpol, &spi->ctrlr0);
SEDI_PREG_RBF_SET(SPI, CTRLR0, SCPOL, cpha, &spi->ctrlr0);
SEDI_PREG_RBF_SET(SPI, CTRLR0, SCPH, cpha, &spi->ctrlr0);
SEDI_PREG_RBF_SET(SPI, CTRLR0, SCPOL, cpol, &spi->ctrlr0);
}

static inline void lld_spi_config_loopback(sedi_spi_regs_t *spi, int loopback)
Expand Down
Loading