spi: atmel: Drop non-dm code
[oweals/u-boot.git] / drivers / spi / atmel_spi.h
index 76b8556c98aeea16bdc0c5ddf26303b859c4b41a..685eeed99e5401df384e92b838ec93e1d6593af5 100644 (file)
 #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