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:
Gerson Fernando Budke 2020-05-13 23:42:00 -03:00 committed by Carles Cufí
parent eabae8b0f0
commit 854d3be4b2
1 changed files with 1 additions and 1 deletions

View File

@ -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 */