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/dmaengine.h>
9 #include <linux/types.h>
11 #include <linux/pxa2xx_ssp.h>
16 * The platform data for SSP controller devices
17 * (resides in device.platform_data).
19 struct pxa2xx_spi_controller {
25 /* DMA engine specific config */
26 dma_filter_fn dma_filter;
30 /* For non-PXA arches */
31 struct ssp_device ssp;
35 * The controller specific data for SPI target devices
36 * (resides in spi_board_info.controller_data),
37 * copied to spi_device.platform_data ... mostly for
40 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 */