soc: nxp_imx: Promote driver defaults to soc series level

Streamlines repetitious code enabling default drivers by promoting it to
the soc series level.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
Maureen Helm 2019-01-28 14:32:15 -06:00 committed by Anas Nashif
parent 605e599b1a
commit 501db1e0b9
5 changed files with 49 additions and 150 deletions

View file

@ -11,13 +11,6 @@ config SOC
string
default "mimxrt1021"
if CLOCK_CONTROL
config CLOCK_CONTROL_MCUX_CCM
default y
endif # CLOCK_CONTROL
config ARM_DIV
default 0
@ -30,39 +23,4 @@ config IPG_DIV
config GPIO
default y
if GPIO
config GPIO_MCUX_IGPIO
default y
endif # GPIO
if I2C
config I2C_MCUX_LPI2C
default y
endif # I2C
if SERIAL
config UART_MCUX_LPUART
default y
endif # SERIAL
if ENTROPY_GENERATOR
config ENTROPY_MCUX_TRNG
default y
endif # ENTROPY_GENERATOR
if NET_L2_ETHERNET
config ETH_MCUX
def_bool y
endif # NET_L2_ETHERNET
endif # SOC_MIMXRT1021

View file

@ -11,13 +11,6 @@ config SOC
string
default "mimxrt1052"
if CLOCK_CONTROL
config CLOCK_CONTROL_MCUX_CCM
default y
endif # CLOCK_CONTROL
config ARM_DIV
default 1
@ -30,49 +23,11 @@ config IPG_DIV
config GPIO
default y
if GPIO
config GPIO_MCUX_IGPIO
default y
endif # GPIO
if I2C
config I2C_MCUX_LPI2C
default y
endif # I2C
if SERIAL
config UART_MCUX_LPUART
default y
endif # SERIAL
if SPI
config SPI_MCUX_LPSPI
default y
endif # SPI
if NET_L2_ETHERNET
config ETH_MCUX
def_bool y
config INIT_ENET_PLL
def_bool y
endif # NET_L2_ETHERNET
if ENTROPY_GENERATOR
config ENTROPY_MCUX_TRNG
default y
endif # ENTROPY_GENERATOR
endif # SOC_MIMXRT1052

View file

@ -11,13 +11,6 @@ config SOC
string
default "mimxrt1062"
if CLOCK_CONTROL
config CLOCK_CONTROL_MCUX_CCM
default y
endif # CLOCK_CONTROL
config ARM_DIV
default 1
@ -30,32 +23,4 @@ config IPG_DIV
config GPIO
default y
if GPIO
config GPIO_MCUX_IGPIO
default y
endif # GPIO
if I2C
config I2C_MCUX_LPI2C
default y
endif # I2C
if SERIAL
config UART_MCUX_LPUART
default y
endif # SERIAL
if ENTROPY_GENERATOR
config ENTROPY_MCUX_TRNG
default y
endif # ENTROPY_GENERATOR
endif # SOC_MIMXRT1062

View file

@ -11,13 +11,6 @@ config SOC
string
default "mimxrt1064"
if CLOCK_CONTROL
config CLOCK_CONTROL_MCUX_CCM
def_bool y
endif # CLOCK_CONTROL
config ARM_DIV
default 1
@ -30,25 +23,4 @@ config IPG_DIV
config GPIO
def_bool y
if GPIO
config GPIO_MCUX_IGPIO
def_bool y
endif # GPIO
if SERIAL
config UART_MCUX_LPUART
def_bool y
endif # SERIAL
if ENTROPY_GENERATOR
config ENTROPY_MCUX_TRNG
default y
endif #ENTROPY_MCUX_TRNG
endif # SOC_MIMXRT1064

View file

@ -20,6 +20,55 @@ config TEXT_SECTION_OFFSET
config INIT_ENET_PLL
if CLOCK_CONTROL
config CLOCK_CONTROL_MCUX_CCM
default y if HAS_MCUX_CCM
endif # CLOCK_CONTROL
if GPIO
config GPIO_MCUX_IGPIO
default y if HAS_MCUX_IGPIO
endif # GPIO
if ENTROPY_GENERATOR
config ENTROPY_MCUX_TRNG
default y if HAS_MCUX_TRNG
endif # ENTROPY_GENERATOR
if I2C
config I2C_MCUX_LPI2C
default y if HAS_MCUX_LPI2C
endif # I2C
if NET_L2_ETHERNET
config ETH_MCUX
def_bool y if HAS_MCUX_ENET
endif # NET_L2_ETHERNET
if SERIAL
config UART_MCUX_LPUART
default y if HAS_MCUX_LPUART
endif # SERIAL
if SPI
config SPI_MCUX_LPSPI
default y if HAS_MCUX_LPSPI
endif # SPI
source "soc/arm/nxp_imx/rt/Kconfig.defconfig.mimxrt*"
endif # SOC_SERIES_IMX_RT