Lines Matching full:ssp

35  * For testing SSCR1 changes that require SSP restart, basically
309 * Read and write LPSS SSP private registers. Caller must first check that
340 * lpss_ssp_setup - perform LPSS SSP specific setup
343 * Perform LPSS SSP specific setup. This function must be called first if
344 * one is going to use LPSS SSP private registers.
352 drv_data->lpss_base = drv_data->ssp->mmio_base + config->offset; in lpss_ssp_setup()
441 /* Wait until SSP becomes idle before deasserting the CS */ in cs_deassert()
478 pxa_ssp_disable(drv_data->ssp); in pxa2xx_spi_off()
617 dev_err(drv_data->ssp->dev, "%s\n", msg); in int_error_stop()
713 dev_err(drv_data->ssp->dev, "bad message state in interrupt handler\n"); in handle_bad_msg()
729 if (pm_runtime_suspended(drv_data->ssp->dev)) in ssp_int()
891 const struct ssp_device *ssp = drv_data->ssp; in ssp_get_clk_div() local
897 * that the SSP transmission rate can be greater than the device rate. in ssp_get_clk_div()
899 if (ssp->type == PXA25x_SSP || ssp->type == CE4100_SSP) in ssp_get_clk_div()
1043 /* Stop the SSP */ in pxa2xx_spi_transfer_one()
1045 pxa_ssp_disable(drv_data->ssp); in pxa2xx_spi_transfer_one()
1056 /* Restart the SSP */ in pxa2xx_spi_transfer_one()
1057 pxa_ssp_enable(drv_data->ssp); in pxa2xx_spi_transfer_one()
1106 /* Disable the SSP */ in pxa2xx_spi_handle_err()
1124 /* Disable the SSP now */ in pxa2xx_spi_unprepare_transfer()
1272 int pxa2xx_spi_probe(struct device *dev, struct ssp_device *ssp, in pxa2xx_spi_probe() argument
1291 drv_data->ssp = ssp; in pxa2xx_spi_probe()
1298 controller->bus_num = ssp->port_id; in pxa2xx_spi_probe()
1311 drv_data->ssp_type = ssp->type; in pxa2xx_spi_probe()
1336 status = request_irq(ssp->irq, ssp_int, IRQF_SHARED, dev_name(dev), in pxa2xx_spi_probe()
1339 return dev_err_probe(dev, status, "cannot get IRQ %d\n", ssp->irq); in pxa2xx_spi_probe()
1358 status = clk_prepare_enable(ssp->clk); in pxa2xx_spi_probe()
1362 controller->max_speed_hz = clk_get_rate(ssp->clk); in pxa2xx_spi_probe()
1374 pxa_ssp_disable(ssp); in pxa2xx_spi_probe()
1376 /* Load default SSP configuration */ in pxa2xx_spi_probe()
1455 clk_disable_unprepare(ssp->clk); in pxa2xx_spi_probe()
1459 free_irq(ssp->irq, drv_data); in pxa2xx_spi_probe()
1468 struct ssp_device *ssp = drv_data->ssp; in pxa2xx_spi_remove() local
1472 /* Disable the SSP at the peripheral and SOC level */ in pxa2xx_spi_remove()
1473 pxa_ssp_disable(ssp); in pxa2xx_spi_remove()
1474 clk_disable_unprepare(ssp->clk); in pxa2xx_spi_remove()
1481 free_irq(ssp->irq, drv_data); in pxa2xx_spi_remove()
1488 struct ssp_device *ssp = drv_data->ssp; in pxa2xx_spi_suspend() local
1495 pxa_ssp_disable(ssp); in pxa2xx_spi_suspend()
1498 clk_disable_unprepare(ssp->clk); in pxa2xx_spi_suspend()
1506 struct ssp_device *ssp = drv_data->ssp; in pxa2xx_spi_resume() local
1509 /* Enable the SSP clock */ in pxa2xx_spi_resume()
1511 status = clk_prepare_enable(ssp->clk); in pxa2xx_spi_resume()
1524 clk_disable_unprepare(drv_data->ssp->clk); in pxa2xx_spi_runtime_suspend()
1532 return clk_prepare_enable(drv_data->ssp->clk); in pxa2xx_spi_runtime_resume()
1541 MODULE_DESCRIPTION("PXA2xx SSP SPI Controller core driver");