mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
8d9be5c6bd
Many remoteproc instances requires that Linux casts a proxy vote for an interconnect path during boot, until they can do it themselves. Add support for voting for a single path. As this is a shared problem between both PAS and MSS drivers, the path is acquired and votes casted from the common helper code. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Reviewed-by: Georgi Djakov <djakov@kernel.org> Link: https://lore.kernel.org/r/20220225033224.2238425-1-bjorn.andersson@linaro.org
57 lines
1.2 KiB
C
57 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef __QCOM_Q6V5_H__
|
|
#define __QCOM_Q6V5_H__
|
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/completion.h>
|
|
#include <linux/soc/qcom/qcom_aoss.h>
|
|
|
|
struct icc_path;
|
|
struct rproc;
|
|
struct qcom_smem_state;
|
|
struct qcom_sysmon;
|
|
|
|
struct qcom_q6v5 {
|
|
struct device *dev;
|
|
struct rproc *rproc;
|
|
|
|
struct qcom_smem_state *state;
|
|
struct qmp *qmp;
|
|
|
|
struct icc_path *path;
|
|
|
|
unsigned stop_bit;
|
|
|
|
int wdog_irq;
|
|
int fatal_irq;
|
|
int ready_irq;
|
|
int handover_irq;
|
|
int stop_irq;
|
|
|
|
bool handover_issued;
|
|
|
|
struct completion start_done;
|
|
struct completion stop_done;
|
|
|
|
int crash_reason;
|
|
|
|
bool running;
|
|
|
|
const char *load_state;
|
|
void (*handover)(struct qcom_q6v5 *q6v5);
|
|
};
|
|
|
|
int qcom_q6v5_init(struct qcom_q6v5 *q6v5, struct platform_device *pdev,
|
|
struct rproc *rproc, int crash_reason, const char *load_state,
|
|
void (*handover)(struct qcom_q6v5 *q6v5));
|
|
void qcom_q6v5_deinit(struct qcom_q6v5 *q6v5);
|
|
|
|
int qcom_q6v5_prepare(struct qcom_q6v5 *q6v5);
|
|
int qcom_q6v5_unprepare(struct qcom_q6v5 *q6v5);
|
|
int qcom_q6v5_request_stop(struct qcom_q6v5 *q6v5, struct qcom_sysmon *sysmon);
|
|
int qcom_q6v5_wait_for_start(struct qcom_q6v5 *q6v5, int timeout);
|
|
unsigned long qcom_q6v5_panic(struct qcom_q6v5 *q6v5);
|
|
|
|
#endif
|