Lines Matching full:ssp
67 static int pxa2xx_spi_pci_clk_register(struct pci_dev *dev, struct ssp_device *ssp, in pxa2xx_spi_pci_clk_register() argument
72 snprintf(buf, sizeof(buf), "pxa2xx-spi.%d", ssp->port_id); in pxa2xx_spi_pci_clk_register()
73 ssp->clk = clk_register_fixed_rate(&dev->dev, buf, NULL, 0, rate); in pxa2xx_spi_pci_clk_register()
74 if (IS_ERR(ssp->clk)) in pxa2xx_spi_pci_clk_register()
75 return PTR_ERR(ssp->clk); in pxa2xx_spi_pci_clk_register()
77 return devm_add_action_or_reset(&dev->dev, pxa2xx_spi_pci_clk_unregister, ssp->clk); in pxa2xx_spi_pci_clk_register()
98 struct ssp_device *ssp = &c->ssp; in lpss_spi_setup() local
105 ssp->type = LPSS_BYT_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 = 0; in lpss_spi_setup()
117 ssp->type = LPSS_BSW_SSP; in lpss_spi_setup()
118 ssp->port_id = 1; in lpss_spi_setup()
123 ssp->type = LPSS_BSW_SSP; in lpss_spi_setup()
124 ssp->port_id = 2; in lpss_spi_setup()
130 ssp->type = LPSS_LPT_SSP; in lpss_spi_setup()
131 ssp->port_id = 0; in lpss_spi_setup()
137 ssp->type = LPSS_LPT_SSP; in lpss_spi_setup()
138 ssp->port_id = 1; in lpss_spi_setup()
148 ret = pxa2xx_spi_pci_clk_register(dev, ssp, 50000000); in lpss_spi_setup()
179 struct ssp_device *ssp = &c->ssp; in ce4100_spi_setup() local
181 ssp->type = PXA25x_SSP; in ce4100_spi_setup()
182 ssp->port_id = dev->devfn; in ce4100_spi_setup()
185 return pxa2xx_spi_pci_clk_register(dev, ssp, 3686400); in ce4100_spi_setup()
194 struct ssp_device *ssp = &c->ssp; in mrfld_spi_setup() local
199 ssp->type = MRFLD_SSP; in mrfld_spi_setup()
203 ssp->port_id = 3; in mrfld_spi_setup()
209 ssp->port_id = 5; in mrfld_spi_setup()
215 ssp->port_id = 6; in mrfld_spi_setup()
224 ret = pxa2xx_spi_pci_clk_register(dev, ssp, 25000000); in mrfld_spi_setup()
251 struct ssp_device *ssp = &c->ssp; in qrk_spi_setup() local
253 ssp->type = QUARK_X1000_SSP; in qrk_spi_setup()
254 ssp->port_id = dev->devfn; in qrk_spi_setup()
257 return pxa2xx_spi_pci_clk_register(dev, ssp, 50000000); in qrk_spi_setup()
270 struct ssp_device *ssp; in pxa2xx_spi_pci_probe() local
284 ssp = &pdata->ssp; in pxa2xx_spi_pci_probe()
285 ssp->dev = &dev->dev; in pxa2xx_spi_pci_probe()
286 ssp->phys_base = pci_resource_start(dev, 0); in pxa2xx_spi_pci_probe()
287 ssp->mmio_base = pcim_iomap_table(dev)[0]; in pxa2xx_spi_pci_probe()
299 ssp->irq = pci_irq_vector(dev, 0); in pxa2xx_spi_pci_probe()
301 ret = pxa2xx_spi_probe(&dev->dev, ssp, pdata); in pxa2xx_spi_pci_probe()