Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329757
b: refs/heads/master
c: a5bbf6f
h: refs/heads/master
i:
  329755: 390155f
v: v3
  • Loading branch information
Kim Phillips authored and Herbert Xu committed Sep 27, 2012
1 parent cf206c4 commit d232fa9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b6f3fefe1fa1e8ea8f6b654e7d552253373cd1c0
refs/heads/master: a5bbf6fa79abe0cb64aaebc3455f9ba779d6a36f
6 changes: 3 additions & 3 deletions trunk/drivers/crypto/caam/ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ static int instantiate_rng(struct device *jrdev)

/*
* By default, the TRNG runs for 200 clocks per sample;
* 800 clocks per sample generates better entropy.
* 1600 clocks per sample generates better entropy.
*/
static void kick_trng(struct platform_device *pdev)
{
Expand All @@ -144,9 +144,9 @@ static void kick_trng(struct platform_device *pdev)

/* put RNG4 into program mode */
setbits32(&r4tst->rtmctl, RTMCTL_PRGM);
/* 800 clocks per sample */
/* 1600 clocks per sample */
val = rd_reg32(&r4tst->rtsdctl);
val = (val & ~RTSDCTL_ENT_DLY_MASK) | (800 << RTSDCTL_ENT_DLY_SHIFT);
val = (val & ~RTSDCTL_ENT_DLY_MASK) | (1600 << RTSDCTL_ENT_DLY_SHIFT);
wr_reg32(&r4tst->rtsdctl, val);
/* min. freq. count */
wr_reg32(&r4tst->rtfrqmin, 400);
Expand Down

0 comments on commit d232fa9

Please sign in to comment.