]> git.baikalelectronics.ru Git - uboot.git/commitdiff
cf_spi.c: Rename CONFIG_SPI_IDLE_VAL to SPI_IDLE_VAL
authorTom Rini <trini@konsulko.com>
Sun, 4 Dec 2022 15:14:19 +0000 (10:14 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 23 Dec 2022 18:01:13 +0000 (13:01 -0500)
This value is never changed by boards, so just rename it to
SPI_IDLE_VAL to fit with the rest of the code.

Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/spi/cf_spi.c
drivers/spi/sandbox_spi.c

index ea23357090fefbd9f2460a0b9c03631c96d343fa..1a841b5dcefca9e2f6ae5ef7e4ea73d09b5f5631 100644 (file)
@@ -32,11 +32,11 @@ struct coldfire_spi_priv {
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#ifndef CONFIG_SPI_IDLE_VAL
+#ifndef SPI_IDLE_VAL
 #if defined(CONFIG_SPI_MMC)
-#define CONFIG_SPI_IDLE_VAL    0xFFFF
+#define SPI_IDLE_VAL   0xFFFF
 #else
-#define CONFIG_SPI_IDLE_VAL    0x0
+#define SPI_IDLE_VAL   0x0
 #endif
 #endif
 
@@ -184,7 +184,7 @@ static int coldfire_spi_xfer(struct udevice *dev, unsigned int bitlen,
                        }
 
                        if (din) {
-                               cfspi_tx(cfspi, ctrl, CONFIG_SPI_IDLE_VAL);
+                               cfspi_tx(cfspi, ctrl, SPI_IDLE_VAL);
                                if (cfspi->charbit == 16)
                                        *spi_rd16++ = cfspi_rx(cfspi);
                                else
@@ -208,7 +208,7 @@ static int coldfire_spi_xfer(struct udevice *dev, unsigned int bitlen,
                }
 
                if (din) {
-                       cfspi_tx(cfspi, ctrl, CONFIG_SPI_IDLE_VAL);
+                       cfspi_tx(cfspi, ctrl, SPI_IDLE_VAL);
                        if (cfspi->charbit == 16)
                                *spi_rd16 = cfspi_rx(cfspi);
                        else
@@ -216,7 +216,7 @@ static int coldfire_spi_xfer(struct udevice *dev, unsigned int bitlen,
                }
        } else {
                /* dummy read */
-               cfspi_tx(cfspi, ctrl, CONFIG_SPI_IDLE_VAL);
+               cfspi_tx(cfspi, ctrl, SPI_IDLE_VAL);
                cfspi_rx(cfspi);
        }
 
index 0564d8b55e70b336c3c91d7febee6c45e7feb6f6..f844597d04cf8287e6606c23cca60afedb8b4358 100644 (file)
 #include <dm/acpi.h>
 #include <dm/device-internal.h>
 
-#ifndef CONFIG_SPI_IDLE_VAL
-# define CONFIG_SPI_IDLE_VAL 0xFF
-#endif
-
 /**
  * struct sandbox_spi_priv - Sandbox SPI private data
  *