All of lore.kernel.org
 help / color / mirror / Atom feed
* enable dual rng on VIA C7
@ 2007-11-11 18:49 Udo van den Heuvel
  2007-11-26  7:39 ` Andrew Morton
  0 siblings, 1 reply; 10+ messages in thread
From: Udo van den Heuvel @ 2007-11-11 18:49 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 91 bytes --]

Hello,

Any reason why the second rng on the VIA C7 CPU is not enabled?

Kind regards,
Udo

[-- Attachment #2: via-rng.patch --]
[-- Type: text/plain, Size: 633 bytes --]

--- old/drivers/char/hw_random/via-rng.c	2007-11-11 19:39:49.000000000 +0100
+++ new/drivers/char/hw_random/via-rng.c	2007-11-11 19:40:41.000000000 +0100
@@ -41,6 +41,7 @@
 	VIA_STRFILT_ENABLE	= (1 << 14),
 	VIA_RAWBITS_ENABLE	= (1 << 13),
 	VIA_RNG_ENABLE		= (1 << 6),
+	VIA_RNG_DUAL            = (1 << 9),
 	VIA_XSTORE_CNT_MASK	= 0x0F,
 
 	VIA_RNG_CHUNK_8		= 0x00,	/* 64 rand bits, 64 stored bits */
@@ -128,6 +129,7 @@
 	lo &= ~(0x7f << VIA_STRFILT_CNT_SHIFT);
 	lo &= ~VIA_XSTORE_CNT_MASK;
 	lo &= ~(VIA_STRFILT_ENABLE | VIA_STRFILT_FAIL | VIA_RAWBITS_ENABLE);
+	lo |= VIA_RNG_DUAL;
 	lo |= VIA_RNG_ENABLE;
 
 	if (lo != old_lo)

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-01-25 19:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-11 18:49 enable dual rng on VIA C7 Udo van den Heuvel
2007-11-26  7:39 ` Andrew Morton
2007-11-26 17:02   ` Udo van den Heuvel
2007-11-26 18:58     ` Dave Jones
2007-11-27 16:08       ` Udo van den Heuvel
2007-11-27 18:50         ` Dave Jones
2007-11-27 19:01           ` Udo van den Heuvel
2007-11-27 20:51           ` Andrew Morton
2007-12-01 16:51             ` Udo van den Heuvel
2008-01-25 19:03             ` Udo van den Heuvel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.