mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 22:42:10 +00:00
firmware: imx: add dummy functions
add dummy functions to avoid build failure when header files are included, but drivers are not built. Signed-off-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
This commit is contained in:
parent
3650b228f8
commit
95de5094f5
3 changed files with 59 additions and 0 deletions
|
@ -34,6 +34,7 @@ struct imx_sc_rpc_msg {
|
|||
uint8_t func;
|
||||
};
|
||||
|
||||
#ifdef CONFIG_IMX_SCU
|
||||
/*
|
||||
* This is an function to send an RPC message over an IPC channel.
|
||||
* It is called by client-side SCFW API function shims.
|
||||
|
@ -55,4 +56,16 @@ int imx_scu_call_rpc(struct imx_sc_ipc *ipc, void *msg, bool have_resp);
|
|||
* @return Returns an error code (0 = success, failed if < 0)
|
||||
*/
|
||||
int imx_scu_get_handle(struct imx_sc_ipc **ipc);
|
||||
#else
|
||||
static inline int imx_scu_call_rpc(struct imx_sc_ipc *ipc, void *msg,
|
||||
bool have_resp)
|
||||
{
|
||||
return -ENOTSUPP;
|
||||
}
|
||||
|
||||
static inline int imx_scu_get_handle(struct imx_sc_ipc **ipc)
|
||||
{
|
||||
return -ENOTSUPP;
|
||||
}
|
||||
#endif
|
||||
#endif /* _SC_IPC_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue