mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-11 00:51:47 +00:00
hw_random: timeriomem_rng: Allow setting RNG quality from platform data
When a hw_random device's quality is non-zero, it will automatically be used to fill the kernel's entropy pool. Since timeriomem_rng is used by many different devices, the quality needs to be provided by platform data or device tree. Signed-off-by: Rick Altherr <raltherr@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
b14c534517
commit
284e76387c
2 changed files with 10 additions and 0 deletions
|
@ -13,4 +13,7 @@ struct timeriomem_rng_data {
|
|||
|
||||
/* measures in usecs */
|
||||
unsigned int period;
|
||||
|
||||
/* bits of entropy per 1024 bits read */
|
||||
unsigned int quality;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue