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:
parent
7c2a8a4678
commit
6ce4a08c97
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue