# SPDX-License-Identifier: GPL-2.0-only
config HW_RANDOM_RNG90
	tristate "Microchip RNG90 I2C random number generator"
	depends on I2C
	select CRC16
	select BITREVERSE
	help
	  Support the Microchip RNG90 random number generator on I2C at 0x40.
	  Command responses are checked for framing, device errors and CRC.
	  The driver uses the minimum nonzero hwrng entropy estimate because
	  the device's security strength does not quantify entropy per output
	  bit. Administrators can raise the estimate after qualification.

	  To compile this driver as a module, choose M here: the module
	  will be called rng90.

config HW_RANDOM_RNG90_KUNIT_TEST
	bool "KUnit tests for the RNG90 driver" if !KUNIT_ALL_TESTS
	depends on KUNIT=y && HW_RANDOM_RNG90=y
	default KUNIT_ALL_TESTS
	help
	  Exercise the real driver against a scripted I2C adapter, without
	  RNG90 hardware.
	  Tests cover command framing, CRC validation and polling behavior.
	  They also cover recovery, health failures, and suspend and resume.
	  No predictable test data is registered with the hwrng core.
