You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.7 KiB
55 lines
1.7 KiB
/* 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;
|
|
#ifdef CONFIG_QCOM_MINIDUMP
|
|
void *minidump_dev;
|
|
#endif
|
|
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);
|
|
#ifdef CONFIG_QCOM_MINIDUMP
|
|
int pil_mss_debug_reset(struct pil_desc *pil);
|
|
#endif
|
|
#endif
|
|
|