Skip to content

Commit ffbeaee

Browse files
committed
boards: arm: frdm_k64f: add pinmux for SARA-R4 modem
Setup the SARA-R4 POWER and RESET pins as gpios. Signed-off-by: Michael Scott <[email protected]>
1 parent 1f199b3 commit ffbeaee

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

boards/arm/frdm_k64f/pinmux.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ static int frdm_k64f_pinmux_init(struct device *dev)
8787
pinmux_pin_set(portc, 17, PORT_PCR_MUX(kPORT_MuxAsGpio));
8888
#endif
8989

90+
#ifdef CONFIG_MODEM_UBLOX_SARA_R4
91+
/* Modem RESET */
92+
pinmux_pin_set(portc, 2, PORT_PCR_MUX(kPORT_MuxAsGpio));
93+
/* Modem POWER_ON */
94+
pinmux_pin_set(porta, 2, PORT_PCR_MUX(kPORT_MuxAsGpio));
95+
#endif
96+
9097
#ifdef CONFIG_IEEE802154_MCR20A
9198
/* FRDM-MCR20A Reset (D5) */
9299
pinmux_pin_set(porta, 2, PORT_PCR_MUX(kPORT_MuxAsGpio));

0 commit comments

Comments
 (0)