#include <linux/clk-provider.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/pm.h>
#include <linux/sprintf.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/dmaengine.h>
#include <linux/platform_data/dma-dw.h>
#include "spi-pxa2xx.h"
#define PCI_DEVICE_ID_INTEL_QUARK_X1000 …
#define PCI_DEVICE_ID_INTEL_BYT …
#define PCI_DEVICE_ID_INTEL_MRFLD …
#define PCI_DEVICE_ID_INTEL_BSW0 …
#define PCI_DEVICE_ID_INTEL_BSW1 …
#define PCI_DEVICE_ID_INTEL_BSW2 …
#define PCI_DEVICE_ID_INTEL_CE4100 …
#define PCI_DEVICE_ID_INTEL_LPT0_0 …
#define PCI_DEVICE_ID_INTEL_LPT0_1 …
#define PCI_DEVICE_ID_INTEL_LPT1_0 …
#define PCI_DEVICE_ID_INTEL_LPT1_1 …
struct pxa_spi_info { … };
static struct dw_dma_slave byt_tx_param = …;
static struct dw_dma_slave byt_rx_param = …;
static struct dw_dma_slave mrfld3_tx_param = …;
static struct dw_dma_slave mrfld3_rx_param = …;
static struct dw_dma_slave mrfld5_tx_param = …;
static struct dw_dma_slave mrfld5_rx_param = …;
static struct dw_dma_slave mrfld6_tx_param = …;
static struct dw_dma_slave mrfld6_rx_param = …;
static struct dw_dma_slave bsw0_tx_param = …;
static struct dw_dma_slave bsw0_rx_param = …;
static struct dw_dma_slave bsw1_tx_param = …;
static struct dw_dma_slave bsw1_rx_param = …;
static struct dw_dma_slave bsw2_tx_param = …;
static struct dw_dma_slave bsw2_rx_param = …;
static struct dw_dma_slave lpt1_tx_param = …;
static struct dw_dma_slave lpt1_rx_param = …;
static struct dw_dma_slave lpt0_tx_param = …;
static struct dw_dma_slave lpt0_rx_param = …;
static void pxa2xx_spi_pci_clk_unregister(void *clk)
{ … }
static int pxa2xx_spi_pci_clk_register(struct pci_dev *dev, struct ssp_device *ssp,
unsigned long rate)
{ … }
static bool lpss_dma_filter(struct dma_chan *chan, void *param)
{ … }
static void lpss_dma_put_device(void *dma_dev)
{ … }
static int lpss_spi_setup(struct pci_dev *dev, struct pxa2xx_spi_controller *c)
{ … }
static const struct pxa_spi_info lpss_info_config = …;
static int ce4100_spi_setup(struct pci_dev *dev, struct pxa2xx_spi_controller *c)
{ … }
static const struct pxa_spi_info ce4100_info_config = …;
static int mrfld_spi_setup(struct pci_dev *dev, struct pxa2xx_spi_controller *c)
{ … }
static const struct pxa_spi_info mrfld_info_config = …;
static int qrk_spi_setup(struct pci_dev *dev, struct pxa2xx_spi_controller *c)
{ … }
static const struct pxa_spi_info qrk_info_config = …;
static int pxa2xx_spi_pci_probe(struct pci_dev *dev,
const struct pci_device_id *ent)
{ … }
static void pxa2xx_spi_pci_remove(struct pci_dev *dev)
{ … }
static const struct pci_device_id pxa2xx_spi_pci_devices[] = …;
MODULE_DEVICE_TABLE(pci, pxa2xx_spi_pci_devices);
static struct pci_driver pxa2xx_spi_pci_driver = …;
module_pci_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_IMPORT_NS(…);
MODULE_AUTHOR(…) …;