Beyond full dump download mode, there is also a minidump download mode and a dump mode which includes full dump and minidump. Add support for changing dump mode with /sys/kernel/dload/dload_mode sysfs entry and for toggling whether a download dump mode is used with msm_enable_dump_mode. Change-Id: I20248df51e8df55c30c0c4f9c46291697cee189b Signed-off-by: Elliot Berman <eberman@codeaurora.org>
18 lines
375 B
C
18 lines
375 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2011-2014, 2016, 2018, 2020 The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _SOC_QCOM_MSM_RESTART_H_
|
|
#define _SOC_QCOM_MSM_RESTART_H_
|
|
|
|
#define RESTART_NORMAL 0x0
|
|
#define RESTART_DLOAD 0x1
|
|
|
|
void msm_set_restart_mode(int mode);
|
|
extern int pmic_reset_irq;
|
|
|
|
void msm_enable_dump_mode(bool enable);
|
|
|
|
#endif
|