1 // SPDX-License-Identifier: GPL-2.0
7 #include <linux/firmware/imx/ipc.h>
8 #include <linux/firmware/imx/s4.h>
9 #include <linux/interrupt.h>
11 #include <linux/iopoll.h>
12 #include <linux/kernel.h>
13 #include <linux/mailbox_controller.h>
14 #include <linux/module.h>
15 #include <linux/of_device.h>
16 #include <linux/pm_runtime.h>
17 #include <linux/slab.h>
19 #define IMX_MU_CHANS 16
20 /* TX0/RX0/RXDB[0-3] */
21 #define IMX_MU_SCU_CHANS 6
23 #define IMX_MU_S4_CHANS 2
24 #define IMX_MU_CHAN_NAME_SIZE 20
26 enum imx_mu_chan_type {
27 IMX_MU_TYPE_TX, /* Tx */
28 IMX_MU_TYPE_RX, /* Rx */
29 IMX_MU_TYPE_TXDB, /* Tx doorbell */
30 IMX_MU_TYPE_RXDB, /* Rx doorbell */
48 struct imx_sc_rpc_msg_max {
49 struct imx_sc_rpc_msg hdr;
53 struct imx_s4_rpc_msg_max {
54 struct imx_s4_rpc_msg hdr;
58 struct imx_mu_con_priv {
60 char irq_desc[IMX_MU_CHAN_NAME_SIZE];
61 enum imx_mu_chan_type type;
62 struct mbox_chan *chan;
63 struct tasklet_struct txdb_tasklet;
70 spinlock_t xcr_lock; /* control register lock */
72 struct mbox_controller mbox;
73 struct mbox_chan mbox_chans[IMX_MU_CHANS];
75 struct imx_mu_con_priv con_priv[IMX_MU_CHANS];
76 const struct imx_mu_dcfg *dcfg;
88 IMX_MU_V2_S4 = BIT(15),
92 int (*tx)(struct imx_mu_priv *priv, struct imx_mu_con_priv *cp, void *data);
93 int (*rx)(struct imx_mu_priv *priv, struct imx_mu_con_priv *cp);
94 void (*init)(struct imx_mu_priv *priv);
95 enum imx_mu_type type;
96 u32 xTR; /* Transmit Register0 */
97 u32 xRR; /* Receive Register0 */
98 u32 xSR[4]; /* Status Registers */
99 u32 xCR[4]; /* Control Registers */
102 #define IMX_MU_xSR_GIPn(type, x) (type & IMX_MU_V2 ? BIT(x) : BIT(28 + (3 - (x))))
103 #define IMX_MU_xSR_RFn(type, x) (type & IMX_MU_V2 ? BIT(x) : BIT(24 + (3 - (x))))
104 #define IMX_MU_xSR_TEn(type, x) (type & IMX_MU_V2 ? BIT(x) : BIT(20 + (3 - (x))))
106 /* General Purpose Interrupt Enable */
107 #define IMX_MU_xCR_GIEn(type, x) (type & IMX_MU_V2 ? BIT(x) : BIT(28 + (3 - (x))))
108 /* Receive Interrupt Enable */
109 #define IMX_MU_xCR_RIEn(type, x) (type & IMX_MU_V2 ? BIT(x) : BIT(24 + (3 - (x))))
110 /* Transmit Interrupt Enable */
111 #define IMX_MU_xCR_TIEn(type, x) (type & IMX_MU_V2 ? BIT(x) : BIT(20 + (3 - (x))))
112 /* General Purpose Interrupt Request */
113 #define IMX_MU_xCR_GIRn(type, x) (type & IMX_MU_V2 ? BIT(x) : BIT(16 + (3 - (x))))
116 static struct imx_mu_priv *to_imx_mu_priv(struct mbox_controller *mbox)
118 return container_of(mbox, struct imx_mu_priv, mbox);
121 static void imx_mu_write(struct imx_mu_priv *priv, u32 val, u32 offs)
123 iowrite32(val, priv->base + offs);
126 static u32 imx_mu_read(struct imx_mu_priv *priv, u32 offs)
128 return ioread32(priv->base + offs);
131 static u32 imx_mu_xcr_rmw(struct imx_mu_priv *priv, enum imx_mu_xcr type, u32 set, u32 clr)
136 spin_lock_irqsave(&priv->xcr_lock, flags);
137 val = imx_mu_read(priv, priv->dcfg->xCR[type]);
140 imx_mu_write(priv, val, priv->dcfg->xCR[type]);
141 spin_unlock_irqrestore(&priv->xcr_lock, flags);
146 static int imx_mu_generic_tx(struct imx_mu_priv *priv,
147 struct imx_mu_con_priv *cp,
154 imx_mu_write(priv, *arg, priv->dcfg->xTR + cp->idx * 4);
155 imx_mu_xcr_rmw(priv, IMX_MU_TCR, IMX_MU_xCR_TIEn(priv->dcfg->type, cp->idx), 0);
157 case IMX_MU_TYPE_TXDB:
158 imx_mu_xcr_rmw(priv, IMX_MU_GCR, IMX_MU_xCR_GIRn(priv->dcfg->type, cp->idx), 0);
159 tasklet_schedule(&cp->txdb_tasklet);
162 dev_warn_ratelimited(priv->dev, "Send data on wrong channel type: %d\n", cp->type);
169 static int imx_mu_generic_rx(struct imx_mu_priv *priv,
170 struct imx_mu_con_priv *cp)
174 dat = imx_mu_read(priv, priv->dcfg->xRR + (cp->idx) * 4);
175 mbox_chan_received_data(cp->chan, (void *)&dat);
180 static int imx_mu_specific_tx(struct imx_mu_priv *priv, struct imx_mu_con_priv *cp, void *data)
185 u32 size, max_size, num_tr;
187 if (priv->dcfg->type & IMX_MU_V2_S4) {
188 size = ((struct imx_s4_rpc_msg_max *)data)->hdr.size;
189 max_size = sizeof(struct imx_s4_rpc_msg_max);
192 size = ((struct imx_sc_rpc_msg_max *)data)->hdr.size;
193 max_size = sizeof(struct imx_sc_rpc_msg_max);
200 * msg->hdr.size specifies the number of u32 words while
201 * sizeof yields bytes.
204 if (size > max_size / 4) {
206 * The real message size can be different to
207 * struct imx_sc_rpc_msg_max/imx_s4_rpc_msg_max size
209 dev_err(priv->dev, "Maximal message size (%u bytes) exceeded on TX; got: %i bytes\n", max_size, size << 2);
213 for (i = 0; i < num_tr && i < size; i++)
214 imx_mu_write(priv, *arg++, priv->dcfg->xTR + (i % num_tr) * 4);
215 for (; i < size; i++) {
216 ret = readl_poll_timeout(priv->base + priv->dcfg->xSR[IMX_MU_TSR],
218 xsr & IMX_MU_xSR_TEn(priv->dcfg->type, i % num_tr),
221 dev_err(priv->dev, "Send data index: %d timeout\n", i);
224 imx_mu_write(priv, *arg++, priv->dcfg->xTR + (i % num_tr) * 4);
227 imx_mu_xcr_rmw(priv, IMX_MU_TCR, IMX_MU_xCR_TIEn(priv->dcfg->type, cp->idx), 0);
230 dev_warn_ratelimited(priv->dev, "Send data on wrong channel type: %d\n", cp->type);
237 static int imx_mu_specific_rx(struct imx_mu_priv *priv, struct imx_mu_con_priv *cp)
244 data = (u32 *)priv->msg;
246 imx_mu_xcr_rmw(priv, IMX_MU_RCR, 0, IMX_MU_xCR_RIEn(priv->dcfg->type, 0));
247 *data++ = imx_mu_read(priv, priv->dcfg->xRR);
249 if (priv->dcfg->type & IMX_MU_V2_S4) {
250 size = ((struct imx_s4_rpc_msg_max *)priv->msg)->hdr.size;
251 max_size = sizeof(struct imx_s4_rpc_msg_max);
253 size = ((struct imx_sc_rpc_msg_max *)priv->msg)->hdr.size;
254 max_size = sizeof(struct imx_sc_rpc_msg_max);
257 if (size > max_size / 4) {
258 dev_err(priv->dev, "Maximal message size (%u bytes) exceeded on RX; got: %i bytes\n", max_size, size << 2);
262 for (i = 1; i < size; i++) {
263 ret = readl_poll_timeout(priv->base + priv->dcfg->xSR[IMX_MU_RSR], xsr,
264 xsr & IMX_MU_xSR_RFn(priv->dcfg->type, i % 4), 0, 100);
266 dev_err(priv->dev, "timeout read idx %d\n", i);
269 *data++ = imx_mu_read(priv, priv->dcfg->xRR + (i % 4) * 4);
272 imx_mu_xcr_rmw(priv, IMX_MU_RCR, IMX_MU_xCR_RIEn(priv->dcfg->type, 0), 0);
273 mbox_chan_received_data(cp->chan, (void *)priv->msg);
278 static void imx_mu_txdb_tasklet(unsigned long data)
280 struct imx_mu_con_priv *cp = (struct imx_mu_con_priv *)data;
282 mbox_chan_txdone(cp->chan, 0);
285 static irqreturn_t imx_mu_isr(int irq, void *p)
287 struct mbox_chan *chan = p;
288 struct imx_mu_priv *priv = to_imx_mu_priv(chan->mbox);
289 struct imx_mu_con_priv *cp = chan->con_priv;
294 ctrl = imx_mu_read(priv, priv->dcfg->xCR[IMX_MU_TCR]);
295 val = imx_mu_read(priv, priv->dcfg->xSR[IMX_MU_TSR]);
296 val &= IMX_MU_xSR_TEn(priv->dcfg->type, cp->idx) &
297 (ctrl & IMX_MU_xCR_TIEn(priv->dcfg->type, cp->idx));
300 ctrl = imx_mu_read(priv, priv->dcfg->xCR[IMX_MU_RCR]);
301 val = imx_mu_read(priv, priv->dcfg->xSR[IMX_MU_RSR]);
302 val &= IMX_MU_xSR_RFn(priv->dcfg->type, cp->idx) &
303 (ctrl & IMX_MU_xCR_RIEn(priv->dcfg->type, cp->idx));
305 case IMX_MU_TYPE_RXDB:
306 ctrl = imx_mu_read(priv, priv->dcfg->xCR[IMX_MU_GIER]);
307 val = imx_mu_read(priv, priv->dcfg->xSR[IMX_MU_GSR]);
308 val &= IMX_MU_xSR_GIPn(priv->dcfg->type, cp->idx) &
309 (ctrl & IMX_MU_xCR_GIEn(priv->dcfg->type, cp->idx));
312 dev_warn_ratelimited(priv->dev, "Unhandled channel type %d\n",
320 if ((val == IMX_MU_xSR_TEn(priv->dcfg->type, cp->idx)) &&
321 (cp->type == IMX_MU_TYPE_TX)) {
322 imx_mu_xcr_rmw(priv, IMX_MU_TCR, 0, IMX_MU_xCR_TIEn(priv->dcfg->type, cp->idx));
323 mbox_chan_txdone(chan, 0);
324 } else if ((val == IMX_MU_xSR_RFn(priv->dcfg->type, cp->idx)) &&
325 (cp->type == IMX_MU_TYPE_RX)) {
326 priv->dcfg->rx(priv, cp);
327 } else if ((val == IMX_MU_xSR_GIPn(priv->dcfg->type, cp->idx)) &&
328 (cp->type == IMX_MU_TYPE_RXDB)) {
329 imx_mu_write(priv, IMX_MU_xSR_GIPn(priv->dcfg->type, cp->idx),
330 priv->dcfg->xSR[IMX_MU_GSR]);
331 mbox_chan_received_data(chan, NULL);
333 dev_warn_ratelimited(priv->dev, "Not handled interrupt\n");
340 static int imx_mu_send_data(struct mbox_chan *chan, void *data)
342 struct imx_mu_priv *priv = to_imx_mu_priv(chan->mbox);
343 struct imx_mu_con_priv *cp = chan->con_priv;
345 return priv->dcfg->tx(priv, cp, data);
348 static int imx_mu_startup(struct mbox_chan *chan)
350 struct imx_mu_priv *priv = to_imx_mu_priv(chan->mbox);
351 struct imx_mu_con_priv *cp = chan->con_priv;
352 unsigned long irq_flag = IRQF_SHARED;
355 pm_runtime_get_sync(priv->dev);
356 if (cp->type == IMX_MU_TYPE_TXDB) {
357 /* Tx doorbell don't have ACK support */
358 tasklet_init(&cp->txdb_tasklet, imx_mu_txdb_tasklet,
363 /* IPC MU should be with IRQF_NO_SUSPEND set */
364 if (!priv->dev->pm_domain)
365 irq_flag |= IRQF_NO_SUSPEND;
367 ret = request_irq(priv->irq, imx_mu_isr, irq_flag,
371 "Unable to acquire IRQ %d\n", priv->irq);
377 imx_mu_xcr_rmw(priv, IMX_MU_RCR, IMX_MU_xCR_RIEn(priv->dcfg->type, cp->idx), 0);
379 case IMX_MU_TYPE_RXDB:
380 imx_mu_xcr_rmw(priv, IMX_MU_GIER, IMX_MU_xCR_GIEn(priv->dcfg->type, cp->idx), 0);
389 static void imx_mu_shutdown(struct mbox_chan *chan)
391 struct imx_mu_priv *priv = to_imx_mu_priv(chan->mbox);
392 struct imx_mu_con_priv *cp = chan->con_priv;
394 if (cp->type == IMX_MU_TYPE_TXDB) {
395 tasklet_kill(&cp->txdb_tasklet);
396 pm_runtime_put_sync(priv->dev);
402 imx_mu_xcr_rmw(priv, IMX_MU_TCR, 0, IMX_MU_xCR_TIEn(priv->dcfg->type, cp->idx));
405 imx_mu_xcr_rmw(priv, IMX_MU_RCR, 0, IMX_MU_xCR_RIEn(priv->dcfg->type, cp->idx));
407 case IMX_MU_TYPE_RXDB:
408 imx_mu_xcr_rmw(priv, IMX_MU_GIER, 0, IMX_MU_xCR_GIEn(priv->dcfg->type, cp->idx));
414 free_irq(priv->irq, chan);
415 pm_runtime_put_sync(priv->dev);
418 static const struct mbox_chan_ops imx_mu_ops = {
419 .send_data = imx_mu_send_data,
420 .startup = imx_mu_startup,
421 .shutdown = imx_mu_shutdown,
424 static struct mbox_chan *imx_mu_specific_xlate(struct mbox_controller *mbox,
425 const struct of_phandle_args *sp)
429 if (sp->args_count != 2) {
430 dev_err(mbox->dev, "Invalid argument count %d\n", sp->args_count);
431 return ERR_PTR(-EINVAL);
434 type = sp->args[0]; /* channel type */
435 idx = sp->args[1]; /* index */
441 dev_err(mbox->dev, "Invalid chan idx: %d\n", idx);
444 case IMX_MU_TYPE_RXDB:
448 dev_err(mbox->dev, "Invalid chan type: %d\n", type);
449 return ERR_PTR(-EINVAL);
452 if (chan >= mbox->num_chans) {
453 dev_err(mbox->dev, "Not supported channel number: %d. (type: %d, idx: %d)\n", chan, type, idx);
454 return ERR_PTR(-EINVAL);
457 return &mbox->chans[chan];
460 static struct mbox_chan * imx_mu_xlate(struct mbox_controller *mbox,
461 const struct of_phandle_args *sp)
465 if (sp->args_count != 2) {
466 dev_err(mbox->dev, "Invalid argument count %d\n", sp->args_count);
467 return ERR_PTR(-EINVAL);
470 type = sp->args[0]; /* channel type */
471 idx = sp->args[1]; /* index */
472 chan = type * 4 + idx;
474 if (chan >= mbox->num_chans) {
475 dev_err(mbox->dev, "Not supported channel number: %d. (type: %d, idx: %d)\n", chan, type, idx);
476 return ERR_PTR(-EINVAL);
479 return &mbox->chans[chan];
482 static void imx_mu_init_generic(struct imx_mu_priv *priv)
486 for (i = 0; i < IMX_MU_CHANS; i++) {
487 struct imx_mu_con_priv *cp = &priv->con_priv[i];
491 cp->chan = &priv->mbox_chans[i];
492 priv->mbox_chans[i].con_priv = cp;
493 snprintf(cp->irq_desc, sizeof(cp->irq_desc),
494 "imx_mu_chan[%i-%i]", cp->type, cp->idx);
497 priv->mbox.num_chans = IMX_MU_CHANS;
498 priv->mbox.of_xlate = imx_mu_xlate;
503 /* Set default MU configuration */
504 for (i = 0; i < IMX_MU_xCR_MAX; i++)
505 imx_mu_write(priv, 0, priv->dcfg->xCR[i]);
508 static void imx_mu_init_specific(struct imx_mu_priv *priv)
511 int num_chans = priv->dcfg->type & IMX_MU_V2_S4 ? IMX_MU_S4_CHANS : IMX_MU_SCU_CHANS;
513 for (i = 0; i < num_chans; i++) {
514 struct imx_mu_con_priv *cp = &priv->con_priv[i];
516 cp->idx = i < 2 ? 0 : i - 2;
517 cp->type = i < 2 ? i : IMX_MU_TYPE_RXDB;
518 cp->chan = &priv->mbox_chans[i];
519 priv->mbox_chans[i].con_priv = cp;
520 snprintf(cp->irq_desc, sizeof(cp->irq_desc),
521 "imx_mu_chan[%i-%i]", cp->type, cp->idx);
524 priv->mbox.num_chans = num_chans;
525 priv->mbox.of_xlate = imx_mu_specific_xlate;
527 /* Set default MU configuration */
528 for (i = 0; i < IMX_MU_xCR_MAX; i++)
529 imx_mu_write(priv, 0, priv->dcfg->xCR[i]);
532 static int imx_mu_probe(struct platform_device *pdev)
534 struct device *dev = &pdev->dev;
535 struct device_node *np = dev->of_node;
536 struct imx_mu_priv *priv;
537 const struct imx_mu_dcfg *dcfg;
541 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
547 priv->base = devm_platform_ioremap_resource(pdev, 0);
548 if (IS_ERR(priv->base))
549 return PTR_ERR(priv->base);
551 priv->irq = platform_get_irq(pdev, 0);
555 dcfg = of_device_get_match_data(dev);
560 if (priv->dcfg->type & IMX_MU_V2_S4)
561 size = sizeof(struct imx_s4_rpc_msg_max);
563 size = sizeof(struct imx_sc_rpc_msg_max);
565 priv->msg = devm_kzalloc(dev, size, GFP_KERNEL);
566 if (IS_ERR(priv->msg))
567 return PTR_ERR(priv->msg);
569 priv->clk = devm_clk_get(dev, NULL);
570 if (IS_ERR(priv->clk)) {
571 if (PTR_ERR(priv->clk) != -ENOENT)
572 return PTR_ERR(priv->clk);
577 ret = clk_prepare_enable(priv->clk);
579 dev_err(dev, "Failed to enable clock\n");
583 priv->side_b = of_property_read_bool(np, "fsl,mu-side-b");
585 priv->dcfg->init(priv);
587 spin_lock_init(&priv->xcr_lock);
589 priv->mbox.dev = dev;
590 priv->mbox.ops = &imx_mu_ops;
591 priv->mbox.chans = priv->mbox_chans;
592 priv->mbox.txdone_irq = true;
594 platform_set_drvdata(pdev, priv);
596 ret = devm_mbox_controller_register(dev, &priv->mbox);
598 clk_disable_unprepare(priv->clk);
602 pm_runtime_enable(dev);
604 ret = pm_runtime_get_sync(dev);
606 pm_runtime_put_noidle(dev);
607 goto disable_runtime_pm;
610 ret = pm_runtime_put_sync(dev);
612 goto disable_runtime_pm;
614 clk_disable_unprepare(priv->clk);
619 pm_runtime_disable(dev);
620 clk_disable_unprepare(priv->clk);
624 static int imx_mu_remove(struct platform_device *pdev)
626 struct imx_mu_priv *priv = platform_get_drvdata(pdev);
628 pm_runtime_disable(priv->dev);
633 static const struct imx_mu_dcfg imx_mu_cfg_imx6sx = {
634 .tx = imx_mu_generic_tx,
635 .rx = imx_mu_generic_rx,
636 .init = imx_mu_init_generic,
639 .xSR = {0x20, 0x20, 0x20, 0x20},
640 .xCR = {0x24, 0x24, 0x24, 0x24},
643 static const struct imx_mu_dcfg imx_mu_cfg_imx7ulp = {
644 .tx = imx_mu_generic_tx,
645 .rx = imx_mu_generic_rx,
646 .init = imx_mu_init_generic,
649 .xSR = {0x60, 0x60, 0x60, 0x60},
650 .xCR = {0x64, 0x64, 0x64, 0x64},
653 static const struct imx_mu_dcfg imx_mu_cfg_imx8ulp = {
654 .tx = imx_mu_generic_tx,
655 .rx = imx_mu_generic_rx,
656 .init = imx_mu_init_generic,
660 .xSR = {0xC, 0x118, 0x124, 0x12C},
661 .xCR = {0x110, 0x114, 0x120, 0x128},
664 static const struct imx_mu_dcfg imx_mu_cfg_imx8ulp_s4 = {
665 .tx = imx_mu_specific_tx,
666 .rx = imx_mu_specific_rx,
667 .init = imx_mu_init_specific,
668 .type = IMX_MU_V2 | IMX_MU_V2_S4,
671 .xSR = {0xC, 0x118, 0x124, 0x12C},
672 .xCR = {0x110, 0x114, 0x120, 0x128},
675 static const struct imx_mu_dcfg imx_mu_cfg_imx8_scu = {
676 .tx = imx_mu_specific_tx,
677 .rx = imx_mu_specific_rx,
678 .init = imx_mu_init_specific,
681 .xSR = {0x20, 0x20, 0x20, 0x20},
682 .xCR = {0x24, 0x24, 0x24, 0x24},
685 static const struct of_device_id imx_mu_dt_ids[] = {
686 { .compatible = "fsl,imx7ulp-mu", .data = &imx_mu_cfg_imx7ulp },
687 { .compatible = "fsl,imx6sx-mu", .data = &imx_mu_cfg_imx6sx },
688 { .compatible = "fsl,imx8ulp-mu", .data = &imx_mu_cfg_imx8ulp },
689 { .compatible = "fsl,imx8ulp-mu-s4", .data = &imx_mu_cfg_imx8ulp_s4 },
690 { .compatible = "fsl,imx8-mu-scu", .data = &imx_mu_cfg_imx8_scu },
693 MODULE_DEVICE_TABLE(of, imx_mu_dt_ids);
695 static int __maybe_unused imx_mu_suspend_noirq(struct device *dev)
697 struct imx_mu_priv *priv = dev_get_drvdata(dev);
701 for (i = 0; i < IMX_MU_xCR_MAX; i++)
702 priv->xcr[i] = imx_mu_read(priv, priv->dcfg->xCR[i]);
708 static int __maybe_unused imx_mu_resume_noirq(struct device *dev)
710 struct imx_mu_priv *priv = dev_get_drvdata(dev);
714 * ONLY restore MU when context lost, the TIE could
715 * be set during noirq resume as there is MU data
716 * communication going on, and restore the saved
717 * value will overwrite the TIE and cause MU data
718 * send failed, may lead to system freeze. This issue
719 * is observed by testing freeze mode suspend.
721 if (!imx_mu_read(priv, priv->dcfg->xCR[0]) && !priv->clk) {
722 for (i = 0; i < IMX_MU_xCR_MAX; i++)
723 imx_mu_write(priv, priv->xcr[i], priv->dcfg->xCR[i]);
729 static int __maybe_unused imx_mu_runtime_suspend(struct device *dev)
731 struct imx_mu_priv *priv = dev_get_drvdata(dev);
733 clk_disable_unprepare(priv->clk);
738 static int __maybe_unused imx_mu_runtime_resume(struct device *dev)
740 struct imx_mu_priv *priv = dev_get_drvdata(dev);
743 ret = clk_prepare_enable(priv->clk);
745 dev_err(dev, "failed to enable clock\n");
750 static const struct dev_pm_ops imx_mu_pm_ops = {
751 SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(imx_mu_suspend_noirq,
753 SET_RUNTIME_PM_OPS(imx_mu_runtime_suspend,
754 imx_mu_runtime_resume, NULL)
757 static struct platform_driver imx_mu_driver = {
758 .probe = imx_mu_probe,
759 .remove = imx_mu_remove,
762 .of_match_table = imx_mu_dt_ids,
763 .pm = &imx_mu_pm_ops,
766 module_platform_driver(imx_mu_driver);
769 MODULE_DESCRIPTION("Message Unit driver for i.MX");
770 MODULE_LICENSE("GPL v2");