mbox series

[v2,0/2] Add Zhaoxin HW RNG support

Message ID 20230731084515.2057375-1-LeoLiu-oc@zhaoxin.com
Headers show
Series Add Zhaoxin HW RNG support | expand

Message

LeoLiu-oc July 31, 2023, 8:45 a.m. UTC
From: leoliu-oc <leoliu-oc@zhaoxin.com>

Implemented Zhaoxin rng driver to add support for Zhaoxin HW RNG.
Both Zhaoxin-rng and via-rng rely on the XSTORE feature,
but the actual implementation is different. So add Vendor ID/Family
restrictions in via-rng module.

v1->v2:
    * Modify via-rng in a separate patch.
    * Fix some formatting issues.

leoliu-oc (2):
  hwrng: via-rng: convert to x86_cpu_id probing
  hwrng: add Zhaoxin HW RNG driver

 drivers/char/hw_random/Kconfig       | 13 +++++
 drivers/char/hw_random/Makefile      |  1 +
 drivers/char/hw_random/via-rng.c     | 15 +++--
 drivers/char/hw_random/zhaoxin-rng.c | 87 ++++++++++++++++++++++++++++
 4 files changed, 108 insertions(+), 8 deletions(-)
 create mode 100644 drivers/char/hw_random/zhaoxin-rng.c