[rtems commit] bsps/xilinx_zynq: Add SPI driver to autotools build

Jan Sommer jan at rtems.org
Wed Mar 10 19:14:13 UTC 2021


Module:    rtems
Branch:    master
Commit:    92239318b1524f10d68dc5f04b4b46dd714718a1
Changeset: http://git.rtems.org/rtems/commit/?id=92239318b1524f10d68dc5f04b4b46dd714718a1

Author:    Jan Sommer <jan.sommer at dlr.de>
Date:      Wed Dec  2 13:42:00 2020 +0100

bsps/xilinx_zynq: Add SPI driver to autotools build

Closes #4320

---

 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 1b82382..37ce6d6 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 1416a5c..87950a3 100644
--- a/c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am
+++ b/c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am
@@ -72,6 +72,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 9d4afcf..393e8e8 100644
--- a/c/src/lib/libbsp/arm/xilinx-zynqmp/Makefile.am
+++ b/c/src/lib/libbsp/arm/xilinx-zynqmp/Makefile.am
@@ -68,6 +68,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
 



More information about the vc mailing list