mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-11 07:24:46 +00:00
rng: eliminate common.h include from RNG drivers
Usage of common.h is deprecated. * Remove common.h from RNG drivers. * Sort includes. * Add time.h to sandbox driver. * Add linux/types.h to rng.h to provide size_t. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
9a49f393e4
commit
657bd30c6b
12 changed files with 11 additions and 21 deletions
|
@ -9,11 +9,10 @@
|
|||
|
||||
#define LOG_CATEGORY UCLASS_RNG
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <rng.h>
|
||||
#include <asm/system.h>
|
||||
#include <linux/kernel.h>
|
||||
|
||||
#define DRIVER_NAME "arm-rndr"
|
||||
|
||||
|
|
|
@ -5,11 +5,10 @@
|
|||
* Driver for Raspberry Pi hardware random number generator
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <linux/delay.h>
|
||||
#include <rng.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/delay.h>
|
||||
|
||||
#define usleep_range(a, b) udelay((b))
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
* Driver for Amlogic hardware random number generator
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <clk.h>
|
||||
#include <dm.h>
|
||||
#include <rng.h>
|
||||
|
|
|
@ -9,12 +9,11 @@
|
|||
* Based on Linux driver
|
||||
*/
|
||||
|
||||
#include <asm/io.h>
|
||||
#include <clk.h>
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <linux/bitops.h>
|
||||
#include <rng.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/bitops.h>
|
||||
|
||||
/* Device specific register offsets */
|
||||
#define PRNG_DATA_OUT 0x0000
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
* Copyright (c) 2022 Nuvoton Technology Corp.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <malloc.h>
|
||||
#include <rng.h>
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
*/
|
||||
#define LOG_CATEGORY UCLASS_RNG
|
||||
|
||||
#include <common.h>
|
||||
|
||||
#include <rng.h>
|
||||
#include <tee.h>
|
||||
#include <dm/device.h>
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
|
||||
#define LOG_CATEGORY UCLASS_RNG
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <rng.h>
|
||||
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
/*
|
||||
* Copyright (c) 2020 Fuzhou Rockchip Electronics Co., Ltd
|
||||
*/
|
||||
|
||||
#include <dm.h>
|
||||
#include <rng.h>
|
||||
#include <asm/arch-rockchip/hardware.h>
|
||||
#include <asm/io.h>
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/iopoll.h>
|
||||
#include <linux/string.h>
|
||||
#include <rng.h>
|
||||
|
||||
#define RK_HW_RNG_MAX 32
|
||||
|
||||
|
|
|
@ -3,11 +3,10 @@
|
|||
* Copyright (c) 2019, Linaro Limited
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <rand.h>
|
||||
#include <rng.h>
|
||||
|
||||
#include <time.h>
|
||||
#include <linux/string.h>
|
||||
|
||||
static int sandbox_rng_read(struct udevice *dev, void *data, size_t len)
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
|
||||
#define LOG_CATEGORY UCLASS_RNG
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <linker_lists.h>
|
||||
#include <log.h>
|
||||
|
|
|
@ -5,16 +5,14 @@
|
|||
|
||||
#define LOG_CATEGORY UCLASS_RNG
|
||||
|
||||
#include <common.h>
|
||||
#include <clk.h>
|
||||
#include <dm.h>
|
||||
#include <log.h>
|
||||
#include <reset.h>
|
||||
#include <rng.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/delay.h>
|
||||
|
||||
#include <asm/io.h>
|
||||
#include <linux/iopoll.h>
|
||||
#include <linux/kernel.h>
|
||||
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
#if !defined _RNG_H_
|
||||
#define _RNG_H_
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
struct udevice;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue