boards: sam0: pinmux: Add Kconfig check for GMAC
To avoid pin conflicts add CONFIG_ETH_SAM_GMAC flag for each gmac pinmux config. Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
parent
eabae8b0f0
commit
854d3be4b2
|
@ -111,7 +111,7 @@ static int board_pinmux_init(struct device *dev)
|
|||
pinmux_pin_set(muxa, 24, PINMUX_FUNC_H);
|
||||
#endif
|
||||
|
||||
#if DT_NODE_HAS_STATUS(DT_NODELABEL(gmac), okay)
|
||||
#if (DT_NODE_HAS_STATUS(DT_NODELABEL(gmac), okay) && CONFIG_ETH_SAM_GMAC)
|
||||
pinmux_pin_set(muxa, 14, PINMUX_FUNC_L); /* PA14 = GTXCK */
|
||||
pinmux_pin_set(muxa, 17, PINMUX_FUNC_L); /* PA17 = GTXEN */
|
||||
pinmux_pin_set(muxa, 18, PINMUX_FUNC_L); /* PA18 = GTX0 */
|
||||
|
|
Loading…
Reference in New Issue