]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spi: Fix missed rename from SPI_ADVANCE to SPI_STACKED_PARALLEL
authorDominik Wernberger <dominik.wernberger@gmx.de>
Mon, 25 Nov 2024 21:21:52 +0000 (22:21 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 25 Nov 2024 21:29:45 +0000 (15:29 -0600)
Fix missed rename from SPI_ADVANCE to SPI_STACKED_PARALLEL. This fixes
an issue encountered while testing the Zynq-7000 QSPI parallel Flash
implementation.

Fixes: f896aa656774 ("mtd: spi-nor: Rename SPI_ADVANCE to SPI_STACKED_PARALLEL")
Reviewed-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Signed-off-by: Dominik Wernberger <dominik.wernberger@gmx.de>
drivers/spi/spi-uclass.c

index 36b7d383aa9afa42322d447bb07d29f83c2e7d81..d6049753740b0637880958feb48e4f523e9c2927 100644 (file)
@@ -446,7 +446,7 @@ int _spi_get_bus_and_cs(int busnum, int cs, int speed, int mode,
        slave = dev_get_parent_priv(dev);
        bus_data = dev_get_uclass_priv(bus);
 
-#if CONFIG_IS_ENABLED(SPI_ADVANCE)
+#if CONFIG_IS_ENABLED(SPI_STACKED_PARALLEL)
        if ((dev_read_bool(dev, "parallel-memories")) && !slave->multi_cs_cap) {
                dev_err(dev, "controller doesn't support multi CS\n");
                return -EINVAL;
@@ -515,7 +515,7 @@ int spi_slave_of_to_plat(struct udevice *dev, struct dm_spi_slave_plat *plat)
        int mode = 0;
        int value;
 
-#if CONFIG_IS_ENABLED(SPI_ADVANCE)
+#if CONFIG_IS_ENABLED(SPI_STACKED_PARALLEL)
        int ret;
 
        ret = dev_read_u32_array(dev, "reg", plat->cs, SPI_CS_CNT_MAX);