From 1a89ca1238f08610c0fca59ef70b43c8bbfe3c95 Mon Sep 17 00:00:00 2001 From: Maureen Helm Date: Thu, 21 May 2020 09:31:30 -0500 Subject: [PATCH] boards: arm: Conditionalize csi pinmuxes on nxp boards Conditionalizes csi pinmuxes on CONFIG_VIDEO for all nxp boards (kinetis, lpc, and imx families) to avoid possible conflicts between peripherals. Signed-off-by: Maureen Helm --- boards/arm/mimxrt1064_evk/pinmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/arm/mimxrt1064_evk/pinmux.c b/boards/arm/mimxrt1064_evk/pinmux.c index 88fc0975a736..829c7f12e809 100644 --- a/boards/arm/mimxrt1064_evk/pinmux.c +++ b/boards/arm/mimxrt1064_evk/pinmux.c @@ -251,7 +251,7 @@ static int mimxrt1064_evk_init(struct device *dev) IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_09_FLEXPWM2_PWMA03, 0); #endif -#if DT_NODE_HAS_STATUS(DT_NODELABEL(csi), okay) +#if DT_NODE_HAS_STATUS(DT_NODELABEL(csi), okay) && CONFIG_VIDEO IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_04_GPIO1_IO04, 0); IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_04_CSI_PIXCLK, 0); IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B1_05_CSI_MCLK, 0);