# Update QUP serial engine firmware for SPI

Source: [https://docs.qualcomm.com/doc/80-88500-1/topic/36_Update_QUP_v3_serial_engine_firmware_for_SPI.html](https://docs.qualcomm.com/doc/80-88500-1/topic/36_Update_QUP_v3_serial_engine_firmware_for_SPI.html)

## About this task

The QUP v3 is a firmware-based target, where the QUP must be loaded with the
                firmware. Also, the GPI engine must be loaded with the appropriate firmware. To
                update the QUP v3 firmware, use the
                    /slpi\_proc/core/settings/buses/qup\_fw/config/chipset/fw\_devcfg.c
                file.

Following is an example fw\_devcfg.c file, where SE1 is
                configured as I^2^C:

    #define SE1_PROTOCOL SE_PROTOCOL_SPI
    se_cfg se1_cfg = { .offset     = 0x84000,                    // offset value OEM no need to change .protocol   = SE1_PROTOCOL,               // Protocol could be I2C, SPI, UART,I3C .mode       = GSI,                        // Mode Could be  GSI, FIFO,CPU_DMA   .load_fw    = TRUE,                       // Should be true to load the FW .dfs_mode   = TRUE,                       // Dynamic frequency scaling no need to mofidy };
    Copy to clipboard

**Parent Topic:** [SPI in QUP](https://docs.qualcomm.com/doc/80-88500-1/topic/30_SPI_in_QUP_v3.html)

Last Published: Aug 18, 2023

[Previous Topic
Enable SPI bus in sensor low-power island (SLPI)](https://docs.qualcomm.com/bundle/publicresource/80-88500-1/topics/35_Enable_SPI_bus_in_sensor_low_power_island__SLPI_.md) [Next Topic
Configure GPI as SPI](https://docs.qualcomm.com/bundle/publicresource/80-88500-1/topics/37_Configure_GPI_as_SPI.md)