]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
xilinx: zynqmp: make spi flash support optional
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Mon, 20 Jun 2022 16:36:46 +0000 (18:36 +0200)
committerMichal Simek <michal.simek@amd.com>
Fri, 24 Jun 2022 12:37:27 +0000 (14:37 +0200)
The set_dfu_alt_info function use the CONFIG_SYS_SPI_U_BOOT_OFFS define
to set the dfu_alt_info environment variable for qspi boot mode. Guard
the usage of CONFIG_SYS_SPI_U_BOOT_OFFS to make spi flash support
optional.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Link: https://lore.kernel.org/r/20220620163650.18756-11-stefan.herbrechtsmeier-oss@weidmueller.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
board/xilinx/zynqmp/zynqmp.c

index 06f6dbab1825c6c1416772cd7ea13e721533ca50..106c3953e1fca68149267b0d760ccf2b3a04e652 100644 (file)
@@ -667,6 +667,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
                                 bootseq, multiboot, bootseq,
                                 CONFIG_SPL_FS_LOAD_PAYLOAD_NAME, bootseq);
                break;
+#if defined(CONFIG_SYS_SPI_U_BOOT_OFFS)
        case QSPI_MODE_24BIT:
        case QSPI_MODE_32BIT:
                snprintf(buf, DFU_ALT_BUF_LEN,
@@ -675,6 +676,7 @@ void set_dfu_alt_info(char *interface, char *devstr)
                         multiboot * SZ_32K, CONFIG_SPL_FS_LOAD_PAYLOAD_NAME,
                         CONFIG_SYS_SPI_U_BOOT_OFFS);
                break;
+#endif
        default:
                return;
        }