diff options
-rw-r--r-- | drivers/video/omap2/dss/Kconfig | 22 | ||||
-rw-r--r-- | drivers/video/omap2/dss/Makefile | 2 | ||||
-rw-r--r-- | drivers/video/omap2/dss/core.c | 6 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dss.c | 2 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dss.h | 2 |
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 | ||
21 | config OMAP2_DSS_DEBUG_SUPPORT | 21 | config 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 | |||
29 | config 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 | ||
28 | config OMAP2_DSS_COLLECT_IRQ_STATS | 38 | config 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 | |||
8 | omapdss-$(CONFIG_OMAP2_DSS_DSI) += dsi.o | 8 | omapdss-$(CONFIG_OMAP2_DSS_DSI) += dsi.o |
9 | omapdss-$(CONFIG_OMAP4_DSS_HDMI) += hdmi.o \ | 9 | omapdss-$(CONFIG_OMAP4_DSS_HDMI) += hdmi.o \ |
10 | hdmi_panel.o ti_hdmi_4xxx_ip.o | 10 | hdmi_panel.o ti_hdmi_4xxx_ip.o |
11 | ccflags-$(CONFIG_OMAP2_DSS_DEBUG_SUPPORT) += -DDEBUG | 11 | ccflags-$(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) |
142 | static int dss_debug_show(struct seq_file *s, void *unused) | 142 | static 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 */ |
197 | static inline int dss_initialize_debugfs(void) | 197 | static 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 */ |
211 | static int omap_dss_pm_notif(struct notifier_block *b, unsigned long v, void *d) | 211 | static 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) |
750 | void dss_debug_dump_clocks(struct seq_file *s) | 750 | void 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); | |||
301 | const char *dss_get_generic_clk_source_name(enum omap_dss_clk_source clk_src); | 301 | const char *dss_get_generic_clk_source_name(enum omap_dss_clk_source clk_src); |
302 | void dss_dump_clocks(struct seq_file *s); | 302 | void 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) |
305 | void dss_debug_dump_clocks(struct seq_file *s); | 305 | void dss_debug_dump_clocks(struct seq_file *s); |
306 | #endif | 306 | #endif |
307 | 307 | ||