From 01b2a7fc3256dcec74e2f147ed28a37ad4df05fe Mon Sep 17 00:00:00 2001 From: Carlo Caione Date: Sat, 24 Aug 2019 17:17:30 +0100 Subject: [PATCH] amlogic: Move the SHA256 DMA driver to common directory The SHA256 DMA driver can be used by multiple SoCs. Move it to the common directory. Signed-off-by: Carlo Caione Change-Id: I96319eeeeeebd503ef0dcb07c0e4ff6a67afeaa5 --- drivers/amlogic/{gxl => }/crypto/sha_dma.c | 4 ++-- include/drivers/amlogic/{gxl => }/crypto/sha_dma.h | 0 plat/amlogic/gxl/platform.mk | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) rename drivers/amlogic/{gxl => }/crypto/sha_dma.c (100%) rename include/drivers/amlogic/{gxl => }/crypto/sha_dma.h (100%) diff --git a/drivers/amlogic/gxl/crypto/sha_dma.c b/drivers/amlogic/crypto/sha_dma.c similarity index 100% rename from drivers/amlogic/gxl/crypto/sha_dma.c rename to drivers/amlogic/crypto/sha_dma.c index a969dea74..d48ded987 100644 --- a/drivers/amlogic/gxl/crypto/sha_dma.c +++ b/drivers/amlogic/crypto/sha_dma.c @@ -4,10 +4,10 @@ * SPDX-License-Identifier: BSD-3-Clause */ -#include #include -#include +#include #include +#include #define AML_SHA_DMA_BASE 0xc883e000 diff --git a/include/drivers/amlogic/gxl/crypto/sha_dma.h b/include/drivers/amlogic/crypto/sha_dma.h similarity index 100% rename from include/drivers/amlogic/gxl/crypto/sha_dma.h rename to include/drivers/amlogic/crypto/sha_dma.h diff --git a/plat/amlogic/gxl/platform.mk b/plat/amlogic/gxl/platform.mk index f699381d5..a7cda7708 100644 --- a/plat/amlogic/gxl/platform.mk +++ b/plat/amlogic/gxl/platform.mk @@ -14,7 +14,6 @@ DOIMAGEPATH ?= tools/amlogic DOIMAGETOOL ?= ${DOIMAGEPATH}/doimage PLAT_INCLUDES := -Iinclude/drivers/amlogic/ \ - -Iinclude/drivers/amlogic/${PLAT} \ -I${AML_PLAT_SOC}/include GIC_SOURCES := drivers/arm/gic/common/gic_common.c \ @@ -37,7 +36,7 @@ BL31_SOURCES += lib/cpus/aarch64/cortex_a53.S \ ${AML_PLAT_SOC}/gxl_scpi.c \ ${AML_PLAT_SOC}/gxl_sip_svc.c \ ${AML_PLAT_SOC}/gxl_thermal.c \ - drivers/amlogic/${PLAT}/crypto/sha_dma.c \ + drivers/amlogic/crypto/sha_dma.c \ ${GIC_SOURCES} # Tune compiler for Cortex-A53