meson/gxl: Add support for SHA256 DMA engine
In order to configure and boot SCP, BL31 has to compute and send
the SHA-256 of the firmware data via scpi. Luckily Amlogic GXL SOC
has a DMA facility that could be used to offload SHA-256
computations. This adds basic support of this hardware SHA-256
engine.
Signed-off-by: Remi Pommarel <repk@triplefau.lt>
diff --git a/plat/meson/gxl/platform.mk b/plat/meson/gxl/platform.mk
index 7437dfd..de61929 100644
--- a/plat/meson/gxl/platform.mk
+++ b/plat/meson/gxl/platform.mk
@@ -7,6 +7,7 @@
include lib/xlat_tables_v2/xlat_tables.mk
PLAT_INCLUDES := -Iinclude/drivers/meson/ \
+ -Iinclude/drivers/meson/gxl \
-Iplat/meson/gxl/include
GXBB_GIC_SOURCES := drivers/arm/gic/common/gic_common.c \
@@ -22,13 +23,14 @@
BL31_SOURCES += lib/cpus/aarch64/cortex_a53.S \
plat/common/plat_psci_common.c \
plat/meson/gxl/aarch64/gxl_helpers.S \
- plat/meson/gxl/gxl_bl31_setup.c \
+ plat/meson/gxl/gxl_bl31_setup.c \
plat/meson/gxl/gxl_efuse.c \
plat/meson/gxl/gxl_mhu.c \
- plat/meson/gxl/gxl_pm.c \
+ plat/meson/gxl/gxl_pm.c \
plat/meson/gxl/gxl_scpi.c \
plat/meson/gxl/gxl_sip_svc.c \
plat/meson/gxl/gxl_thermal.c \
+ drivers/meson/gxl/crypto/sha_dma.c \
${GXBB_GIC_SOURCES}
# Tune compiler for Cortex-A53