aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2
diff options
context:
space:
mode:
authorChandrabhanu Mahapatra <cmahapatra@ti.com>2012-09-29 01:55:42 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-10-12 07:15:30 -0400
commit1b3bcb33fb9faeab29e5c734fa000f6c7746ea1c (patch)
tree6fb7167e1184e317bbe656a73cc1dc4b7712f1d8 /drivers/video/omap2
parent7ad6623a4980caa053eb9eb3207e0c3ba7d4ed4d (diff)
OMAPDSS: Create new debug config options
The config option CONFIG_OMAP2_DSS_DEBUG_SUPPORT has been removed and replaced with CONFIG_OMAP2_DSS_DEBUG and CONFIG_OMAP2_DSS_DEBUGFS. CONFIG_OMAP2_DSS_DEBUG enables DEBUG flag and CONFIG_OMAP2_DSS_DEBUGFS enables creation of debugfs for OMAPDSS. Both the config options are disabled by default and can be enabled independently of one another as per convenience. Signed-off-by: Chandrabhanu Mahapatra <cmahapatra@ti.com> Reviewed-by: Sumit Semwal <sumit.semwal@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2')
-rw-r--r--drivers/video/omap2/dss/Kconfig22
-rw-r--r--drivers/video/omap2/dss/Makefile2
-rw-r--r--drivers/video/omap2/dss/core.c6
-rw-r--r--drivers/video/omap2/dss/dss.c2
-rw-r--r--drivers/video/omap2/dss/dss.h2
5 files changed, 22 insertions, 12 deletions
diff --git a/drivers/video/omap2/dss/Kconfig b/drivers/video/omap2/dss/Kconfig
index 80f5390aa13..7052487495c 100644
--- a/drivers/video/omap2/dss/Kconfig
+++ b/drivers/video/omap2/dss/Kconfig
@@ -18,16 +18,26 @@ config OMAP2_VRAM_SIZE
18 You can also set this with "vram=<bytes>" kernel argument, or 18 You can also set this with "vram=<bytes>" kernel argument, or
19 in the board file. 19 in the board file.
20 20
21config OMAP2_DSS_DEBUG_SUPPORT 21config OMAP2_DSS_DEBUG
22 bool "Debug support" 22 bool "Debug support"
23 default y 23 default n
24 help
25 This enables printing of debug messages. Alternatively, debug messages
26 can also be enabled by setting CONFIG_DYNAMIC_DEBUG and then setting
27 appropriate flags in <debugfs>/dynamic_debug/control.
28
29config OMAP2_DSS_DEBUGFS
30 bool "Debugfs filesystem support"
31 depends on DEBUG_FS
32 default n
24 help 33 help
25 This enables debug messages. You need to enable printing 34 This enables debugfs for OMAPDSS at <debugfs>/omapdss. This enables
26 with 'debug' module parameter. 35 querying about clock configuration and register configuration of dss,
36 dispc, dsi, hdmi and rfbi.
27 37
28config OMAP2_DSS_COLLECT_IRQ_STATS 38config OMAP2_DSS_COLLECT_IRQ_STATS
29 bool "Collect DSS IRQ statistics" 39 bool "Collect DSS IRQ statistics"
30 depends on OMAP2_DSS_DEBUG_SUPPORT 40 depends on OMAP2_DSS_DEBUGFS
31 default n 41 default n
32 help 42 help
33 Collect DSS IRQ statistics, printable via debugfs. 43 Collect DSS IRQ statistics, printable via debugfs.
diff --git a/drivers/video/omap2/dss/Makefile b/drivers/video/omap2/dss/Makefile
index 86493e3dd65..40701910f73 100644
--- a/drivers/video/omap2/dss/Makefile
+++ b/drivers/video/omap2/dss/Makefile
@@ -8,4 +8,4 @@ omapdss-$(CONFIG_OMAP2_DSS_SDI) += sdi.o
8omapdss-$(CONFIG_OMAP2_DSS_DSI) += dsi.o 8omapdss-$(CONFIG_OMAP2_DSS_DSI) += dsi.o
9omapdss-$(CONFIG_OMAP4_DSS_HDMI) += hdmi.o \ 9omapdss-$(CONFIG_OMAP4_DSS_HDMI) += hdmi.o \
10 hdmi_panel.o ti_hdmi_4xxx_ip.o 10 hdmi_panel.o ti_hdmi_4xxx_ip.o
11ccflags-$(CONFIG_OMAP2_DSS_DEBUG_SUPPORT) += -DDEBUG 11ccflags-$(CONFIG_OMAP2_DSS_DEBUG) += -DDEBUG
diff --git a/drivers/video/omap2/dss/core.c b/drivers/video/omap2/dss/core.c
index b2af72dc20b..826d64faeaa 100644
--- a/drivers/video/omap2/dss/core.c
+++ b/drivers/video/omap2/dss/core.c
@@ -138,7 +138,7 @@ int dss_set_min_bus_tput(struct device *dev, unsigned long tput)
138 return 0; 138 return 0;
139} 139}
140 140
141#if defined(CONFIG_DEBUG_FS) && defined(CONFIG_OMAP2_DSS_DEBUG_SUPPORT) 141#if defined(CONFIG_OMAP2_DSS_DEBUGFS)
142static int dss_debug_show(struct seq_file *s, void *unused) 142static int dss_debug_show(struct seq_file *s, void *unused)
143{ 143{
144 void (*func)(struct seq_file *) = s->private; 144 void (*func)(struct seq_file *) = s->private;
@@ -193,7 +193,7 @@ int dss_debugfs_create_file(const char *name, void (*write)(struct seq_file *))
193 193
194 return 0; 194 return 0;
195} 195}
196#else /* CONFIG_DEBUG_FS && CONFIG_OMAP2_DSS_DEBUG_SUPPORT */ 196#else /* CONFIG_OMAP2_DSS_DEBUGFS */
197static inline int dss_initialize_debugfs(void) 197static inline int dss_initialize_debugfs(void)
198{ 198{
199 return 0; 199 return 0;
@@ -205,7 +205,7 @@ int dss_debugfs_create_file(const char *name, void (*write)(struct seq_file *))
205{ 205{
206 return 0; 206 return 0;
207} 207}
208#endif /* CONFIG_DEBUG_FS && CONFIG_OMAP2_DSS_DEBUG_SUPPORT */ 208#endif /* CONFIG_OMAP2_DSS_DEBUGFS */
209 209
210/* PLATFORM DEVICE */ 210/* PLATFORM DEVICE */
211static int omap_dss_pm_notif(struct notifier_block *b, unsigned long v, void *d) 211static int omap_dss_pm_notif(struct notifier_block *b, unsigned long v, void *d)
diff --git a/drivers/video/omap2/dss/dss.c b/drivers/video/omap2/dss/dss.c
index 2ab1c3e9655..3954742d46d 100644
--- a/drivers/video/omap2/dss/dss.c
+++ b/drivers/video/omap2/dss/dss.c
@@ -746,7 +746,7 @@ static void dss_runtime_put(void)
746} 746}
747 747
748/* DEBUGFS */ 748/* DEBUGFS */
749#if defined(CONFIG_DEBUG_FS) && defined(CONFIG_OMAP2_DSS_DEBUG_SUPPORT) 749#if defined(CONFIG_OMAP2_DSS_DEBUGFS)
750void dss_debug_dump_clocks(struct seq_file *s) 750void dss_debug_dump_clocks(struct seq_file *s)
751{ 751{
752 dss_dump_clocks(s); 752 dss_dump_clocks(s);
diff --git a/drivers/video/omap2/dss/dss.h b/drivers/video/omap2/dss/dss.h
index ffbba7e994e..685275e0bed 100644
--- a/drivers/video/omap2/dss/dss.h
+++ b/drivers/video/omap2/dss/dss.h
@@ -301,7 +301,7 @@ enum dss_hdmi_venc_clk_source_select dss_get_hdmi_venc_clk_source(void);
301const char *dss_get_generic_clk_source_name(enum omap_dss_clk_source clk_src); 301const char *dss_get_generic_clk_source_name(enum omap_dss_clk_source clk_src);
302void dss_dump_clocks(struct seq_file *s); 302void dss_dump_clocks(struct seq_file *s);
303 303
304#if defined(CONFIG_DEBUG_FS) && defined(CONFIG_OMAP2_DSS_DEBUG_SUPPORT) 304#if defined(CONFIG_OMAP2_DSS_DEBUGFS)
305void dss_debug_dump_clocks(struct seq_file *s); 305void dss_debug_dump_clocks(struct seq_file *s);
306#endif 306#endif
307 307