From bd0a4daf6b8aa1cc29f55fdd5e19304d1ad15a39 Mon Sep 17 00:00:00 2001 From: Richard Zhu Date: Mon, 1 Jun 2015 13:26:09 +0800 Subject: 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 --- include/linux/imx_rpmsg.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 include/linux/imx_rpmsg.h (limited to 'include/linux') 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__ */ -- cgit v1.2.3