mcux: nxp_kinetis: Move HAS_TRNG config to ext

SoCs outside the Kinetis family can have the TRNG module, so move the
HAS_TRNG config from arch/arm/soc/nxp_kinetis to ext/hal/nxp/mcux

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
Maureen Helm 2017-08-25 12:27:25 -05:00 committed by Kumar Gala
commit f0d50979e8
4 changed files with 10 additions and 9 deletions

View file

@ -40,12 +40,6 @@ config HAS_MCG
help
Set if the multipurpose clock generator (MCG) module is present in the SoC.
config HAS_TRNG
bool
default n
help
Set if the true random number generator (TRNG) module is present in the SoC.
config HAS_SYSMPU
bool "Enable MPU"
depends on CPU_HAS_MPU

View file

@ -15,9 +15,9 @@ config SOC_MKW40Z4
select HAS_MCUX
select HAS_MCUX_ADC16
select HAS_MCUX_LPUART
select HAS_MCUX_TRNG
select HAS_OSC
select HAS_MCG
select HAS_TRNG
select HAS_SEGGER_RTT
config SOC_MKW41Z4
@ -26,9 +26,9 @@ config SOC_MKW41Z4
select HAS_MCUX
select HAS_MCUX_ADC16
select HAS_MCUX_LPUART
select HAS_MCUX_TRNG
select HAS_OSC
select HAS_MCG
select HAS_TRNG
endchoice

View file

@ -15,7 +15,7 @@ menuconfig RANDOM_MCUX_RNGA
menuconfig RANDOM_MCUX_TRNG
bool "MCUX TRNG driver"
depends on RANDOM_GENERATOR && HAS_TRNG
depends on RANDOM_GENERATOR && HAS_MCUX_TRNG
default n
select RANDOM_HAS_DRIVER
help

View file

@ -43,4 +43,11 @@ config HAS_MCUX_RNGA
Set if the random number generator accelerator (RNGA) module is
present in the SoC.
config HAS_MCUX_TRNG
bool
default n
help
Set if the true random number generator (TRNG) module is present in
the SoC.
endif # HAS_MCUX