diff options
author | Richard Zhu <Richard.Zhu@freescale.com> | 2015-06-01 13:26:09 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2015-09-17 09:23:28 -0500 |
commit | d1e94df5259af6fc156a1d33cb936b2c2719a69e (patch) | |
tree | 86df1a0485441ae70b1e5c159d6ce40f09bd5c4e /include | |
parent | 88047688c47e49d1124075739cda9be4762e7968 (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')
-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__ */ |