Skip to content

Commit

Permalink
mcux: nxp_kinetis: Move HAS_RNGA config to ext
Browse files Browse the repository at this point in the history
SoCs outside the Kinetis family can have the RNGA module, so move the
HAS_RNGA 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 b5821f0 commit 394a30b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 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_RNGA
bool
default n
help
Set if the random number generator accelerator (RNGA) module is present in the SoC.

config HAS_TRNG
bool
default n
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/soc/nxp_kinetis/k6x/Kconfig.soc
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ config SOC_MK64F12
select HAS_MCUX
select HAS_MCUX_ADC16
select HAS_MCUX_FTM
select HAS_MCUX_RNGA
select HAS_OSC
select HAS_MCG
select HAS_RNGA
select CPU_HAS_FPU

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 @@ -6,7 +6,7 @@

menuconfig RANDOM_MCUX_RNGA
bool "MCUX RNGA driver"
depends on RANDOM_GENERATOR && HAS_RNGA
depends on RANDOM_GENERATOR && HAS_MCUX_RNGA
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 @@ -36,4 +36,11 @@ config HAS_MCUX_LPUART
help
Set if the low power uart (LPUART) module is present in the SoC.

config HAS_MCUX_RNGA
bool
default n
help
Set if the random number generator accelerator (RNGA) module is
present in the SoC.

endif # HAS_MCUX

0 comments on commit 394a30b

Please sign in to comment.