soc: nxp_imx: Add PWM config

Enable MCUX PWM driver if PWM config is selected and hardware
support it.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
This commit is contained in:
Loic Poulain 2019-03-06 11:41:07 +01:00 committed by Maureen Helm
commit df583f27a9
2 changed files with 9 additions and 0 deletions

View file

@ -50,6 +50,13 @@ config I2C_MCUX_LPI2C
endif # I2C
if PWM
config PWM_MCUX
default y if HAS_MCUX_PWM
endif # PWM
if NET_L2_ETHERNET
config ETH_MCUX

View file

@ -121,6 +121,7 @@ config SOC_MIMXRT1062
select HAS_MCUX_CCM
select HAS_MCUX_ELCDIF
select HAS_MCUX_ENET
select HAS_MCUX_PWM
select HAS_MCUX_IGPIO
select HAS_MCUX_LPI2C
select HAS_MCUX_LPUART
@ -143,6 +144,7 @@ config SOC_MIMXRT1064
select HAS_MCUX_CCM
select HAS_MCUX_ELCDIF
select HAS_MCUX_ENET
select HAS_MCUX_PWM
select HAS_MCUX_IGPIO
select HAS_MCUX_LPI2C
select HAS_MCUX_LPUART