"Das U-Boot" Source Tree

crypto: Remove <common.h> and add needed includes

Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>

Tom Rini dcd59134 910522fc

+10 -19
+3 -1
drivers/crypto/ace_sha.c
··· 3 3 * Advanced Crypto Engine - SHA Firmware 4 4 * Copyright (c) 2012 Samsung Electronics 5 5 */ 6 - #include <common.h> 6 + 7 + #include <config.h> 7 8 #include "ace_sha.h" 8 9 #include <log.h> 9 10 #include <rand.h> 11 + #include <linux/string.h> 10 12 11 13 #ifdef CONFIG_SHA_HW_ACCEL 12 14 #include <u-boot/sha256.h>
+2
drivers/crypto/ace_sha.h
··· 8 8 #ifndef __ACE_SHA_H 9 9 #define __ACE_SHA_H 10 10 11 + #include <linux/types.h> 12 + 11 13 struct exynos_ace_sfr { 12 14 unsigned int fc_intstat; /* base + 0 */ 13 15 unsigned int fc_intenset;
-1
drivers/crypto/aspeed/aspeed_acry.c
··· 3 3 * Copyright 2021 ASPEED Technology Inc. 4 4 */ 5 5 #include <config.h> 6 - #include <common.h> 7 6 #include <clk.h> 8 7 #include <dm.h> 9 8 #include <asm/types.h>
-1
drivers/crypto/aspeed/aspeed_hace.c
··· 3 3 * Copyright 2021 ASPEED Technology Inc. 4 4 */ 5 5 #include <config.h> 6 - #include <common.h> 7 6 #include <dm.h> 8 7 #include <clk.h> 9 8 #include <log.h>
-1
drivers/crypto/fsl/dcp_rng.c
··· 7 7 * Based on RNGC driver in drivers/char/hw_random/imx-rngc.c in Linux 8 8 */ 9 9 10 - #include <common.h> 11 10 #include <cpu_func.h> 12 11 #include <dm.h> 13 12 #include <rng.h>
+1 -1
drivers/crypto/fsl/error.c
··· 7 7 * Derived from error.c file in linux drivers/crypto/caam 8 8 */ 9 9 10 - #include <common.h> 11 10 #include <log.h> 12 11 #include <malloc.h> 12 + #include <vsprintf.h> 13 13 #include "desc.h" 14 14 #include "jr.h" 15 15
-1
drivers/crypto/fsl/fsl_blob.c
··· 4 4 * 5 5 */ 6 6 7 - #include <common.h> 8 7 #include <cpu_func.h> 9 8 #include <log.h> 10 9 #include <malloc.h>
-1
drivers/crypto/fsl/fsl_hash.c
··· 4 4 * Copyright 2021 NXP 5 5 */ 6 6 7 - #include <common.h> 8 7 #include <cpu_func.h> 9 8 #include <log.h> 10 9 #include <malloc.h>
-1
drivers/crypto/fsl/fsl_mfgprot.c
··· 4 4 * Copyright 2017 NXP 5 5 */ 6 6 7 - #include <common.h> 8 7 #include <errno.h> 9 8 #include <fsl_sec.h> 10 9 #include <memalign.h>
-1
drivers/crypto/fsl/fsl_rsa.c
··· 5 5 */ 6 6 7 7 #include <config.h> 8 - #include <common.h> 9 8 #include <cpu_func.h> 10 9 #include <dm.h> 11 10 #include <log.h>
+1 -1
drivers/crypto/fsl/jobdesc.c
··· 8 8 * 9 9 */ 10 10 11 - #include <common.h> 11 + #include <config.h> 12 12 #include <cpu_func.h> 13 13 #include <fsl_sec.h> 14 14 #include "desc_constr.h"
+1 -1
drivers/crypto/fsl/jr.c
··· 6 6 * Based on CAAM driver in drivers/crypto/caam in Linux 7 7 */ 8 8 9 - #include <common.h> 9 + #include <config.h> 10 10 #include <cpu_func.h> 11 11 #include <linux/kernel.h> 12 12 #include <log.h>
-1
drivers/crypto/fsl/rng.c
··· 7 7 */ 8 8 9 9 #include <asm/cache.h> 10 - #include <common.h> 11 10 #include <cpu_func.h> 12 11 #include <dm.h> 13 12 #include <rng.h>
+1 -1
drivers/crypto/fsl/sec.c
··· 3 3 * Copyright 2014 Freescale Semiconductor, Inc. 4 4 */ 5 5 6 - #include <common.h> 6 + #include <config.h> 7 7 #include <linux/libfdt.h> 8 8 #include <fdt_support.h> 9 9 #if CONFIG_SYS_FSL_SEC_COMPAT == 2 || CONFIG_SYS_FSL_SEC_COMPAT >= 4
-1
drivers/crypto/hash/hash-uclass.c
··· 6 6 7 7 #define LOG_CATEGORY UCLASS_HASH 8 8 9 - #include <common.h> 10 9 #include <dm.h> 11 10 #include <asm/global_data.h> 12 11 #include <u-boot/hash.h>
-1
drivers/crypto/hash/hash_sw.c
··· 4 4 * Author: ChiaWei Wang <chiawei_wang@aspeedtech.com> 5 5 */ 6 6 #include <config.h> 7 - #include <common.h> 8 7 #include <dm.h> 9 8 #include <log.h> 10 9 #include <malloc.h>
+1 -1
drivers/crypto/nuvoton/npcm_aes.c
··· 3 3 * Copyright (c) 2021 Nuvoton Technology Corp. 4 4 */ 5 5 6 - #include <common.h> 7 6 #include <dm.h> 8 7 #include <uboot_aes.h> 9 8 #include <asm/io.h> 10 9 #include <asm/arch/aes.h> 11 10 #include <asm/arch/otp.h> 12 11 #include <malloc.h> 12 + #include <time.h> 13 13 14 14 #define ONE_SECOND 0xC00000 15 15
-1
drivers/crypto/nuvoton/npcm_sha.c
··· 3 3 * Copyright (c) 2022 Nuvoton Technology Corp. 4 4 */ 5 5 6 - #include <common.h> 7 6 #include <dm.h> 8 7 #include <hash.h> 9 8 #include <malloc.h>
-1
drivers/crypto/rsa_mod_exp/mod_exp_sw.c
··· 5 5 */ 6 6 7 7 #include <config.h> 8 - #include <common.h> 9 8 #include <dm.h> 10 9 #include <log.h> 11 10 #include <u-boot/rsa-mod-exp.h>
-1
drivers/crypto/rsa_mod_exp/mod_exp_uclass.c
··· 6 6 7 7 #define LOG_CATEGORY UCLASS_MOD_EXP 8 8 9 - #include <common.h> 10 9 #include <dm.h> 11 10 #include <asm/global_data.h> 12 11 #include <u-boot/rsa-mod-exp.h>