drivers: entropy: Get device name from dts if supported

If we have DTS support for an entropy driver we should get the name
generated from DTS ('label' property on the entropy device node).

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2018-11-03 06:55:21 -05:00 committed by Maureen Helm
commit 6ce4a08c97
2 changed files with 10 additions and 0 deletions

View file

@ -25,10 +25,13 @@ config ENTROPY_HAS_DRIVER
This is an option to be enabled by individual entropy driver
to signal that there is a true entropy driver.
if !HAS_DTS_ENTROPY
config ENTROPY_NAME
string "Entropy Device Name"
default "ENTROPY_0"
help
Specify the device name to be used for the ENTROPY driver.
endif
endif

View file

@ -59,3 +59,10 @@ config HAS_DTS_ETHERNET
help
This option specifies that the target platform supports device tree
configuration for Ethernet.
config HAS_DTS_ENTROPY
bool
depends on HAS_DTS
help
This option specifies that the target platform supports device tree
configuration for entropy/random number.