MLK-13981-2 rpmsg: imx: enable rpmsg virt tty
authorRichard Zhu <hongxing.zhu@nxp.com>
Wed, 15 Feb 2017 08:46:29 +0000 (16:46 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:10:42 +0000 (15:10 -0500)
Message can be transferred between remote
device and iMX7ULP M4.
Then the message can be transferred between A7
and M4 by rpmsg channel.
demo howto:
- insmode the imx_rpmsg_tty.ko module after
login A7/Linux.
- Receive messages. Used the following command
to dump out the msg from the virtual tty.
./unit_tests/mxc_mcc_tty_test.out /dev/ttyRPMSG 115200 R 100 1000 &
- Send: use the following command to send the
message to M4.
echo <your string message> /dev/ttyRPMSG

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
drivers/rpmsg/imx_rpmsg_tty.c

index 658be55..3545fd2 100644 (file)
@@ -1,5 +1,6 @@
 /*
- * Copyright (C) 2015 Freescale Semiconductor, Inc.
+ * Copyright (C) 2015-2016 Freescale Semiconductor, Inc.
+ * Copyright (C) 2017 NXP
  *
  * derived from the omap-rpmsg implementation.
  * Remote processor messaging transport - tty driver
@@ -205,7 +206,7 @@ static void rpmsg_tty_remove(struct rpmsg_device *rpdev)
 }
 
 static struct rpmsg_device_id rpmsg_driver_tty_id_table[] = {
-       { .name = "rpmsg-openamp-demo-channel" },
+       { .name = "rpmsg-virtual-tty-channel" },
        { },
 };
 MODULE_DEVICE_TABLE(rpmsg, rpmsg_driver_tty_id_table);