-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hwrng: timeriomem - added devicetree hooks
This patch allows timeriomem_rng to be used via devicetree. Signed-off-by: Alexander Clouter <alex@digriz.org.uk> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
- Loading branch information
Alexander Clouter
authored and
Herbert Xu
committed
Apr 25, 2013
1 parent
1907da7
commit b149a30
Showing
2 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
Documentation/devicetree/bindings/hwrng/timeriomem_rng.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
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 | ||
|
||
N.B. currently 'reg' must be four bytes wide and aligned | ||
|
||
Example: | ||
|
||
hwrng@44 { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
compatible = "timeriomem_rng"; | ||
reg = <0x44 0x04>; | ||
period = <1000000>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters