diff options
author | Robin Gong <yibin.gong@nxp.com> | 2017-01-18 14:58:18 +0800 |
---|---|---|
committer | Anson Huang <Anson.Huang@nxp.com> | 2017-06-08 20:59:42 +0800 |
commit | 679321a1c0bf69ed9758bcd1b23f399f5f434c7c (patch) | |
tree | bf97b2667a543b0ddd81c5633a9c0ce56d0d387f /include | |
parent | e4afdaac604b1a1eb32487bbafc6f50c0495829e (diff) |
MLK-13733-3 regulator: pf1550-regulator-rpmsg: update pf1550-rpmsg interface
update driver since m4 side refine the header structure.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/imx_rpmsg.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/imx_rpmsg.h b/include/linux/imx_rpmsg.h index 2970b4b8cf2a..2c3458056d47 100644 --- a/include/linux/imx_rpmsg.h +++ b/include/linux/imx_rpmsg.h @@ -1,5 +1,6 @@ /* * Copyright (C) 2015 Freescale Semiconductor, Inc. + * Copyright (C) 2017 NXP. */ /* @@ -21,6 +22,23 @@ #ifndef __LINUX_IMX_RPMSG_H__ #define __LINUX_IMX_RPMSG_H__ +/* Category define */ +#define IMX_RMPSG_LIFECYCLE 1 +#define IMX_RPMSG_PMIC 2 +#define IMX_RPMSG_AUDIO 3 +/* rpmsg version */ +#define IMX_RMPSG_MAJOR 1 +#define IMX_RMPSG_MINOR 0 + +struct imx_rpmsg_head { + u8 cate; + u8 major; + u8 minor; + u8 type; + u8 cmd; + u8 reserved[5]; +} __attribute__ ((packed)); + 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); |