Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4f0a38f authored by Mao Jinlong's avatar Mao Jinlong
Browse files

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: default avatarMao Jinlong <jinlmao@codeaurora.org>
parent 7855a48f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -386,7 +386,7 @@ config QCOM_SMD_RPM
	  module. This will build a module called "qcom-smd-rpm".
	  module. This will build a module called "qcom-smd-rpm".


config QCOM_MEMORY_DUMP_V2
config QCOM_MEMORY_DUMP_V2
	bool "QCOM Memory Dump V2 Support"
	tristate "QCOM Memory Dump V2 Support"
	help
	help
	  This enables memory dump feature. It allows various client
	  This enables memory dump feature. It allows various client
	  subsystems to register respective dump regions. At the time
	  subsystems to register respective dump regions. At the time
+3 −5
Original line number Original line Diff line number Diff line
@@ -892,9 +892,7 @@ static struct platform_driver mem_dump_driver = {
	},
	},
};
};


static int __init mem_dump_init(void)
module_platform_driver(mem_dump_driver);
{
	return platform_driver_register(&mem_dump_driver);
}


pure_initcall(mem_dump_init);
MODULE_DESCRIPTION("Memory Dump V2 Driver");
MODULE_LICENSE("GPL v2");
+3 −3
Original line number Original line Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/* 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
#ifndef __MSM_MEMORY_DUMP_H
@@ -42,7 +42,7 @@ static inline int msm_dump_tbl_register(struct msm_client_dump *entry)
#endif
#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);
extern uint32_t msm_dump_table_version(void);
#else
#else
static inline uint32_t msm_dump_table_version(void)
static inline uint32_t msm_dump_table_version(void)
@@ -114,7 +114,7 @@ struct msm_dump_entry {
	uint64_t addr;
	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,
extern int msm_dump_data_register(enum msm_dump_table_ids id,
				  struct msm_dump_entry *entry);
				  struct msm_dump_entry *entry);
extern int msm_dump_data_register_nominidump(enum msm_dump_table_ids id,
extern int msm_dump_data_register_nominidump(enum msm_dump_table_ids id,