aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaseer Ahmed <naseer@codeaurora.org>2016-03-16 16:44:10 -0400
committerYuan Lin <yualin@google.com>2016-03-24 23:44:28 -0700
commitd22e409d672101e837d95c944161f072f894e682 (patch)
tree868edd06a22f5f1e8481d11e29e59a5c700ede29
parenta00dafd652e5ef75fced97adf5deea7ea7b8b16d (diff)
msm_fb: display: Enable display debugging through mdp debugfsandroid-6.0.1_r0.73
Change the config from DEBUG_FS to MDP_DEBUG_FS to dump and write the MDP, MDDI and HDMI debug registers. By default CONFIG_MDP_DEBUG_FS should be disabled and can be enabled through defconfig file. Change-Id: I2ed8dcc30b19a80912734ec13f24a67351c38315 Signed-off-by: Raghavendra Ambadas <rambad@codeaurora.org> Signed-off-by: Naseer Ahmed <naseer@codeaurora.org> BUG=26404525
-rw-r--r--drivers/video/msm/Kconfig5
-rw-r--r--drivers/video/msm/Makefile3
-rw-r--r--drivers/video/msm/mdp.c4
3 files changed, 8 insertions, 4 deletions
diff --git a/drivers/video/msm/Kconfig b/drivers/video/msm/Kconfig
index 590723a58d3c..30ce98f1363a 100644
--- a/drivers/video/msm/Kconfig
+++ b/drivers/video/msm/Kconfig
@@ -44,6 +44,11 @@ config FB_MSM_MDP_HW
config FB_MSM_MDSS_COMMON
bool
+config MDP_DEBUG_FS
+ depends on DEBUG_FS
+ bool "MDP Debug FS"
+ default n
+
choice
prompt "MDP HW version"
default FB_MSM_MDP22
diff --git a/drivers/video/msm/Makefile b/drivers/video/msm/Makefile
index 67c6b480a5a6..d26fe580a2b9 100644
--- a/drivers/video/msm/Makefile
+++ b/drivers/video/msm/Makefile
@@ -9,8 +9,7 @@ obj-$(CONFIG_FB_BACKLIGHT) += msm_fb_bl.o
ifeq ($(CONFIG_FB_MSM_MDP_HW),y)
# MDP
obj-y += mdp.o
-
-obj-$(CONFIG_DEBUG_FS) += mdp_debugfs.o
+obj-$(CONFIG_MDP_DEBUG_FS) += mdp_debugfs.o
ifeq ($(CONFIG_FB_MSM_MDP40),y)
obj-y += mdp4_util.o
diff --git a/drivers/video/msm/mdp.c b/drivers/video/msm/mdp.c
index 7d6d4488324b..7a59d5108212 100644
--- a/drivers/video/msm/mdp.c
+++ b/drivers/video/msm/mdp.c
@@ -2,7 +2,7 @@
*
* MSM MDP Interface (used by framebuffer core)
*
- * Copyright (c) 2007-2012, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2007-2013, 2016 The Linux Foundation. All rights reserved.
* Copyright (C) 2007 Google Incorporated
*
* This software is licensed under the terms of the GNU General Public
@@ -3257,7 +3257,7 @@ static int __init mdp_driver_init(void)
return ret;
}
-#if defined(CONFIG_DEBUG_FS)
+#if defined(CONFIG_MDP_DEBUG_FS)
mdp_debugfs_init();
#endif