summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/common/spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/mediatek/common/spi.c')
-rw-r--r--src/soc/mediatek/common/spi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/soc/mediatek/common/spi.c b/src/soc/mediatek/common/spi.c
index f465027ab9..8bcc56e0cb 100644
--- a/src/soc/mediatek/common/spi.c
+++ b/src/soc/mediatek/common/spi.c
@@ -43,8 +43,9 @@ void mtk_spi_set_timing(struct mtk_spi_regs *regs, u32 sck_ticks,
SET32_BITFIELDS(&GET_SCK_REG(regs), SPI_CFG_SCK_LOW, sck_ticks - 1,
SPI_CFG_SCK_HIGH, sck_ticks - 1);
- SET32_BITFIELDS(&regs->spi_cfg1_reg, SPI_CFG1_TICK_DLY, tick_dly,
- SPI_CFG1_CS_IDLE, cs_ticks - 1);
+ SET32_BITFIELDS(&regs->spi_cfg1_reg, SPI_CFG1_CS_IDLE, cs_ticks - 1);
+
+ SET32_BITFIELDS(&GET_TICK_DLY_REG(regs), SPI_TICK_DLY, tick_dly);
}
static void spi_sw_reset(struct mtk_spi_regs *regs)