[PATCH v5 0/3] Add cadence-SPI driver

Jan Sommer jan.sommer at dlr.de
Tue Mar 9 11:22:59 UTC 2021


v5:
- Add some documentation
- Thanks for testing by Rick van der Wal
    - Fix bug in CS logic
    - Work-around too slow RXNEMPTY flag for some bus frequencies
- Created issue in trac: https://devel.rtems.org/ticket/4320

v4:
- Use copyright information without UTF-8 characters

v3:
- Fix wrong changes to spec/build/bsps/arm/xilinx-zynq/obj.yml

v2:
- Moved source file to bsps/shared/dev/spi
- Moved include files to bsps/include/dev/spi
- Enabled build in aarch64 BSPs

v1:

This patchset implements a driver for the cadence-spi device of the Xilinx Zynq-7000 based SoCs  using the spidev API.


Jan Sommer (3):
  bsps/xilinx_zynq: Add SPI driver for cadence-spi
  bsps/xilinx_zynq: Add SPI driver to waf
  bsps/xilinx_zynq: Add SPI driver to autotools build

 bsps/headers.am                               |   5 +
 bsps/include/dev/spi/cadence-spi-regs.h       |  84 ++++
 bsps/include/dev/spi/cadence-spi.h            |  63 +++
 bsps/shared/dev/spi/cadence-spi.c             | 444 ++++++++++++++++++
 c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am  |   3 +
 .../lib/libbsp/arm/xilinx-zynqmp/Makefile.am  |   3 +
 spec/build/bsps/aarch64/xilinx-zynqmp/grp.yml |   2 +
 spec/build/bsps/arm/xilinx-zynq/grp.yml       |   2 +
 .../arm/xilinx-zynqmp/bspxilinxzynqmp.yml     |   2 +
 spec/build/bsps/objdevspizynq.yml             |  18 +
 10 files changed, 626 insertions(+)
 create mode 100644 bsps/include/dev/spi/cadence-spi-regs.h
 create mode 100644 bsps/include/dev/spi/cadence-spi.h
 create mode 100644 bsps/shared/dev/spi/cadence-spi.c
 create mode 100644 spec/build/bsps/objdevspizynq.yml

-- 
2.17.1



More information about the devel mailing list