Lines Matching +full:ssi +full:- +full:all

1 // SPDX-License-Identifier: GPL-2.0-only
2 /* OMAP SSI port driver.
4 * Copyright (C) 2010 Nokia Corporation. All rights reserved.
12 #include <linux/dma-mapping.h>
36 return gpiod_get_value(omap_port->wake_gpio); in ssi_wakein()
44 debugfs_remove_recursive(omap_port->dir); in ssi_debug_remove_port()
49 struct hsi_port *port = m->private; in ssi_port_regs_show()
51 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in ssi_port_regs_show() local
52 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_port_regs_show()
53 void __iomem *base = omap_ssi->sys; in ssi_port_regs_show()
56 pm_runtime_get_sync(omap_port->pdev); in ssi_port_regs_show()
57 if (omap_port->wake_irq > 0) in ssi_port_regs_show()
60 readl(base + SSI_WAKE_REG(port->num))); in ssi_port_regs_show()
62 readl(base + SSI_MPU_ENABLE_REG(port->num, 0))); in ssi_port_regs_show()
64 readl(base + SSI_MPU_STATUS_REG(port->num, 0))); in ssi_port_regs_show()
66 base = omap_port->sst_base; in ssi_port_regs_show()
86 for (ch = 0; ch < omap_port->channels; ch++) { in ssi_port_regs_show()
91 base = omap_port->ssr_base; in ssi_port_regs_show()
113 for (ch = 0; ch < omap_port->channels; ch++) { in ssi_port_regs_show()
117 pm_runtime_put_autosuspend(omap_port->pdev); in ssi_port_regs_show()
129 pm_runtime_get_sync(omap_port->pdev); in ssi_div_get()
130 *val = readl(omap_port->sst_base + SSI_SST_DIVISOR_REG); in ssi_div_get()
131 pm_runtime_put_autosuspend(omap_port->pdev); in ssi_div_get()
142 return -EINVAL; in ssi_div_set()
144 pm_runtime_get_sync(omap_port->pdev); in ssi_div_set()
145 writel(val, omap_port->sst_base + SSI_SST_DIVISOR_REG); in ssi_div_set()
146 omap_port->sst.divisor = val; in ssi_div_set()
147 pm_runtime_put_autosuspend(omap_port->pdev); in ssi_div_set()
157 struct hsi_port *port = to_hsi_port(omap_port->dev); in ssi_debug_add_port()
159 dir = debugfs_create_dir(dev_name(omap_port->dev), dir); in ssi_debug_add_port()
161 return -ENOMEM; in ssi_debug_add_port()
162 omap_port->dir = dir; in ssi_debug_add_port()
166 return -ENOMEM; in ssi_debug_add_port()
182 list_for_each_safe(head, tmp, &omap_port->errqueue) { in ssi_process_errqueue()
184 msg->complete(msg); in ssi_process_errqueue()
192 struct hsi_port *port = hsi_get_port(msg->cl); in ssi_claim_lch()
193 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in ssi_claim_lch() local
194 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_claim_lch()
198 if (!omap_ssi->gdd_trn[lch].msg) { in ssi_claim_lch()
199 omap_ssi->gdd_trn[lch].msg = msg; in ssi_claim_lch()
200 omap_ssi->gdd_trn[lch].sg = msg->sgt.sgl; in ssi_claim_lch()
204 return -EBUSY; in ssi_claim_lch()
209 struct hsi_port *port = hsi_get_port(msg->cl); in ssi_start_dma()
211 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in ssi_start_dma() local
212 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_start_dma()
213 void __iomem *gdd = omap_ssi->gdd; in ssi_start_dma()
222 pm_runtime_get(omap_port->pdev); in ssi_start_dma()
224 if (!pm_runtime_active(omap_port->pdev)) { in ssi_start_dma()
225 dev_warn(&port->device, "ssi_start_dma called without runtime PM!\n"); in ssi_start_dma()
226 pm_runtime_put_autosuspend(omap_port->pdev); in ssi_start_dma()
227 return -EREMOTEIO; in ssi_start_dma()
230 if (msg->ttype == HSI_MSG_READ) { in ssi_start_dma()
231 err = dma_map_sg(&ssi->device, msg->sgt.sgl, msg->sgt.nents, in ssi_start_dma()
234 dev_dbg(&ssi->device, "DMA map SG failed !\n"); in ssi_start_dma()
235 pm_runtime_put_autosuspend(omap_port->pdev); in ssi_start_dma()
236 return -EIO; in ssi_start_dma()
241 ccr = msg->channel + 0x10 + (port->num * 8); /* Sync */ in ssi_start_dma()
244 s_addr = omap_port->ssr_dma + in ssi_start_dma()
245 SSI_SSR_BUFFER_CH_REG(msg->channel); in ssi_start_dma()
246 d_addr = sg_dma_address(msg->sgt.sgl); in ssi_start_dma()
248 err = dma_map_sg(&ssi->device, msg->sgt.sgl, msg->sgt.nents, in ssi_start_dma()
251 dev_dbg(&ssi->device, "DMA map SG failed !\n"); in ssi_start_dma()
252 pm_runtime_put_autosuspend(omap_port->pdev); in ssi_start_dma()
253 return -EIO; in ssi_start_dma()
258 ccr = (msg->channel + 1 + (port->num * 8)) & 0xf; /* Sync */ in ssi_start_dma()
261 s_addr = sg_dma_address(msg->sgt.sgl); in ssi_start_dma()
262 d_addr = omap_port->sst_dma + in ssi_start_dma()
263 SSI_SST_BUFFER_CH_REG(msg->channel); in ssi_start_dma()
265 dev_dbg(&ssi->device, "lch %d cdsp %08x ccr %04x s_addr %08x d_addr %08x\n", in ssi_start_dma()
272 writew_relaxed(SSI_BYTES_TO_FRAMES(msg->sgt.sgl->length), in ssi_start_dma()
275 spin_lock_bh(&omap_ssi->lock); in ssi_start_dma()
276 tmp = readl(omap_ssi->sys + SSI_GDD_MPU_IRQ_ENABLE_REG); in ssi_start_dma()
278 writel_relaxed(tmp, omap_ssi->sys + SSI_GDD_MPU_IRQ_ENABLE_REG); in ssi_start_dma()
279 spin_unlock_bh(&omap_ssi->lock); in ssi_start_dma()
281 msg->status = HSI_STATUS_PROCEEDING; in ssi_start_dma()
288 struct hsi_port *port = hsi_get_port(msg->cl); in ssi_start_pio()
290 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in ssi_start_pio() local
291 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_start_pio()
294 pm_runtime_get(omap_port->pdev); in ssi_start_pio()
296 if (!pm_runtime_active(omap_port->pdev)) { in ssi_start_pio()
297 dev_warn(&port->device, "ssi_start_pio called without runtime PM!\n"); in ssi_start_pio()
298 pm_runtime_put_autosuspend(omap_port->pdev); in ssi_start_pio()
299 return -EREMOTEIO; in ssi_start_pio()
302 if (msg->ttype == HSI_MSG_WRITE) { in ssi_start_pio()
303 val = SSI_DATAACCEPT(msg->channel); in ssi_start_pio()
305 pm_runtime_get(omap_port->pdev); in ssi_start_pio()
307 val = SSI_DATAAVAILABLE(msg->channel) | SSI_ERROROCCURED; in ssi_start_pio()
309 dev_dbg(&port->device, "Single %s transfer\n", in ssi_start_pio()
310 msg->ttype ? "write" : "read"); in ssi_start_pio()
311 val |= readl(omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_start_pio()
312 writel(val, omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_start_pio()
313 pm_runtime_put_autosuspend(omap_port->pdev); in ssi_start_pio()
314 msg->actual_len = 0; in ssi_start_pio()
315 msg->status = HSI_STATUS_PROCEEDING; in ssi_start_pio()
323 int lch = -1; in ssi_start_transfer()
328 if (msg->status != HSI_STATUS_QUEUED) in ssi_start_transfer()
330 if ((msg->sgt.nents) && (msg->sgt.sgl->length > sizeof(u32))) in ssi_start_transfer()
340 struct hsi_port *port = hsi_get_port(msg->cl); in ssi_async_break()
342 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in ssi_async_break() local
343 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_async_break()
347 pm_runtime_get_sync(omap_port->pdev); in ssi_async_break()
348 if (msg->ttype == HSI_MSG_WRITE) { in ssi_async_break()
349 if (omap_port->sst.mode != SSI_MODE_FRAME) { in ssi_async_break()
350 err = -EINVAL; in ssi_async_break()
353 writel(1, omap_port->sst_base + SSI_SST_BREAK_REG); in ssi_async_break()
354 msg->status = HSI_STATUS_COMPLETED; in ssi_async_break()
355 msg->complete(msg); in ssi_async_break()
357 if (omap_port->ssr.mode != SSI_MODE_FRAME) { in ssi_async_break()
358 err = -EINVAL; in ssi_async_break()
361 spin_lock_bh(&omap_port->lock); in ssi_async_break()
362 tmp = readl(omap_ssi->sys + in ssi_async_break()
363 SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_async_break()
365 omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_async_break()
366 msg->status = HSI_STATUS_PROCEEDING; in ssi_async_break()
367 list_add_tail(&msg->link, &omap_port->brkqueue); in ssi_async_break()
368 spin_unlock_bh(&omap_port->lock); in ssi_async_break()
371 pm_runtime_mark_last_busy(omap_port->pdev); in ssi_async_break()
372 pm_runtime_put_autosuspend(omap_port->pdev); in ssi_async_break()
379 struct hsi_port *port = hsi_get_port(msg->cl); in ssi_async()
386 if (msg->sgt.nents > 1) in ssi_async()
387 return -ENOSYS; /* TODO: Add sg support */ in ssi_async()
389 if (msg->break_frame) in ssi_async()
392 if (msg->ttype) { in ssi_async()
393 BUG_ON(msg->channel >= omap_port->sst.channels); in ssi_async()
394 queue = &omap_port->txqueue[msg->channel]; in ssi_async()
396 BUG_ON(msg->channel >= omap_port->ssr.channels); in ssi_async()
397 queue = &omap_port->rxqueue[msg->channel]; in ssi_async()
399 msg->status = HSI_STATUS_QUEUED; in ssi_async()
401 pm_runtime_get_sync(omap_port->pdev); in ssi_async()
402 spin_lock_bh(&omap_port->lock); in ssi_async()
403 list_add_tail(&msg->link, queue); in ssi_async()
406 list_del(&msg->link); in ssi_async()
407 msg->status = HSI_STATUS_ERROR; in ssi_async()
409 spin_unlock_bh(&omap_port->lock); in ssi_async()
410 pm_runtime_mark_last_busy(omap_port->pdev); in ssi_async()
411 pm_runtime_put_autosuspend(omap_port->pdev); in ssi_async()
412 dev_dbg(&port->device, "msg status %d ttype %d ch %d\n", in ssi_async()
413 msg->status, msg->ttype, msg->channel); in ssi_async()
418 static u32 ssi_calculate_div(struct hsi_controller *ssi) in ssi_calculate_div() argument
420 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_calculate_div()
421 u32 tx_fckrate = (u32) omap_ssi->fck_rate; in ssi_calculate_div()
423 /* / 2 : SSI TX clock is always half of the SSI functional clock */ in ssi_calculate_div()
425 /* Round down when tx_fckrate % omap_ssi->max_speed == 0 */ in ssi_calculate_div()
426 tx_fckrate--; in ssi_calculate_div()
427 dev_dbg(&ssi->device, "TX div %d for fck_rate %lu Khz speed %d Kb/s\n", in ssi_calculate_div()
428 tx_fckrate / omap_ssi->max_speed, omap_ssi->fck_rate, in ssi_calculate_div()
429 omap_ssi->max_speed); in ssi_calculate_div()
431 return tx_fckrate / omap_ssi->max_speed; in ssi_calculate_div()
441 if ((cl) && (cl != msg->cl)) in ssi_flush_queue()
445 msg->channel, msg, msg->sgt.sgl->length, in ssi_flush_queue()
446 msg->ttype, msg->context); in ssi_flush_queue()
447 if (msg->destructor) in ssi_flush_queue()
448 msg->destructor(msg); in ssi_flush_queue()
456 struct hsi_port *port = to_hsi_port(cl->device.parent); in ssi_setup()
458 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in ssi_setup() local
459 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_setup()
460 void __iomem *sst = omap_port->sst_base; in ssi_setup()
461 void __iomem *ssr = omap_port->ssr_base; in ssi_setup()
466 pm_runtime_get_sync(omap_port->pdev); in ssi_setup()
467 spin_lock_bh(&omap_port->lock); in ssi_setup()
468 if (cl->tx_cfg.speed) in ssi_setup()
469 omap_ssi->max_speed = cl->tx_cfg.speed; in ssi_setup()
470 div = ssi_calculate_div(ssi); in ssi_setup()
472 dev_err(&cl->device, "Invalid TX speed %d Mb/s (div %d)\n", in ssi_setup()
473 cl->tx_cfg.speed, div); in ssi_setup()
474 err = -EINVAL; in ssi_setup()
485 writel_relaxed(cl->tx_cfg.num_hw_channels, sst + SSI_SST_CHANNELS_REG); in ssi_setup()
486 writel_relaxed(cl->tx_cfg.arb_mode, sst + SSI_SST_ARBMODE_REG); in ssi_setup()
487 writel_relaxed(cl->tx_cfg.mode, sst + SSI_SST_MODE_REG); in ssi_setup()
490 writel_relaxed(cl->rx_cfg.num_hw_channels, ssr + SSI_SSR_CHANNELS_REG); in ssi_setup()
493 if ((omap_port->ssr.mode == SSI_MODE_FRAME) && in ssi_setup()
494 (cl->rx_cfg.mode != SSI_MODE_FRAME)) in ssi_setup()
495 ssi_flush_queue(&omap_port->brkqueue, cl); in ssi_setup()
496 writel_relaxed(cl->rx_cfg.mode, ssr + SSI_SSR_MODE_REG); in ssi_setup()
497 omap_port->channels = max(cl->rx_cfg.num_hw_channels, in ssi_setup()
498 cl->tx_cfg.num_hw_channels); in ssi_setup()
501 omap_port->sst.divisor = div; in ssi_setup()
502 omap_port->sst.frame_size = 31; in ssi_setup()
503 omap_port->sst.channels = cl->tx_cfg.num_hw_channels; in ssi_setup()
504 omap_port->sst.arb_mode = cl->tx_cfg.arb_mode; in ssi_setup()
505 omap_port->sst.mode = cl->tx_cfg.mode; in ssi_setup()
507 omap_port->ssr.frame_size = 31; in ssi_setup()
508 omap_port->ssr.timeout = 0; in ssi_setup()
509 omap_port->ssr.channels = cl->rx_cfg.num_hw_channels; in ssi_setup()
510 omap_port->ssr.mode = cl->rx_cfg.mode; in ssi_setup()
512 spin_unlock_bh(&omap_port->lock); in ssi_setup()
513 pm_runtime_mark_last_busy(omap_port->pdev); in ssi_setup()
514 pm_runtime_put_autosuspend(omap_port->pdev); in ssi_setup()
523 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in ssi_flush() local
524 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_flush()
526 void __iomem *sst = omap_port->sst_base; in ssi_flush()
527 void __iomem *ssr = omap_port->ssr_base; in ssi_flush()
531 pm_runtime_get_sync(omap_port->pdev); in ssi_flush()
532 spin_lock_bh(&omap_port->lock); in ssi_flush()
534 /* stop all ssi communication */ in ssi_flush()
535 pinctrl_pm_select_idle_state(omap_port->pdev); in ssi_flush()
538 /* Stop all DMA transfers */ in ssi_flush()
540 msg = omap_ssi->gdd_trn[i].msg; in ssi_flush()
541 if (!msg || (port != hsi_get_port(msg->cl))) in ssi_flush()
543 writew_relaxed(0, omap_ssi->gdd + SSI_GDD_CCR_REG(i)); in ssi_flush()
544 if (msg->ttype == HSI_MSG_READ) in ssi_flush()
545 pm_runtime_put_autosuspend(omap_port->pdev); in ssi_flush()
546 omap_ssi->gdd_trn[i].msg = NULL; in ssi_flush()
548 /* Flush all SST buffers */ in ssi_flush()
551 /* Flush all SSR buffers */ in ssi_flush()
554 /* Flush all errors */ in ssi_flush()
560 writel_relaxed(0, omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_flush()
562 omap_ssi->sys + SSI_MPU_STATUS_REG(port->num, 0)); in ssi_flush()
563 writel_relaxed(0, omap_ssi->sys + SSI_GDD_MPU_IRQ_ENABLE_REG); in ssi_flush()
564 writel(0xff, omap_ssi->sys + SSI_GDD_MPU_IRQ_STATUS_REG); in ssi_flush()
565 /* Dequeue all pending requests */ in ssi_flush()
566 for (i = 0; i < omap_port->channels; i++) { in ssi_flush()
568 if (!list_empty(&omap_port->txqueue[i])) in ssi_flush()
569 pm_runtime_put_autosuspend(omap_port->pdev); in ssi_flush()
570 ssi_flush_queue(&omap_port->txqueue[i], NULL); in ssi_flush()
571 ssi_flush_queue(&omap_port->rxqueue[i], NULL); in ssi_flush()
573 ssi_flush_queue(&omap_port->brkqueue, NULL); in ssi_flush()
575 /* Resume SSI communication */ in ssi_flush()
576 pinctrl_pm_select_default_state(omap_port->pdev); in ssi_flush()
578 spin_unlock_bh(&omap_port->lock); in ssi_flush()
579 pm_runtime_mark_last_busy(omap_port->pdev); in ssi_flush()
580 pm_runtime_put_autosuspend(omap_port->pdev); in ssi_flush()
589 struct hsi_port *port = to_hsi_port(omap_port->dev); in start_tx_work()
590 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in start_tx_work() local
591 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in start_tx_work()
593 pm_runtime_get_sync(omap_port->pdev); /* Grab clocks */ in start_tx_work()
594 writel(SSI_WAKE(0), omap_ssi->sys + SSI_SET_WAKE_REG(port->num)); in start_tx_work()
602 dev_dbg(&port->device, "Wake out high %d\n", omap_port->wk_refcount); in ssi_start_tx()
604 spin_lock_bh(&omap_port->wk_lock); in ssi_start_tx()
605 if (omap_port->wk_refcount++) { in ssi_start_tx()
606 spin_unlock_bh(&omap_port->wk_lock); in ssi_start_tx()
609 spin_unlock_bh(&omap_port->wk_lock); in ssi_start_tx()
611 schedule_work(&omap_port->work); in ssi_start_tx()
620 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in ssi_stop_tx() local
621 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_stop_tx()
623 dev_dbg(&port->device, "Wake out low %d\n", omap_port->wk_refcount); in ssi_stop_tx()
625 spin_lock_bh(&omap_port->wk_lock); in ssi_stop_tx()
626 BUG_ON(!omap_port->wk_refcount); in ssi_stop_tx()
627 if (--omap_port->wk_refcount) { in ssi_stop_tx()
628 spin_unlock_bh(&omap_port->wk_lock); in ssi_stop_tx()
631 writel(SSI_WAKE(0), omap_ssi->sys + SSI_CLEAR_WAKE_REG(port->num)); in ssi_stop_tx()
632 spin_unlock_bh(&omap_port->wk_lock); in ssi_stop_tx()
634 pm_runtime_mark_last_busy(omap_port->pdev); in ssi_stop_tx()
635 pm_runtime_put_autosuspend(omap_port->pdev); /* Release clocks */ in ssi_stop_tx()
645 int err = -1; in ssi_transfer()
647 pm_runtime_get(omap_port->pdev); in ssi_transfer()
648 spin_lock_bh(&omap_port->lock); in ssi_transfer()
653 msg->status = HSI_STATUS_ERROR; in ssi_transfer()
654 msg->actual_len = 0; in ssi_transfer()
655 list_del(&msg->link); in ssi_transfer()
656 spin_unlock_bh(&omap_port->lock); in ssi_transfer()
657 msg->complete(msg); in ssi_transfer()
658 spin_lock_bh(&omap_port->lock); in ssi_transfer()
661 spin_unlock_bh(&omap_port->lock); in ssi_transfer()
662 pm_runtime_mark_last_busy(omap_port->pdev); in ssi_transfer()
663 pm_runtime_put_autosuspend(omap_port->pdev); in ssi_transfer()
670 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in ssi_cleanup_queues() local
671 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_cleanup_queues()
679 ssi_flush_queue(&omap_port->brkqueue, cl); in ssi_cleanup_queues()
680 if (list_empty(&omap_port->brkqueue)) in ssi_cleanup_queues()
683 for (i = 0; i < omap_port->channels; i++) { in ssi_cleanup_queues()
684 if (list_empty(&omap_port->txqueue[i])) in ssi_cleanup_queues()
686 msg = list_first_entry(&omap_port->txqueue[i], struct hsi_msg, in ssi_cleanup_queues()
688 if ((msg->cl == cl) && (msg->status == HSI_STATUS_PROCEEDING)) { in ssi_cleanup_queues()
692 pm_runtime_mark_last_busy(omap_port->pdev); in ssi_cleanup_queues()
693 pm_runtime_put_autosuspend(omap_port->pdev); in ssi_cleanup_queues()
695 ssi_flush_queue(&omap_port->txqueue[i], cl); in ssi_cleanup_queues()
697 for (i = 0; i < omap_port->channels; i++) { in ssi_cleanup_queues()
698 if (list_empty(&omap_port->rxqueue[i])) in ssi_cleanup_queues()
700 msg = list_first_entry(&omap_port->rxqueue[i], struct hsi_msg, in ssi_cleanup_queues()
702 if ((msg->cl == cl) && (msg->status == HSI_STATUS_PROCEEDING)) { in ssi_cleanup_queues()
706 ssi_flush_queue(&omap_port->rxqueue[i], cl); in ssi_cleanup_queues()
708 if (!list_empty(&omap_port->rxqueue[i])) in ssi_cleanup_queues()
712 tmp = readl(omap_port->sst_base + SSI_SST_BUFSTATE_REG); in ssi_cleanup_queues()
714 writel_relaxed(tmp, omap_port->sst_base + SSI_SST_BUFSTATE_REG); in ssi_cleanup_queues()
716 tmp = readl(omap_port->ssr_base + SSI_SSR_BUFSTATE_REG); in ssi_cleanup_queues()
718 writel_relaxed(tmp, omap_port->ssr_base + SSI_SSR_BUFSTATE_REG); in ssi_cleanup_queues()
720 tmp = readl(omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_cleanup_queues()
722 writel_relaxed(tmp, omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_cleanup_queues()
723 writel_relaxed(status, omap_ssi->sys + in ssi_cleanup_queues()
724 SSI_MPU_STATUS_REG(port->num, 0)); in ssi_cleanup_queues()
727 static void ssi_cleanup_gdd(struct hsi_controller *ssi, struct hsi_client *cl) in ssi_cleanup_gdd() argument
729 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_cleanup_gdd()
738 msg = omap_ssi->gdd_trn[i].msg; in ssi_cleanup_gdd()
739 if ((!msg) || (msg->cl != cl)) in ssi_cleanup_gdd()
741 writew_relaxed(0, omap_ssi->gdd + SSI_GDD_CCR_REG(i)); in ssi_cleanup_gdd()
747 if (msg->ttype == HSI_MSG_READ) { in ssi_cleanup_gdd()
748 pm_runtime_mark_last_busy(omap_port->pdev); in ssi_cleanup_gdd()
749 pm_runtime_put_autosuspend(omap_port->pdev); in ssi_cleanup_gdd()
751 omap_ssi->gdd_trn[i].msg = NULL; in ssi_cleanup_gdd()
753 tmp = readl_relaxed(omap_ssi->sys + SSI_GDD_MPU_IRQ_ENABLE_REG); in ssi_cleanup_gdd()
755 writel_relaxed(tmp, omap_ssi->sys + SSI_GDD_MPU_IRQ_ENABLE_REG); in ssi_cleanup_gdd()
756 writel(val, omap_ssi->sys + SSI_GDD_MPU_IRQ_STATUS_REG); in ssi_cleanup_gdd()
761 writel(mode, omap_port->sst_base + SSI_SST_MODE_REG); in ssi_set_port_mode()
762 writel(mode, omap_port->ssr_base + SSI_SSR_MODE_REG); in ssi_set_port_mode()
764 mode = readl(omap_port->ssr_base + SSI_SSR_MODE_REG); in ssi_set_port_mode()
773 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in ssi_release() local
775 pm_runtime_get_sync(omap_port->pdev); in ssi_release()
776 spin_lock_bh(&omap_port->lock); in ssi_release()
777 /* Stop all the pending DMA requests for that client */ in ssi_release()
778 ssi_cleanup_gdd(ssi, cl); in ssi_release()
779 /* Now cleanup all the queues */ in ssi_release()
782 if (port->claimed <= 1) { in ssi_release()
787 if (test_and_clear_bit(SSI_WAKE_EN, &omap_port->flags)) in ssi_release()
788 pm_runtime_put_sync(omap_port->pdev); in ssi_release()
789 pm_runtime_get(omap_port->pdev); in ssi_release()
790 /* Stop any SSI TX/RX without a client */ in ssi_release()
792 omap_port->sst.mode = SSI_MODE_SLEEP; in ssi_release()
793 omap_port->ssr.mode = SSI_MODE_SLEEP; in ssi_release()
794 pm_runtime_put(omap_port->pdev); in ssi_release()
795 WARN_ON(omap_port->wk_refcount != 0); in ssi_release()
797 spin_unlock_bh(&omap_port->lock); in ssi_release()
798 pm_runtime_put_sync(omap_port->pdev); in ssi_release()
808 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in ssi_error() local
809 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_error()
817 err = readl(omap_port->ssr_base + SSI_SSR_ERROR_REG); in ssi_error()
818 dev_err(&port->device, "SSI error: 0x%02x\n", err); in ssi_error()
820 dev_dbg(&port->device, "spurious SSI error ignored!\n"); in ssi_error()
823 spin_lock(&omap_ssi->lock); in ssi_error()
824 /* Cancel all GDD read transfers */ in ssi_error()
826 msg = omap_ssi->gdd_trn[i].msg; in ssi_error()
827 if ((msg) && (msg->ttype == HSI_MSG_READ)) { in ssi_error()
828 writew_relaxed(0, omap_ssi->gdd + SSI_GDD_CCR_REG(i)); in ssi_error()
830 omap_ssi->gdd_trn[i].msg = NULL; in ssi_error()
833 tmp = readl(omap_ssi->sys + SSI_GDD_MPU_IRQ_ENABLE_REG); in ssi_error()
835 writel_relaxed(tmp, omap_ssi->sys + SSI_GDD_MPU_IRQ_ENABLE_REG); in ssi_error()
836 spin_unlock(&omap_ssi->lock); in ssi_error()
837 /* Cancel all PIO read transfers */ in ssi_error()
838 spin_lock(&omap_port->lock); in ssi_error()
839 tmp = readl(omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_error()
840 tmp &= 0xfeff00ff; /* Disable error & all dataavailable interrupts */ in ssi_error()
841 writel_relaxed(tmp, omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_error()
843 writel_relaxed(err, omap_port->ssr_base + SSI_SSR_ERRORACK_REG); in ssi_error()
845 omap_ssi->sys + SSI_MPU_STATUS_REG(port->num, 0)); in ssi_error()
846 /* Signal the error all current pending read requests */ in ssi_error()
847 for (i = 0; i < omap_port->channels; i++) { in ssi_error()
848 if (list_empty(&omap_port->rxqueue[i])) in ssi_error()
850 msg = list_first_entry(&omap_port->rxqueue[i], struct hsi_msg, in ssi_error()
852 list_del(&msg->link); in ssi_error()
853 msg->status = HSI_STATUS_ERROR; in ssi_error()
854 spin_unlock(&omap_port->lock); in ssi_error()
855 msg->complete(msg); in ssi_error()
857 ssi_transfer(omap_port, &omap_port->rxqueue[i]); in ssi_error()
858 spin_lock(&omap_port->lock); in ssi_error()
860 spin_unlock(&omap_port->lock); in ssi_error()
866 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in ssi_break_complete() local
867 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_break_complete()
872 dev_dbg(&port->device, "HWBREAK received\n"); in ssi_break_complete()
874 spin_lock(&omap_port->lock); in ssi_break_complete()
875 val = readl(omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_break_complete()
877 writel_relaxed(val, omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_break_complete()
878 writel_relaxed(0, omap_port->ssr_base + SSI_SSR_BREAK_REG); in ssi_break_complete()
880 omap_ssi->sys + SSI_MPU_STATUS_REG(port->num, 0)); in ssi_break_complete()
881 spin_unlock(&omap_port->lock); in ssi_break_complete()
883 list_for_each_entry_safe(msg, tmp, &omap_port->brkqueue, link) { in ssi_break_complete()
884 msg->status = HSI_STATUS_COMPLETED; in ssi_break_complete()
885 spin_lock(&omap_port->lock); in ssi_break_complete()
886 list_del(&msg->link); in ssi_break_complete()
887 spin_unlock(&omap_port->lock); in ssi_break_complete()
888 msg->complete(msg); in ssi_break_complete()
895 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in ssi_pio_complete() local
896 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_pio_complete()
903 spin_lock_bh(&omap_port->lock); in ssi_pio_complete()
905 if ((!msg->sgt.nents) || (!msg->sgt.sgl->length)) { in ssi_pio_complete()
906 msg->actual_len = 0; in ssi_pio_complete()
907 msg->status = HSI_STATUS_PENDING; in ssi_pio_complete()
909 if (msg->ttype == HSI_MSG_WRITE) in ssi_pio_complete()
910 val = SSI_DATAACCEPT(msg->channel); in ssi_pio_complete()
912 val = SSI_DATAAVAILABLE(msg->channel); in ssi_pio_complete()
913 if (msg->status == HSI_STATUS_PROCEEDING) { in ssi_pio_complete()
914 buf = sg_virt(msg->sgt.sgl) + msg->actual_len; in ssi_pio_complete()
915 if (msg->ttype == HSI_MSG_WRITE) in ssi_pio_complete()
916 writel(*buf, omap_port->sst_base + in ssi_pio_complete()
917 SSI_SST_BUFFER_CH_REG(msg->channel)); in ssi_pio_complete()
919 *buf = readl(omap_port->ssr_base + in ssi_pio_complete()
920 SSI_SSR_BUFFER_CH_REG(msg->channel)); in ssi_pio_complete()
921 dev_dbg(&port->device, "ch %d ttype %d 0x%08x\n", msg->channel, in ssi_pio_complete()
922 msg->ttype, *buf); in ssi_pio_complete()
923 msg->actual_len += sizeof(*buf); in ssi_pio_complete()
924 if (msg->actual_len >= msg->sgt.sgl->length) in ssi_pio_complete()
925 msg->status = HSI_STATUS_COMPLETED; in ssi_pio_complete()
930 if ((msg->status == HSI_STATUS_PROCEEDING) || in ssi_pio_complete()
931 ((msg->status == HSI_STATUS_COMPLETED) && in ssi_pio_complete()
932 (msg->ttype == HSI_MSG_WRITE))) { in ssi_pio_complete()
933 writel(val, omap_ssi->sys + in ssi_pio_complete()
934 SSI_MPU_STATUS_REG(port->num, 0)); in ssi_pio_complete()
935 spin_unlock_bh(&omap_port->lock); in ssi_pio_complete()
942 reg = readl(omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_pio_complete()
943 if (msg->ttype == HSI_MSG_WRITE) { in ssi_pio_complete()
945 pm_runtime_mark_last_busy(omap_port->pdev); in ssi_pio_complete()
946 pm_runtime_put_autosuspend(omap_port->pdev); in ssi_pio_complete()
949 writel_relaxed(reg, omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_pio_complete()
950 writel_relaxed(val, omap_ssi->sys + SSI_MPU_STATUS_REG(port->num, 0)); in ssi_pio_complete()
951 list_del(&msg->link); in ssi_pio_complete()
952 spin_unlock_bh(&omap_port->lock); in ssi_pio_complete()
953 msg->complete(msg); in ssi_pio_complete()
960 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in ssi_pio_thread() local
962 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_pio_thread()
963 void __iomem *sys = omap_ssi->sys; in ssi_pio_thread()
967 pm_runtime_get_sync(omap_port->pdev); in ssi_pio_thread()
970 status_reg = readl(sys + SSI_MPU_STATUS_REG(port->num, 0)); in ssi_pio_thread()
971 status_reg &= readl(sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_pio_thread()
973 for (ch = 0; ch < omap_port->channels; ch++) { in ssi_pio_thread()
975 ssi_pio_complete(port, &omap_port->txqueue[ch]); in ssi_pio_thread()
977 ssi_pio_complete(port, &omap_port->rxqueue[ch]); in ssi_pio_thread()
984 status_reg = readl(sys + SSI_MPU_STATUS_REG(port->num, 0)); in ssi_pio_thread()
985 status_reg &= readl(sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_pio_thread()
990 pm_runtime_mark_last_busy(omap_port->pdev); in ssi_pio_thread()
991 pm_runtime_put_autosuspend(omap_port->pdev); in ssi_pio_thread()
999 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in ssi_wake_thread() local
1001 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_wake_thread()
1005 * We can have a quick High-Low-High transition in the line. in ssi_wake_thread()
1011 if (!test_and_set_bit(SSI_WAKE_EN, &omap_port->flags)) in ssi_wake_thread()
1012 pm_runtime_get_sync(omap_port->pdev); in ssi_wake_thread()
1013 dev_dbg(&ssi->device, "Wake in high\n"); in ssi_wake_thread()
1014 if (omap_port->wktest) { /* FIXME: HACK ! To be removed */ in ssi_wake_thread()
1016 omap_ssi->sys + SSI_SET_WAKE_REG(port->num)); in ssi_wake_thread()
1020 dev_dbg(&ssi->device, "Wake in low\n"); in ssi_wake_thread()
1021 if (omap_port->wktest) { /* FIXME: HACK ! To be removed */ in ssi_wake_thread()
1023 omap_ssi->sys + SSI_CLEAR_WAKE_REG(port->num)); in ssi_wake_thread()
1026 if (test_and_clear_bit(SSI_WAKE_EN, &omap_port->flags)) { in ssi_wake_thread()
1027 pm_runtime_mark_last_busy(omap_port->pdev); in ssi_wake_thread()
1028 pm_runtime_put_autosuspend(omap_port->pdev); in ssi_wake_thread()
1043 omap_port->irq = err; in ssi_port_irq()
1044 err = devm_request_threaded_irq(&port->device, omap_port->irq, NULL, in ssi_port_irq()
1045 ssi_pio_thread, IRQF_ONESHOT, "SSI PORT", port); in ssi_port_irq()
1047 dev_err(&port->device, "Request IRQ %d failed (%d)\n", in ssi_port_irq()
1048 omap_port->irq, err); in ssi_port_irq()
1058 if (!omap_port->wake_gpio) { in ssi_wake_irq()
1059 omap_port->wake_irq = -1; in ssi_wake_irq()
1063 cawake_irq = gpiod_to_irq(omap_port->wake_gpio); in ssi_wake_irq()
1064 omap_port->wake_irq = cawake_irq; in ssi_wake_irq()
1066 err = devm_request_threaded_irq(&port->device, cawake_irq, NULL, in ssi_wake_irq()
1069 "SSI cawake", port); in ssi_wake_irq()
1071 dev_err(&port->device, "Request Wake in IRQ %d failed %d\n", in ssi_wake_irq()
1075 dev_err(&port->device, "Enable wake on the wakeline in irq %d failed %d\n", in ssi_wake_irq()
1086 INIT_LIST_HEAD(&omap_port->txqueue[ch]); in ssi_queues_init()
1087 INIT_LIST_HEAD(&omap_port->rxqueue[ch]); in ssi_queues_init()
1089 INIT_LIST_HEAD(&omap_port->brkqueue); in ssi_queues_init()
1102 dev_err(&pd->dev, "IO memory region missing (%s)\n", name); in ssi_port_get_iomem()
1103 return -ENXIO; in ssi_port_get_iomem()
1105 ioarea = devm_request_mem_region(&port->device, mem->start, in ssi_port_get_iomem()
1106 resource_size(mem), dev_name(&pd->dev)); in ssi_port_get_iomem()
1108 dev_err(&pd->dev, "%s IO memory region request failed\n", in ssi_port_get_iomem()
1109 mem->name); in ssi_port_get_iomem()
1110 return -ENXIO; in ssi_port_get_iomem()
1112 base = devm_ioremap(&port->device, mem->start, resource_size(mem)); in ssi_port_get_iomem()
1114 dev_err(&pd->dev, "%s IO remap failed\n", mem->name); in ssi_port_get_iomem()
1115 return -ENXIO; in ssi_port_get_iomem()
1120 *phy = mem->start; in ssi_port_get_iomem()
1127 struct device_node *np = pd->dev.of_node; in ssi_port_probe()
1130 struct hsi_controller *ssi = dev_get_drvdata(pd->dev.parent); in ssi_port_probe() local
1131 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_port_probe()
1136 dev_dbg(&pd->dev, "init ssi port...\n"); in ssi_port_probe()
1138 if (!ssi->port || !omap_ssi->port) { in ssi_port_probe()
1139 dev_err(&pd->dev, "ssi controller not initialized!\n"); in ssi_port_probe()
1140 err = -ENODEV; in ssi_port_probe()
1145 for (port_id = 0; port_id < ssi->num_ports && omap_ssi->port[port_id]; in ssi_port_probe()
1149 if (port_id >= ssi->num_ports) { in ssi_port_probe()
1150 dev_err(&pd->dev, "port id out of range!\n"); in ssi_port_probe()
1151 err = -ENODEV; in ssi_port_probe()
1155 port = ssi->port[port_id]; in ssi_port_probe()
1158 dev_err(&pd->dev, "missing device tree data\n"); in ssi_port_probe()
1159 err = -EINVAL; in ssi_port_probe()
1163 cawake_gpio = devm_gpiod_get(&pd->dev, "ti,ssi-cawake", GPIOD_IN); in ssi_port_probe()
1166 dev_err(&pd->dev, "couldn't get cawake gpio (err=%d)!\n", err); in ssi_port_probe()
1170 omap_port = devm_kzalloc(&port->device, sizeof(*omap_port), GFP_KERNEL); in ssi_port_probe()
1172 err = -ENOMEM; in ssi_port_probe()
1175 omap_port->wake_gpio = cawake_gpio; in ssi_port_probe()
1176 omap_port->pdev = &pd->dev; in ssi_port_probe()
1177 omap_port->port_id = port_id; in ssi_port_probe()
1179 INIT_DEFERRABLE_WORK(&omap_port->errqueue_work, ssi_process_errqueue); in ssi_port_probe()
1180 INIT_WORK(&omap_port->work, start_tx_work); in ssi_port_probe()
1183 port->async = ssi_async; in ssi_port_probe()
1184 port->setup = ssi_setup; in ssi_port_probe()
1185 port->flush = ssi_flush; in ssi_port_probe()
1186 port->start_tx = ssi_start_tx; in ssi_port_probe()
1187 port->stop_tx = ssi_stop_tx; in ssi_port_probe()
1188 port->release = ssi_release; in ssi_port_probe()
1190 omap_ssi->port[port_id] = omap_port; in ssi_port_probe()
1194 err = ssi_port_get_iomem(pd, "tx", &omap_port->sst_base, in ssi_port_probe()
1195 &omap_port->sst_dma); in ssi_port_probe()
1198 err = ssi_port_get_iomem(pd, "rx", &omap_port->ssr_base, in ssi_port_probe()
1199 &omap_port->ssr_dma); in ssi_port_probe()
1211 spin_lock_init(&omap_port->lock); in ssi_port_probe()
1212 spin_lock_init(&omap_port->wk_lock); in ssi_port_probe()
1213 omap_port->dev = &port->device; in ssi_port_probe()
1215 pm_runtime_use_autosuspend(omap_port->pdev); in ssi_port_probe()
1216 pm_runtime_set_autosuspend_delay(omap_port->pdev, 250); in ssi_port_probe()
1217 pm_runtime_enable(omap_port->pdev); in ssi_port_probe()
1220 err = ssi_debug_add_port(omap_port, omap_ssi->dir); in ssi_port_probe()
1222 pm_runtime_disable(omap_port->pdev); in ssi_port_probe()
1229 dev_info(&pd->dev, "ssi port %u successfully initialized\n", port_id); in ssi_port_probe()
1241 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in ssi_port_remove() local
1242 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_port_remove()
1248 cancel_delayed_work_sync(&omap_port->errqueue_work); in ssi_port_remove()
1252 port->async = hsi_dummy_msg; in ssi_port_remove()
1253 port->setup = hsi_dummy_cl; in ssi_port_remove()
1254 port->flush = hsi_dummy_cl; in ssi_port_remove()
1255 port->start_tx = hsi_dummy_cl; in ssi_port_remove()
1256 port->stop_tx = hsi_dummy_cl; in ssi_port_remove()
1257 port->release = hsi_dummy_cl; in ssi_port_remove()
1259 omap_ssi->port[omap_port->port_id] = NULL; in ssi_port_remove()
1262 pm_runtime_dont_use_autosuspend(&pd->dev); in ssi_port_remove()
1263 pm_runtime_disable(&pd->dev); in ssi_port_remove()
1270 writel_relaxed(omap_port->sst.divisor, in ssi_restore_divisor()
1271 omap_port->sst_base + SSI_SST_DIVISOR_REG); in ssi_restore_divisor()
1276 void omap_ssi_port_update_fclk(struct hsi_controller *ssi, in omap_ssi_port_update_fclk() argument
1280 u32 div = ssi_calculate_div(ssi); in omap_ssi_port_update_fclk()
1281 omap_port->sst.divisor = div; in omap_ssi_port_update_fclk()
1288 struct hsi_port *port = to_hsi_port(omap_port->dev); in ssi_save_port_ctx()
1289 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in ssi_save_port_ctx() local
1290 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_save_port_ctx()
1292 omap_port->sys_mpu_enable = readl(omap_ssi->sys + in ssi_save_port_ctx()
1293 SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_save_port_ctx()
1300 struct hsi_port *port = to_hsi_port(omap_port->dev); in ssi_restore_port_ctx()
1301 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in ssi_restore_port_ctx() local
1302 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_restore_port_ctx()
1305 writel_relaxed(omap_port->sys_mpu_enable, in ssi_restore_port_ctx()
1306 omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_restore_port_ctx()
1309 base = omap_port->sst_base; in ssi_restore_port_ctx()
1310 writel_relaxed(omap_port->sst.frame_size, base + SSI_SST_FRAMESIZE_REG); in ssi_restore_port_ctx()
1311 writel_relaxed(omap_port->sst.channels, base + SSI_SST_CHANNELS_REG); in ssi_restore_port_ctx()
1312 writel_relaxed(omap_port->sst.arb_mode, base + SSI_SST_ARBMODE_REG); in ssi_restore_port_ctx()
1315 base = omap_port->ssr_base; in ssi_restore_port_ctx()
1316 writel_relaxed(omap_port->ssr.frame_size, base + SSI_SSR_FRAMESIZE_REG); in ssi_restore_port_ctx()
1317 writel_relaxed(omap_port->ssr.channels, base + SSI_SSR_CHANNELS_REG); in ssi_restore_port_ctx()
1318 writel_relaxed(omap_port->ssr.timeout, base + SSI_SSR_TIMEOUT_REG); in ssi_restore_port_ctx()
1327 writel_relaxed(omap_port->sst.mode, in ssi_restore_port_mode()
1328 omap_port->sst_base + SSI_SST_MODE_REG); in ssi_restore_port_mode()
1329 writel_relaxed(omap_port->ssr.mode, in ssi_restore_port_mode()
1330 omap_port->ssr_base + SSI_SSR_MODE_REG); in ssi_restore_port_mode()
1332 mode = readl(omap_port->ssr_base + SSI_SSR_MODE_REG); in ssi_restore_port_mode()
1341 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in omap_ssi_port_runtime_suspend() local
1342 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in omap_ssi_port_runtime_suspend()
1347 if (omap_ssi->get_loss) in omap_ssi_port_runtime_suspend()
1348 omap_port->loss_count = in omap_ssi_port_runtime_suspend()
1349 omap_ssi->get_loss(ssi->device.parent); in omap_ssi_port_runtime_suspend()
1359 struct hsi_controller *ssi = to_hsi_controller(port->device.parent); in omap_ssi_port_runtime_resume() local
1360 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in omap_ssi_port_runtime_resume()
1364 if ((omap_ssi->get_loss) && (omap_port->loss_count == in omap_ssi_port_runtime_resume()
1365 omap_ssi->get_loss(ssi->device.parent))) in omap_ssi_port_runtime_resume()
1390 { .compatible = "ti,omap3-ssi-port", },