Skip to content

Commit b3603a3

Browse files
VitekSTnashif
authored andcommitted
boards: mimxrt685_evk/cm33: Update I2S sharing
Add SCK and WS signals to a shared signal set between Flexcomm #1 and Flexcomm #3 for the mimxrt685_evk/mimxrt685s/cm33. This enables the board to both transmit and receive audio, as the BCK and WS signals produced by the WM8904 codec are only connected to the Flexcomm #1 peripheral. Signed-off-by: Vit Stanicek <vit.stanicek@nxp.com>
1 parent f5cdf81 commit b3603a3

File tree

1 file changed

+4
-0
lines changed
  • boards/nxp/mimxrt685_evk/cm33

1 file changed

+4
-0
lines changed

boards/nxp/mimxrt685_evk/cm33/init.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ void board_early_init_hook(void)
2424
SYSCTL1->SHAREDCTRLSET[0] |= SYSCTL1_SHAREDCTRLSET_SHAREDDATASEL(3);
2525
/* Enable Transmit I2S - Flexcomm 3 for Shared Data Out */
2626
SYSCTL1->SHAREDCTRLSET[0] |= SYSCTL1_SHAREDCTRLSET_FC3DATAOUTEN(1);
27+
#else
28+
/* Set shared signal set 0: SCK, WS from Flexcomm1 */
29+
SYSCTL1->SHAREDCTRLSET[0] = SYSCTL1_SHAREDCTRLSET_SHAREDSCKSEL(1) |
30+
SYSCTL1_SHAREDCTRLSET_SHAREDWSSEL(1);
2731
#endif
2832

2933
/* Set Receive I2S - Flexcomm 1 SCK, WS from shared signal set 0 */

0 commit comments

Comments
 (0)