soc: arm: Enable the lpspi driver and clock for the imxrt soc

Enables the mcux lpspi shim driver and subsystem clock for the imxrt
soc.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
Maureen Helm 2018-09-14 16:18:41 -05:00 committed by Anas Nashif
commit ae8d4edede
3 changed files with 14 additions and 0 deletions

View file

@ -90,6 +90,11 @@ static ALWAYS_INLINE void clkInit(void)
CLOCK_SetDiv(kCLOCK_UartDiv, 0); /* Set UART divider to 1 */
#endif
#ifdef CONFIG_SPI_MCUX_LPSPI
CLOCK_SetMux(kCLOCK_LpspiMux, 1); /* Set SPI source to USB1 PFD0 720M */
CLOCK_SetDiv(kCLOCK_LpspiDiv, 7); /* Set SPI divider to 8 */
#endif
/* Keep the system clock running so SYSTICK can wake up the system from
* wfi.
*/