summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorRick Altherr <raltherr@google.com>2017-05-22 14:12:24 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2017-06-01 12:55:58 +0800
commit284e76387c38260e834c99b010a68d75fc46b394 (patch)
treed2558a6b59909e0ee71a276d09101a33cb124e9f /include/linux
parentb14c53451719dc6ec8e6387e5be3be23294a6f1d (diff)
downloadblackbird-op-linux-284e76387c38260e834c99b010a68d75fc46b394.tar.gz
blackbird-op-linux-284e76387c38260e834c99b010a68d75fc46b394.zip
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>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/timeriomem-rng.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/timeriomem-rng.h b/include/linux/timeriomem-rng.h
index 46eb27ddbfab..3e00122bcf88 100644
--- a/include/linux/timeriomem-rng.h
+++ b/include/linux/timeriomem-rng.h
@@ -13,4 +13,7 @@ struct timeriomem_rng_data {
/* measures in usecs */
unsigned int period;
+
+ /* bits of entropy per 1024 bits read */
+ unsigned int quality;
};
OpenPOWER on IntegriCloud