drivers/entropy: stm32: Enable driver based on compatible

To ease driver configuration, enable ENTROPY_STM32_RNG
only if device node  matching driver compatible is enabled.
No more need to enable config symbol under soc/


Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2020-04-03 16:18:59 +02:00 committed by Kumar Gala
commit 7e1b1213d7
13 changed files with 3 additions and 52 deletions

View file

@ -3,12 +3,15 @@
# Copyright (c) 2017 Erwin Rol <erwin@erwinrol.com>
# SPDX-License-Identifier: Apache-2.0
DT_COMPAT_ST_STM32_RNG := st,stm32-rng
config ENTROPY_STM32_RNG
bool "STM32 RNG driver"
depends on SOC_FAMILY_STM32
select ENTROPY_HAS_DRIVER
select USE_STM32_LL_RNG
select HAS_DTS_ENTROPY
default $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_RNG))
help
This option enables the RNG processor, which is a entropy number
generator, based on a continuous analog noise, that provides

View file

@ -11,8 +11,4 @@ config SOC
config NUM_IRQS
default 82
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR
endif # SOC_STM32F405XG

View file

@ -11,10 +11,6 @@ config SOC
config NUM_IRQS
default 82
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR
endif # SOC_STM32F407XE
if SOC_STM32F407XG
@ -25,8 +21,4 @@ config SOC
config NUM_IRQS
default 82
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR
endif # SOC_STM32F407XG

View file

@ -11,8 +11,4 @@ config SOC
config NUM_IRQS
default 97
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR
endif # SOC_STM32F412CG

View file

@ -11,8 +11,4 @@ config SOC
config NUM_IRQS
default 97
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR
endif # SOC_STM32F412ZG

View file

@ -11,8 +11,4 @@ config SOC
config NUM_IRQS
default 102
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR
endif # SOC_STM32F413XX

View file

@ -11,10 +11,6 @@ config SOC
config NUM_IRQS
default 82
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR
config CRYPTO_STM32
default y
depends on CRYPTO

View file

@ -11,8 +11,4 @@ config SOC
config NUM_IRQS
default 91
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR
endif # SOC_STM32F429XX

View file

@ -11,10 +11,6 @@ config SOC
config NUM_IRQS
default 91
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR
config CRYPTO_STM32
default y
depends on CRYPTO

View file

@ -11,8 +11,4 @@ config SOC
config NUM_IRQS
default 93
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR
endif # SOC_STM32F469XX

View file

@ -16,10 +16,6 @@ config I2C_STM32_V2
default y
depends on I2C_STM32
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR
config DMA_STM32_V1
default y
depends on DMA_STM32

View file

@ -14,8 +14,4 @@ config I2C_STM32_V2
default y
depends on I2C_STM32
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR
endif # SOC_SERIES_STM32G4X

View file

@ -17,10 +17,6 @@ config I2C_STM32_V2
default y
depends on I2C_STM32
config ENTROPY_STM32_RNG
default y
depends on ENTROPY_GENERATOR
config DMA_STM32_V2
default y
depends on DMA_STM32