37 lines
761 B
C
37 lines
761 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (c) 2020 MediaTek Inc.
|
|
*/
|
|
#ifndef __APUTOP_RPMSG_H__
|
|
#define __APUTOP_RPMSG_H__
|
|
|
|
enum aputop_rpmsg_cmd {
|
|
APUTOP_DEV_CTL,
|
|
APUTOP_DEV_SET_OPP,
|
|
APUTOP_DUMP_OPP_TBL,
|
|
APUTOP_DUMP_OPP_TBL2,
|
|
APUTOP_CURR_STATUS,
|
|
APUTOP_PWR_PROFILING,
|
|
APUTOP_CLK_SET_RATE,
|
|
APUTOP_BUK_SET_VOLT,
|
|
APUTOP_ARE_DBG,
|
|
APUTOP_RPMSG_CMD_MAX,
|
|
};
|
|
|
|
struct aputop_rpmsg_data {
|
|
enum aputop_rpmsg_cmd cmd;
|
|
int data0;
|
|
int data1;
|
|
int data2;
|
|
int data3;
|
|
};
|
|
|
|
/* send a top_rpmsg message to remote side */
|
|
int aputop_send_rpmsg(struct aputop_rpmsg_data *rpmsg_data, int timeout);
|
|
|
|
void test_ipi_wakeup_apu(void);
|
|
enum aputop_rpmsg_cmd get_curr_rpmsg_cmd(void);
|
|
int aputop_register_rpmsg(void);
|
|
void aputop_unregister_rpmsg(void);
|
|
|
|
#endif
|