summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlo Caione <ccaione@baylibre.com>2019-08-24 17:17:30 +0100
committerCarlo Caione <ccaione@baylibre.com>2019-09-05 10:39:30 +0100
commit01b2a7fc3256dcec74e2f147ed28a37ad4df05fe (patch)
tree6eb33196819ca9298a4be455bb95ac8cbc26496f
parent40fac1ab4cb14bdd27e076eef48b6290d8a9d454 (diff)
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 <ccaione@baylibre.com> Change-Id: I96319eeeeeebd503ef0dcb07c0e4ff6a67afeaa5
-rw-r--r--drivers/amlogic/crypto/sha_dma.c (renamed from drivers/amlogic/gxl/crypto/sha_dma.c)4
-rw-r--r--include/drivers/amlogic/crypto/sha_dma.h (renamed from include/drivers/amlogic/gxl/crypto/sha_dma.h)0
-rw-r--r--plat/amlogic/gxl/platform.mk3
3 files changed, 3 insertions, 4 deletions
diff --git a/drivers/amlogic/gxl/crypto/sha_dma.c b/drivers/amlogic/crypto/sha_dma.c
index a969dea7..d48ded98 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 <assert.h>
#include <arch_helpers.h>
-#include <lib/mmio.h>
+#include <assert.h>
#include <crypto/sha_dma.h>
+#include <lib/mmio.h>
#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
index 52129a61..52129a61 100644
--- a/include/drivers/amlogic/gxl/crypto/sha_dma.h
+++ b/include/drivers/amlogic/crypto/sha_dma.h
diff --git a/plat/amlogic/gxl/platform.mk b/plat/amlogic/gxl/platform.mk
index f699381d..a7cda770 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