4a976aa230
Add snapshot of mba based modem pil driver based on 4.14 to 4.19 kernel. This is snapshot of the MBA base modem PIL driver as of msm-4.14 'commit 78bed541dbf8950be ("Merge "msm: camera: hyp: To fix Stack overflow"")'. Change-Id: Ie4e2e5998ae379c0f49d64d3d4126c59786a42a9 Signed-off-by: Sibi Sankar <sibis@codeaurora.org> Signed-off-by: Chetan C R <cchinnad@codeaurora.org>
53 lines
1.7 KiB
C
53 lines
1.7 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef __MSM_PIL_MSA_H
|
|
#define __MSM_PIL_MSA_H
|
|
|
|
#include <soc/qcom/subsystem_restart.h>
|
|
|
|
#include "peripheral-loader.h"
|
|
|
|
struct modem_data {
|
|
struct q6v5_data *q6;
|
|
struct subsys_device *subsys;
|
|
struct subsys_desc subsys_desc;
|
|
void *ramdump_dev;
|
|
void *minidump_dev;
|
|
bool crash_shutdown;
|
|
u32 pas_id;
|
|
bool ignore_errors;
|
|
struct completion stop_ack;
|
|
void __iomem *rmb_base;
|
|
struct clk *xo;
|
|
struct pil_desc desc;
|
|
struct device mba_mem_dev;
|
|
struct device *mba_mem_dev_fixed;
|
|
unsigned long attrs_dma;
|
|
};
|
|
|
|
extern struct pil_reset_ops pil_msa_mss_ops;
|
|
extern struct pil_reset_ops pil_msa_mss_ops_selfauth;
|
|
extern struct pil_reset_ops pil_msa_femto_mba_ops;
|
|
|
|
int pil_mss_reset_load_mba(struct pil_desc *pil);
|
|
int pil_mss_make_proxy_votes(struct pil_desc *pil);
|
|
void pil_mss_remove_proxy_votes(struct pil_desc *pil);
|
|
int pil_mss_shutdown(struct pil_desc *pil);
|
|
int pil_mss_deinit_image(struct pil_desc *pil);
|
|
int __pil_mss_deinit_image(struct pil_desc *pil, bool err_path);
|
|
int pil_mss_assert_resets(struct q6v5_data *drv);
|
|
int pil_mss_deassert_resets(struct q6v5_data *drv);
|
|
int pil_mss_debug_reset(struct pil_desc *pil);
|
|
#endif
|