diff --git a/boards/arm/frdm_k64f/pinmux.c b/boards/arm/frdm_k64f/pinmux.c index 18633d604cf..35f3c9e44cf 100644 --- a/boards/arm/frdm_k64f/pinmux.c +++ b/boards/arm/frdm_k64f/pinmux.c @@ -122,7 +122,7 @@ static int frdm_k64f_pinmux_init(struct device *dev) pinmux_pin_set(portb, 10, PORT_PCR_MUX(kPORT_PinDisabledOrAnalog)); #endif -#ifdef DT_NXP_KINETIS_FTM_PWM_3_BASE_ADDRESS +#ifdef CONFIG_PWM_3 pinmux_pin_set(portc, 8, PORT_PCR_MUX(kPORT_MuxAlt3)); pinmux_pin_set(portc, 9, PORT_PCR_MUX(kPORT_MuxAlt3)); #endif diff --git a/boards/arm/frdm_k82f/pinmux.c b/boards/arm/frdm_k82f/pinmux.c index d8e5939ac69..e99ca5255ae 100644 --- a/boards/arm/frdm_k82f/pinmux.c +++ b/boards/arm/frdm_k82f/pinmux.c @@ -33,7 +33,7 @@ static int frdm_k82f_pinmux_init(struct device *dev) device_get_binding(CONFIG_PINMUX_MCUX_PORTE_NAME); #endif -#ifdef DT_NXP_KINETIS_FTM_PWM_3_BASE_ADDRESS +#ifdef CONFIG_PWM_3 /* Red, green, blue LEDs as PWM channels */ pinmux_pin_set(portc, 8, PORT_PCR_MUX(kPORT_MuxAlt3)); pinmux_pin_set(portc, 9, PORT_PCR_MUX(kPORT_MuxAlt3)); diff --git a/boards/arm/hexiwear_k64/pinmux.c b/boards/arm/hexiwear_k64/pinmux.c index d9e2368e270..5aa29d17482 100644 --- a/boards/arm/hexiwear_k64/pinmux.c +++ b/boards/arm/hexiwear_k64/pinmux.c @@ -34,7 +34,7 @@ static int hexiwear_k64_pinmux_init(struct device *dev) device_get_binding(CONFIG_PINMUX_MCUX_PORTE_NAME); #endif -#ifdef DT_NXP_KINETIS_FTM_PWM_3_BASE_ADDRESS +#ifdef CONFIG_PWM_3 /* Red, green, blue LEDs as PWM channels */ pinmux_pin_set(portc, 8, PORT_PCR_MUX(kPORT_MuxAlt3)); pinmux_pin_set(portc, 9, PORT_PCR_MUX(kPORT_MuxAlt3)); diff --git a/boards/arm/twr_ke18f/pinmux.c b/boards/arm/twr_ke18f/pinmux.c index b30fe13a59e..e608cb620b3 100644 --- a/boards/arm/twr_ke18f/pinmux.c +++ b/boards/arm/twr_ke18f/pinmux.c @@ -34,31 +34,31 @@ static int twr_ke18f_pinmux_init(struct device *dev) device_get_binding(CONFIG_PINMUX_MCUX_PORTE_NAME); #endif -#ifdef DT_NXP_KINETIS_FTM_PWM_0_BASE_ADDRESS +#ifdef CONFIG_PWM_0 /* Tri-color LED as PWM */ pinmux_pin_set(portb, 5, PORT_PCR_MUX(kPORT_MuxAlt2)); pinmux_pin_set(portd, 15, PORT_PCR_MUX(kPORT_MuxAlt2)); pinmux_pin_set(portd, 16, PORT_PCR_MUX(kPORT_MuxAlt2)); -#else /* !DT_NXP_KINETIS_FTM_PWM_0_BASE_ADDRESS */ +#else /* !CONFIG_PWM_0 */ /* Tri-color LED as GPIO */ pinmux_pin_set(portb, 5, PORT_PCR_MUX(kPORT_MuxAsGpio)); pinmux_pin_set(portd, 15, PORT_PCR_MUX(kPORT_MuxAsGpio)); pinmux_pin_set(portd, 16, PORT_PCR_MUX(kPORT_MuxAsGpio)); -#endif /* !DT_NXP_KINETIS_FTM_PWM_0_BASE_ADDRESS */ +#endif /* !CONFIG_PWM_0 */ -#ifdef DT_NXP_KINETIS_FTM_PWM_3_BASE_ADDRESS +#ifdef CONFIG_PWM_3 /* User LEDs as PWM */ pinmux_pin_set(portc, 10, PORT_PCR_MUX(kPORT_MuxAlt2)); pinmux_pin_set(portc, 11, PORT_PCR_MUX(kPORT_MuxAlt2)); pinmux_pin_set(portc, 12, PORT_PCR_MUX(kPORT_MuxAlt2)); pinmux_pin_set(portc, 13, PORT_PCR_MUX(kPORT_MuxAlt2)); -#else /* !DT_NXP_KINETIS_FTM_PWM_3_BASE_ADDRESS */ +#else /* !CONFIG_PWM_3 */ /* User LEDs as GPIO */ pinmux_pin_set(portc, 10, PORT_PCR_MUX(kPORT_MuxAsGpio)); pinmux_pin_set(portc, 11, PORT_PCR_MUX(kPORT_MuxAsGpio)); pinmux_pin_set(portc, 12, PORT_PCR_MUX(kPORT_MuxAsGpio)); pinmux_pin_set(portc, 13, PORT_PCR_MUX(kPORT_MuxAsGpio)); -#endif /* !DT_NXP_KINETIS_FTM_PWM_3_BASE_ADDRESS */ +#endif /* !CONFIG_PWM_3 */ /* Buttons */ pinmux_pin_set(portd, 3, PORT_PCR_MUX(kPORT_MuxAsGpio));