diff options
author | Richard Zhu <hongxing.zhu@nxp.com> | 2017-02-15 16:46:29 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:25:50 +0800 |
commit | 8d699d42ae55825869562846aceacfe8bc0f131b (patch) | |
tree | 29dc4bdc9a3cfae2ab6756da596d7b16a99a56d4 /drivers/rpmsg | |
parent | 32116ab8fed8228ae1f2aea1924986417aa1c9fd (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); |