diff options
author | Jagan Teki <jagan@amarulasolutions.com> | 2018-03-14 18:46:42 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-04-06 16:11:09 -0400 |
commit | 7b0947787358c6b277431d6b76ce043d8bec641d (patch) | |
tree | 9780ddd2149958d6a17316f02dd3689152f38e76 /drivers/spi/atmel_spi.h | |
parent | 5a6eab8ab02aa3f2449eff80be9184a4e688f451 (diff) |
spi: atmel: Drop non-dm code
All board configs are now enabled DM_SPI for SPL and
U-Boot proper, so now its time to drop non-dm code.
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Acked-by: Wenyou Yang <wenyouya@gmail.com>
Diffstat (limited to 'drivers/spi/atmel_spi.h')
-rw-r--r-- | drivers/spi/atmel_spi.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/spi/atmel_spi.h b/drivers/spi/atmel_spi.h index 76b8556c98..685eeed99e 100644 --- a/drivers/spi/atmel_spi.h +++ b/drivers/spi/atmel_spi.h @@ -79,22 +79,6 @@ #define ATMEL_SPI_BITS_16 8 struct atmel_spi_slave { - struct spi_slave slave; void *regs; u32 mr; }; - -static inline struct atmel_spi_slave *to_atmel_spi(struct spi_slave *slave) -{ - return container_of(slave, struct atmel_spi_slave, slave); -} - -/* Register access macros */ -#define spi_readl(as, reg) \ - readl(as->regs + ATMEL_SPI_##reg) -#define spi_writel(as, reg, value) \ - writel(value, as->regs + ATMEL_SPI_##reg) - -#if !defined(CONFIG_SYS_SPI_WRITE_TOUT) -#define CONFIG_SYS_SPI_WRITE_TOUT (5 * CONFIG_SYS_HZ) -#endif |