diff options
Diffstat (limited to 'nuttx/arch/arm/src/sam3u')
-rw-r--r-- | nuttx/arch/arm/src/sam3u/sam3u_spi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/sam3u/sam3u_spi.c b/nuttx/arch/arm/src/sam3u/sam3u_spi.c index d16598c71..4c3462eef 100644 --- a/nuttx/arch/arm/src/sam3u/sam3u_spi.c +++ b/nuttx/arch/arm/src/sam3u/sam3u_spi.c @@ -816,6 +816,10 @@ FAR struct spi_dev_s *up_spiinitialize(int port) sam3u_configgpio(GPIO_SPI0_MOSI); sam3u_configgpio(GPIO_SPI0_SPCK); + /* Disable SPI clocking */ + + putreg32(SPI_CR_SPIDIS, SAM3U_SPI_CR); + /* Execute a software reset of the SPI (twice) */ putreg32(SPI_CR_SWRST, SAM3U_SPI_CR); |