From 4fded8a25c09cda0e178e1f00b94a31dd7270e9d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 20 Jun 2013 19:58:45 -0600 Subject: [PATCH] More KL25Z SPI fixes --- arch/arm/src/kl/kl_spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */