mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
soc: memory_dump: Add moudle support for mem_dump driver
Add support to build the memory dump driver as moudle on gki build. Change-Id: I8cf227d0b0044b935bbf224d1191ec84fa497509 Signed-off-by: Mao Jinlong <jinlmao@codeaurora.org>
This commit is contained in:
parent
7855a48fa7
commit
a4f0a38f21
3 changed files with 7 additions and 9 deletions
|
|
@ -386,7 +386,7 @@ config QCOM_SMD_RPM
|
|||
module. This will build a module called "qcom-smd-rpm".
|
||||
|
||||
config QCOM_MEMORY_DUMP_V2
|
||||
bool "QCOM Memory Dump V2 Support"
|
||||
tristate "QCOM Memory Dump V2 Support"
|
||||
help
|
||||
This enables memory dump feature. It allows various client
|
||||
subsystems to register respective dump regions. At the time
|
||||
|
|
|
|||
|
|
@ -892,9 +892,7 @@ static struct platform_driver mem_dump_driver = {
|
|||
},
|
||||
};
|
||||
|
||||
static int __init mem_dump_init(void)
|
||||
{
|
||||
return platform_driver_register(&mem_dump_driver);
|
||||
}
|
||||
module_platform_driver(mem_dump_driver);
|
||||
|
||||
pure_initcall(mem_dump_init);
|
||||
MODULE_DESCRIPTION("Memory Dump V2 Driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2012, 2014-2017, 2019, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012, 2014-2017, 2020, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef __MSM_MEMORY_DUMP_H
|
||||
|
|
@ -42,7 +42,7 @@ static inline int msm_dump_tbl_register(struct msm_client_dump *entry)
|
|||
#endif
|
||||
|
||||
|
||||
#if defined(CONFIG_QCOM_MEMORY_DUMP) || defined(CONFIG_QCOM_MEMORY_DUMP_V2)
|
||||
#if IS_ENABLED(CONFIG_QCOM_MEMORY_DUMP_V2)
|
||||
extern uint32_t msm_dump_table_version(void);
|
||||
#else
|
||||
static inline uint32_t msm_dump_table_version(void)
|
||||
|
|
@ -114,7 +114,7 @@ struct msm_dump_entry {
|
|||
uint64_t addr;
|
||||
};
|
||||
|
||||
#ifdef CONFIG_QCOM_MEMORY_DUMP_V2
|
||||
#if IS_ENABLED(CONFIG_QCOM_MEMORY_DUMP_V2)
|
||||
extern int msm_dump_data_register(enum msm_dump_table_ids id,
|
||||
struct msm_dump_entry *entry);
|
||||
extern int msm_dump_data_register_nominidump(enum msm_dump_table_ids id,
|
||||
|
|
|
|||
Loading…
Reference in a new issue