diff --git a/arch/arm/src/kl/kl_spi.c b/arch/arm/src/kl/kl_spi.c index b48fcc4789..11a75cb8e4 100755 --- a/arch/arm/src/kl/kl_spi.c +++ b/arch/arm/src/kl/kl_spi.c @@ -707,13 +707,13 @@ FAR struct spi_dev_s *up_spiinitialize(int port) /* Configure master mode, select mode 0, MSB first. Disable interrupts. */ - spi_putreg(priv, KL_SPI_C1_OFFSET, SPI_C1_SPIE | SPI_C1_MSTR); + spi_putreg(priv, KL_SPI_C1_OFFSET, SPI_C1_SPE | SPI_C1_MSTR); /* Disable interrupts, DMA, bidirectional mode, stop-in-wait mode, enable * master mode fault detection */ - spi_putreg(priv, KL_SPI_C1_OFFSET, 0); + spi_putreg(priv, KL_SPI_C2_OFFSET, 0); /* Set the initial SPI configuration */