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

Commit 2f5ead45 authored by Kaushal Kumar's avatar Kaushal Kumar
Browse files

soc: qcom: make debugfs support configurable for kryo l2 accessors driver



Add config option to enable/disable l2 indirect access debug capability.
The driver exposes l2 indirect access debugfs interface to get/set data,
address, and target cpus so keep it disabled by default.

Change-Id: I22f84d16a3bf12a78295f2d052bb50e90d6f2a8b
Signed-off-by: default avatarKaushal Kumar <kaushalk@codeaurora.org>
parent ea4719da
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -178,6 +178,16 @@ config MSM_QMI_INTERFACE
	  to perform QMI message marshaling and transport them over IPC
	  Router.

config MSM_L2_IA_DEBUG
       bool "Enable MSM L2 Indirect Access Debug"
       depends on DEBUG_FS
       default n
       help
         This option enables L2 indirect access debug
         capability. It exposes L2 indirect access
         debugfs interface to get/set data, address,
         and target cpus.

config MSM_RPM_SMD
	bool "RPM driver using SMD protocol"
	help
+3 −3
Original line number Diff line number Diff line
/*
 * Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
 * Copyright (c) 2014-2015, 2017, 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
@@ -80,7 +80,7 @@ u64 get_l2_indirect_reg(u64 reg)
}
EXPORT_SYMBOL(get_l2_indirect_reg);

#if defined(CONFIG_DEBUG_FS)
#if defined(CONFIG_MSM_L2_IA_DEBUG)

static u32 debug_addr;
static int debug_target_cpu;
@@ -180,4 +180,4 @@ static int l2_ia_debug_init(void)
}
late_initcall(l2_ia_debug_init);

#endif /* CONFIG_DEBUG_FS */
#endif /* CONFIG_MSM_L2_IA_DEBUG */