[rtems5 PATCH 0/5] Backport zynq SPI drivers to rtems5

Jan Sommer jan.sommer at dlr.de
Wed Mar 31 09:06:41 UTC 2021


This patchset backports:
- The cadence SPI driver (see: https://devel.rtems.org/ticket/4369)
- The xilinx axi SPI driver (see: https://devel.rtems.org/ticket/4370)
- The i2c and spi shell commands (see: https://devel.rtems.org/ticket/4371)

For the SPI drivers I didn't change any code (except the include paths)
I put them in bsps/arm/shared instead of bsps/shared, since rtems5 has
no aarch64 BSPs which could use them.

>From Christian's commit I only stripped the part for the waf build
system. I found the commands quite handy during driver development and
testing.

Best regards,

    Jan

Christian Mauderer (1):
  shell: Add i2c and spi commands

Jan Sommer (4):
  bsps/xilinx_zynq: Add SPI driver for cadence-spi
  bsps/xilinx_zynq: Add cadence SPI driver to build system
  bsps/xilinx_zynq: Add SPI driver for xilinx-axi-spi
  bsps/xilinx_zynq: Add Xilinx AXI SPI driver to build

 bsps/arm/headers.am                           |   4 +
 bsps/arm/include/bsp/cadence-spi-regs.h       |  84 ++++
 bsps/arm/include/bsp/cadence-spi.h            |  63 +++
 bsps/arm/include/bsp/xilinx-axi-spi-regs.h    |  88 ++++
 bsps/arm/include/bsp/xilinx-axi-spi.h         |  67 +++
 bsps/arm/shared/spi/cadence-spi.c             | 444 ++++++++++++++++++
 bsps/arm/shared/spi/xilinx-axi-spi.c          | 402 ++++++++++++++++
 c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am  |   4 +
 .../lib/libbsp/arm/xilinx-zynqmp/Makefile.am  |   4 +
 cpukit/Makefile.am                            |   4 +
 cpukit/include/rtems/shellconfig.h            |  28 ++
 cpukit/libmisc/shell/main_i2cdetect.c         | 107 +++++
 cpukit/libmisc/shell/main_i2cget.c            | 145 ++++++
 cpukit/libmisc/shell/main_i2cset.c            | 124 +++++
 cpukit/libmisc/shell/main_spi.c               | 157 +++++++
 15 files changed, 1725 insertions(+)
 create mode 100644 bsps/arm/include/bsp/cadence-spi-regs.h
 create mode 100644 bsps/arm/include/bsp/cadence-spi.h
 create mode 100644 bsps/arm/include/bsp/xilinx-axi-spi-regs.h
 create mode 100644 bsps/arm/include/bsp/xilinx-axi-spi.h
 create mode 100644 bsps/arm/shared/spi/cadence-spi.c
 create mode 100644 bsps/arm/shared/spi/xilinx-axi-spi.c
 create mode 100644 cpukit/libmisc/shell/main_i2cdetect.c
 create mode 100644 cpukit/libmisc/shell/main_i2cget.c
 create mode 100644 cpukit/libmisc/shell/main_i2cset.c
 create mode 100644 cpukit/libmisc/shell/main_spi.c

-- 
2.17.1



More information about the devel mailing list