summaryrefslogtreecommitdiffstats
path: root/drivers/char/hw_random/ba431-rng.c
Commit message (Collapse)AuthorAgeFilesLines
* hwrng: ba431 - use devm_platform_ioremap_resource() to simplifyTian Tao2021-03-191-3/+1
| | | | | | | Use devm_platform_ioremap_resource() to simplify the code. Signed-off-by: Tian Tao <tiantao6@hisilicon.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
* hwrng: ba431 - Use device-managed registrationTian Tao2021-03-071-11/+1
| | | | | | | Use device-managed registration, so we can delete the ba431_trng_remove. Signed-off-by: Tian Tao <tiantao6@hisilicon.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
* hwrng: ba431 - Include kernel.hHerbert Xu2020-07-161-0/+1
| | | | | | | | | There are multiple things in this file that requires kernel.h but it's only included through other header files indirectly. This patch adds a direct inclusion as those indirect inclusions may go away at any point. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
* hwrng: ba431 - add support for BA431 hwrngOlivier Sobrie2020-06-181-0/+234
Silex insight BA431 is an IP designed to generate random numbers that can be integrated in various FPGA. This driver adds support for it through the hwrng interface. This driver is used in Silex Insight Viper OEM boards. Signed-off-by: Olivier Sobrie <olivier.sobrie@silexinsight.com> Signed-off-by: Waleed Ziad <waleed94ziad@gmail.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>