[rtems5 PATCH 0/5] Backport zynq SPI drivers to rtems5
Chris Johns
chrisj at rtems.org
Thu Apr 1 00:15:04 UTC 2021
Hi Jan,
This looks good. Has this been tested on zync hardware? If no then some testing
is needed and if yes then please push.
Thanks
Chris
On 31/3/21 8:06 pm, Jan Sommer wrote:
> 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
>
More information about the devel
mailing list