[PATCH v2 3/3] bsps/xilinx_zynq: Add SPI driver to autotools build
Jan Sommer
jan.sommer at dlr.de
Sat Feb 13 14:19:13 UTC 2021
---
bsps/headers.am | 5 +++++
c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am | 3 +++
c/src/lib/libbsp/arm/xilinx-zynqmp/Makefile.am | 3 +++
3 files changed, 11 insertions(+)
diff --git a/bsps/headers.am b/bsps/headers.am
index 1b82382db8..37ce6d6c73 100644
--- a/bsps/headers.am
+++ b/bsps/headers.am
@@ -39,6 +39,11 @@ include_dev_serial_HEADERS += ../../bsps/include/dev/serial/arm-pl011.h
include_dev_serial_HEADERS += ../../bsps/include/dev/serial/zynq-uart-regs.h
include_dev_serial_HEADERS += ../../bsps/include/dev/serial/zynq-uart.h
+include_dev_spidir = $(includedir)/dev/spi
+include_dev_spi_HEADERS =
+include_dev_spi_HEADERS += ../../bsps/include/dev/spi/cadence-spi-regs.h
+include_dev_spi_HEADERS += ../../bsps/include/dev/spi/cadence-spi.h
+
include_grlibdir = $(includedir)/grlib
include_grlib_HEADERS =
include_grlib_HEADERS += ../../bsps/include/grlib/ahbstat.h
diff --git a/c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am b/c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am
index 8804dc40da..11749acc1b 100644
--- a/c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am
+++ b/c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am
@@ -71,6 +71,9 @@ librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/clock/clock-a9mpcore.
# I2C
librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/xilinx-zynq/i2c/cadence-i2c.c
+# SPI
+librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/spi/cadence-spi.c
+
# Cache
librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/cache/cache-l2c-310.c
diff --git a/c/src/lib/libbsp/arm/xilinx-zynqmp/Makefile.am b/c/src/lib/libbsp/arm/xilinx-zynqmp/Makefile.am
index 21db56a0ea..2d8ccf07cd 100644
--- a/c/src/lib/libbsp/arm/xilinx-zynqmp/Makefile.am
+++ b/c/src/lib/libbsp/arm/xilinx-zynqmp/Makefile.am
@@ -67,6 +67,9 @@ librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/serial/zynq-uart-poll
librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/clock/arm-generic-timer.c
librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/clock/arm-generic-timer-aarch32.c
+# SPI
+librtemsbsp_a_SOURCES += ../../../../../../bsps/shared/dev/spi/cadence-spi.c
+
# Cache
librtemsbsp_a_SOURCES += ../../../../../../bsps/arm/shared/cache/cache-cp15.c
--
2.17.1
More information about the devel
mailing list