diff options
author | Tom Rini <trini@konsulko.com> | 2021-08-30 23:44:54 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-08-30 23:56:54 +0300 |
commit | a85a8e63c5cf8ccb3905eb5982bf8bdcb2978557 (patch) | |
tree | b9feab308105519bdac26729cee734ef49bb62f2 /drivers/spi | |
parent | 9b0583a839ab8b086b65b4762769abbe048a524d (diff) | |
parent | 809c4f242f6c05f67a097ace0098c5bc1dfebdfb (diff) | |
download | u-boot-a85a8e63c5cf8ccb3905eb5982bf8bdcb2978557.tar.xz |
Merge branch '2021-08-30-kconfig-migrations-part1' into next
- Begin merging some Kconfig migration, and CONFIG namespace cleanup
series in. This gives us:
- A number of I2C symbols migrated over
- DWC2, i8042, altera_spi and a few other areas updated to use CFG not
CONFIG for the concept of "configuration space" defines.
- Rename CONFIG_EXTRA_ENV_BOARD_SETTINGS to EXTRA_ENV_BOARD_SETTINGS
- Some dead code removal.
- Rename a number of CONFIG symbols that were only referenced within
the config header to not use CONFIG as a prefix.
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/altera_spi.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/spi/altera_spi.c b/drivers/spi/altera_spi.c index fadc9f3965..989679e881 100644 --- a/drivers/spi/altera_spi.c +++ b/drivers/spi/altera_spi.c @@ -19,9 +19,7 @@ #define ALTERA_SPI_STATUS_RRDY_MSK BIT(7) #define ALTERA_SPI_CONTROL_SSO_MSK BIT(10) -#ifndef CONFIG_ALTERA_SPI_IDLE_VAL -#define CONFIG_ALTERA_SPI_IDLE_VAL 0xff -#endif +#define ALTERA_SPI_IDLE_VAL 0xff struct altera_spi_regs { u32 rxdata; @@ -119,7 +117,7 @@ static int altera_spi_xfer(struct udevice *dev, unsigned int bitlen, if (txp) data = *txp++; else - data = CONFIG_ALTERA_SPI_IDLE_VAL; + data = ALTERA_SPI_IDLE_VAL; debug("%s: tx:%x ", __func__, data); writel(data, ®s->txdata); |