mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 05:41:55 +00:00
2a4bfd023f
The timeriomem_rng driver only accesses the first 4 bytes of the given memory area and currently, it also forces that memory resource to be exactly 4 bytes in size. This, however, is problematic when used with device-trees that are generated from things like FPGA toolchains, where the minimum size of an exposed memory block may be something like 4k. Hence, let's only check for what's needed for the driver to operate properly; namely that we have enough memory available to read the random data from. Signed-off-by: Daniel Mack <daniel@zonque.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
26 lines
771 B
Plaintext
26 lines
771 B
Plaintext
HWRNG support for the timeriomem_rng driver
|
|
|
|
Required properties:
|
|
- compatible : "timeriomem_rng"
|
|
- reg : base address to sample from
|
|
- period : wait time in microseconds to use between samples
|
|
|
|
Optional properties:
|
|
- quality : estimated number of bits of true entropy per 1024 bits read from the
|
|
rng. Defaults to zero which causes the kernel's default quality to
|
|
be used instead. Note that the default quality is usually zero
|
|
which disables using this rng to automatically fill the kernel's
|
|
entropy pool.
|
|
|
|
N.B. currently 'reg' must be at least four bytes wide and 32-bit aligned
|
|
|
|
Example:
|
|
|
|
hwrng@44 {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
compatible = "timeriomem_rng";
|
|
reg = <0x44 0x04>;
|
|
period = <1000000>;
|
|
};
|