Lines Matching refs:ssp

61 static int pxa2xx_spi_pci_clk_register(struct pci_dev *dev, struct ssp_device *ssp,  in pxa2xx_spi_pci_clk_register()  argument
66 snprintf(buf, sizeof(buf), "pxa2xx-spi.%d", ssp->port_id); in pxa2xx_spi_pci_clk_register()
67 ssp->clk = clk_register_fixed_rate(&dev->dev, buf, NULL, 0, rate); in pxa2xx_spi_pci_clk_register()
68 if (IS_ERR(ssp->clk)) in pxa2xx_spi_pci_clk_register()
69 return PTR_ERR(ssp->clk); in pxa2xx_spi_pci_clk_register()
71 return devm_add_action_or_reset(&dev->dev, pxa2xx_spi_pci_clk_unregister, ssp->clk); in pxa2xx_spi_pci_clk_register()
92 struct ssp_device *ssp = &c->ssp; in lpss_spi_setup() local
99 ssp->type = LPSS_BYT_SSP; in lpss_spi_setup()
100 ssp->port_id = 0; in lpss_spi_setup()
105 ssp->type = LPSS_BSW_SSP; in lpss_spi_setup()
106 ssp->port_id = 0; in lpss_spi_setup()
111 ssp->type = LPSS_BSW_SSP; in lpss_spi_setup()
112 ssp->port_id = 1; in lpss_spi_setup()
117 ssp->type = LPSS_BSW_SSP; in lpss_spi_setup()
118 ssp->port_id = 2; in lpss_spi_setup()
124 ssp->type = LPSS_LPT_SSP; in lpss_spi_setup()
125 ssp->port_id = 0; in lpss_spi_setup()
131 ssp->type = LPSS_LPT_SSP; in lpss_spi_setup()
132 ssp->port_id = 1; in lpss_spi_setup()
142 ret = pxa2xx_spi_pci_clk_register(dev, ssp, 50000000); in lpss_spi_setup()
173 struct ssp_device *ssp = &c->ssp; in ce4100_spi_setup() local
175 ssp->type = PXA25x_SSP; in ce4100_spi_setup()
176 ssp->port_id = dev->devfn; in ce4100_spi_setup()
179 return pxa2xx_spi_pci_clk_register(dev, ssp, 3686400); in ce4100_spi_setup()
188 struct ssp_device *ssp = &c->ssp; in mrfld_spi_setup() local
193 ssp->type = MRFLD_SSP; in mrfld_spi_setup()
197 ssp->port_id = 3; in mrfld_spi_setup()
203 ssp->port_id = 5; in mrfld_spi_setup()
209 ssp->port_id = 6; in mrfld_spi_setup()
218 ret = pxa2xx_spi_pci_clk_register(dev, ssp, 25000000); in mrfld_spi_setup()
245 struct ssp_device *ssp = &c->ssp; in qrk_spi_setup() local
247 ssp->type = QUARK_X1000_SSP; in qrk_spi_setup()
248 ssp->port_id = dev->devfn; in qrk_spi_setup()
251 return pxa2xx_spi_pci_clk_register(dev, ssp, 50000000); in qrk_spi_setup()
266 struct ssp_device *ssp; in pxa2xx_spi_pci_probe() local
278 ssp = &spi_pdata.ssp; in pxa2xx_spi_pci_probe()
279 ssp->dev = &dev->dev; in pxa2xx_spi_pci_probe()
280 ssp->phys_base = pci_resource_start(dev, 0); in pxa2xx_spi_pci_probe()
281 ssp->mmio_base = pcim_iomap_table(dev)[0]; in pxa2xx_spi_pci_probe()
293 ssp->irq = pci_irq_vector(dev, 0); in pxa2xx_spi_pci_probe()
299 pi.id = ssp->port_id; in pxa2xx_spi_pci_probe()