diff options
author | Peng Fan <peng.fan@nxp.com> | 2021-10-22 13:18:56 +0300 |
---|---|---|
committer | Jassi Brar <jaswinder.singh@linaro.org> | 2021-10-30 07:03:09 +0300 |
commit | 97961f78e8bc7f50ff7113fec030af6fa5f004d0 (patch) | |
tree | a58517f52dabb34f9ba1b787dce0b5e03ca3606d /include/linux/firmware | |
parent | a6daa2207302162ccbaacdb32eab1286fc12124c (diff) | |
download | linux-97961f78e8bc7f50ff7113fec030af6fa5f004d0.tar.xz |
mailbox: imx: support i.MX8ULP S4 MU
Like i.MX8 SCU, i.MX8ULP S4 also has vendor specific protocol.
- bind SCU/S4 MU part to share one tx/rx/init API to make code simple.
- S4 msg max size is very large, so alloc the space at driver probe,
not use local on stack variable.
- S4 MU has 8 TR and 4 RR which is different with i.MX8 MU, so adapt
code to reflect this.
Tested on i.MX8MP, i.MX8ULP
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'include/linux/firmware')
-rw-r--r-- | include/linux/firmware/imx/s4.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/firmware/imx/s4.h b/include/linux/firmware/imx/s4.h new file mode 100644 index 000000000000..9e34923ae1d6 --- /dev/null +++ b/include/linux/firmware/imx/s4.h @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2021 NXP + * + * Header file for the IPC implementation. + */ + +#ifndef _S4_IPC_H +#define _S4_IPC_H + +struct imx_s4_ipc; + +struct imx_s4_rpc_msg { + uint8_t ver; + uint8_t size; + uint8_t cmd; + uint8_t tag; +} __packed; + +#endif /* _S4_IPC_H */ |