Agilex™ 7 Hard Processor System Remote System Update User Guide

ID 683184
Date 5/01/2025
Public

Visible to Intel only — GUID: qml1735680973945

Ixiasoft

Document Table of Contents

C.8. Building U-Boot to Support Multi-QSPI

Building the U-Boot to support RSU with multi-QSPI devices requires the following changes compared with the regular build for RSU:
  • Set CONFIG_SOCFPGA_RSU_MULTIFLASH to y in the build configuration file to enable multi-QSPI support in the U-Boot RSU functionality. In the same file also make sure that CONFIG_SF_DEFAULT_CS is set to 0 to indicate that the SPTs and CPBs are located in chip 0.
  • Add the number of QSPI flash devices in the system to the corresponding QSPI node in the device tree using the num-cs parameter.
  • Create a flash node for each one of the QSPI flash devices in the device tree. Use the default example as reference to create the others. In each one of the nodes:
    1. Reduce the maximum SPI frequency to 25 MHz using the spi-max-frequency parameter.
    2. Assign the corresponding chip select using the reg parameter.
    3. Create the desired partitions in each of the chips.
    Instantiate these nodes in the main QSPI node.

For an example about how to build the U-Boot for a multi-QSPI system, refer to the Building U-Boot section in the Agilex™ 7 SoC HPS Multi-QSPI Remote System Update Example web page.