The sspi command is available in Uboot as SPI.
The sspi command is not enabled by default, but can be used by making the following modification.
File: /uboot-socfpga/include/configs/socfpga_common.h
Edit: Add #define CONFIG_CMD_SPI in the file
(e.g.) Add the following to lines 549~552.
/* * SPI CMD support */ * SPI CMD support #define CONFIG_CMD_SPI
(Reference) File reflecting the edited contents (Please download from the bottom of the page)
socfpga_common.h
Please refer to the following file for command usage.
File: /uboot-socfpga/common/cmd_spi.c
U_BOOT_CMD( sspi, 5, 1, do_spi,. "SPI utility command",. "[<bus>:]<cs>[. <mode>] <bit_len> <dout> - Send and receive bits\n" "<bus> - Identifies the SPI bus", "[<bus>:]<cs>[. "<cs> - Identifies the chip select\n" "<mode> - Identifies the SPI mode to use\n" "<bit_len> - Number of bits to send (base 10)\n" "<dout> - Hexadecimal string that gets sent" );
--------------------
Category: SoC
Tools: SoC EDS
Device: Cyclone® V