Skip to content

Commit

Permalink
mcux: nxp_kinetis: Move HAS_TRNG config to ext
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
MaureenHelm authored and galak committed Sep 20, 2017
1 parent 394a30b commit 24b32b3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
6 changes: 0 additions & 6 deletions arch/arm/soc/nxp_kinetis/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/soc/nxp_kinetis/kwx/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion drivers/random/Kconfig.mcux
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions ext/hal/nxp/mcux/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 24b32b3

Please sign in to comment.