Lines Matching +full:imx +full:- +full:scu
1 // SPDX-License-Identifier: GPL-2.0+
5 * Implementation of the SCU IRQ functions using MU.
9 #include <dt-bindings/firmware/imx/rsrc.h>
10 #include <linux/firmware/imx/ipc.h>
11 #include <linux/firmware/imx/sci.h>
123 hdr->ver = IMX_SC_RPC_VERSION; in imx_scu_irq_get_status()
124 hdr->svc = IMX_SC_RPC_SVC_IRQ; in imx_scu_irq_get_status()
125 hdr->func = IMX_SC_IRQ_FUNC_STATUS; in imx_scu_irq_get_status()
126 hdr->size = 2; in imx_scu_irq_get_status()
149 return -EPROBE_DEFER; in imx_scu_irq_group_enable()
151 hdr->ver = IMX_SC_RPC_VERSION; in imx_scu_irq_group_enable()
152 hdr->svc = IMX_SC_RPC_SVC_IRQ; in imx_scu_irq_group_enable()
153 hdr->func = IMX_SC_IRQ_FUNC_ENABLE; in imx_scu_irq_group_enable()
154 hdr->size = 3; in imx_scu_irq_group_enable()
192 sprintf(buf, "Spurious SCU wakeup, group = %d, irq = 0x%x\n", in wakeup_source_show()
212 return -ENOMEM; in imx_scu_enable_general_irq_channel()
214 cl->dev = dev; in imx_scu_enable_general_irq_channel()
215 cl->rx_callback = imx_scu_irq_callback; in imx_scu_enable_general_irq_channel()
217 /* SCU general IRQ uses general interrupt channel 3 */ in imx_scu_enable_general_irq_channel()
228 if (!of_parse_phandle_with_args(dev->of_node, "mboxes", in imx_scu_enable_general_irq_channel()
229 "#mbox-cells", 0, &spec)) in imx_scu_enable_general_irq_channel()
241 ret = -ENOMEM; in imx_scu_enable_general_irq_channel()