diff options
author | Richard Zhu <hongxing.zhu@nxp.com> | 2017-02-15 16:46:29 +0800 |
---|---|---|
committer | Leonard Crestez <leonard.crestez@nxp.com> | 2018-08-24 12:41:33 +0300 |
commit | d4d136e581018928b2ff5e9fc76cd14f644da427 (patch) | |
tree | bfad87965476917562d7f8295918b585ed394369 /drivers/rpmsg | |
parent | 085d7c27886a8ee13d9cc5134ee6472bbed3f966 (diff) |
MLK-13981-2 rpmsg: imx: enable rpmsg virt tty
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>
Diffstat (limited to 'drivers/rpmsg')
-rw-r--r-- | drivers/rpmsg/imx_rpmsg_tty.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/rpmsg/imx_rpmsg_tty.c b/drivers/rpmsg/imx_rpmsg_tty.c index 658be55b45d6..3545fd2c6e6b 100644 --- a/drivers/rpmsg/imx_rpmsg_tty.c +++ b/drivers/rpmsg/imx_rpmsg_tty.c @@ -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); |