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>
15 * The platform data for SSP controller devices
16 * (resides in device.platform_data).
18 struct pxa2xx_spi_controller {
24 /* DMA engine specific config */
25 bool (*dma_filter)(struct dma_chan *chan, void *param);
29 /* For non-PXA arches */
30 struct ssp_device ssp;
34 * The controller specific data for SPI slave devices
35 * (resides in spi_board_info.controller_data),
36 * copied to spi_device.platform_data ... mostly for
39 struct pxa2xx_spi_chip {
48 #if defined(CONFIG_ARCH_PXA) || defined(CONFIG_ARCH_MMP)
50 #include <linux/clk.h>
52 extern void pxa2xx_set_spi_info(unsigned id, struct pxa2xx_spi_controller *info);
56 #endif /* __LINUX_SPI_PXA2XX_SPI_H */