diff options
author | Richard Zhu <Richard.Zhu@freescale.com> | 2015-06-01 13:26:09 +0800 |
---|---|---|
committer | Richard Zhu <Richard.Zhu@freescale.com> | 2015-06-05 14:50:28 +0800 |
commit | bd0a4daf6b8aa1cc29f55fdd5e19304d1ad15a39 (patch) | |
tree | 2bdcf2a7a34b55d65e79302ec8adfeb0f0b41df3 /include/linux | |
parent | 15bdcfe0050a8c2d11a6164e24dee05d831ad80f (diff) |
MLK-11015-2 imx: rpmsg: add rpmsg for imx amp soc
- enable the rpmsg support for imx amp soc
- add the notify mechanism to notify imx_rpmsg in mu isr
when there is msg sent from remote m4.
- Make sure that the vring alignment is 4096 on both linux and mqx
- add double check on MU msg transfer, make sure that the MU MSG is
handled by the other side core.
Signed-off-by: Richard Zhu <Richard.Zhu@freescale.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/imx_rpmsg.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/linux/imx_rpmsg.h b/include/linux/imx_rpmsg.h new file mode 100644 index 000000000000..2970b4b8cf2a --- /dev/null +++ b/include/linux/imx_rpmsg.h @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2015 Freescale Semiconductor, Inc. + */ + +/* + * The code contained herein is licensed under the GNU Lesser General + * Public License. You may obtain a copy of the GNU Lesser General + * Public License Version 2.1 or later at the following locations: + * + * http://www.opensource.org/licenses/lgpl-license.html + * http://www.gnu.org/copyleft/lgpl.html + */ + +/* + * @file linux/imx_rpmsg.h + * + * @brief Global header file for imx RPMSG + * + * @ingroup RPMSG + */ +#ifndef __LINUX_IMX_RPMSG_H__ +#define __LINUX_IMX_RPMSG_H__ + +int imx_mu_rpmsg_send(unsigned int vq_id); +int imx_mu_rpmsg_register_nb(const char *name, struct notifier_block *nb); +int imx_mu_rpmsg_unregister_nb(const char *name, struct notifier_block *nb); +#endif /* __LINUX_IMX_RPMSG_H__ */ |