1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2005 Stephen Street / StreetFire Sound Labs
5 #ifndef __LINUX_SPI_PXA2XX_SPI_H
6 #define __LINUX_SPI_PXA2XX_SPI_H
8 #include <linux/types.h>
10 #include <linux/pxa2xx_ssp.h>
12 #define PXA2XX_CS_ASSERT (0x01)
13 #define PXA2XX_CS_DEASSERT (0x02)
18 * The platform data for SSP controller devices
19 * (resides in device.platform_data).
21 struct pxa2xx_spi_controller {
27 /* DMA engine specific config */
28 bool (*dma_filter)(struct dma_chan *chan, void *param);
32 /* For non-PXA arches */
33 struct ssp_device ssp;
37 * The controller specific data for SPI slave devices
38 * (resides in spi_board_info.controller_data),
39 * copied to spi_device.platform_data ... mostly for
42 struct pxa2xx_spi_chip {
50 void (*cs_control)(u32 command);
53 #if defined(CONFIG_ARCH_PXA) || defined(CONFIG_ARCH_MMP)
55 #include <linux/clk.h>
57 extern void pxa2xx_set_spi_info(unsigned id, struct pxa2xx_spi_controller *info);
61 #endif /* __LINUX_SPI_PXA2XX_SPI_H */