diff options
author | Linus Walleij <linus.walleij@stericsson.com> | 2010-02-09 16:34:54 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2010-03-02 00:13:20 -0500 |
commit | 6c664a8915f5341c2e7f1df0bb4b9b4a88f6ad77 (patch) | |
tree | 031bab9e62b2948ef3fc8a0a3223e8074bc201bb /drivers/dma | |
parent | f1acb878b6070941e844dfc4ca1b3b9e5a70426c (diff) |
Debugging options for the DMA engine subsystem
This adds Kconfig options for DEBUG and VERBOSE_DEBUG to the DMA
engine subsystem, I got tired of editing the Makefile manually
each time I want to debug things in here, modelled this on the
debug switches for other subsystems and works like a charm when
working on our DMA engines.
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/Kconfig | 16 | ||||
-rw-r--r-- | drivers/dma/Makefile | 7 |
2 files changed, 23 insertions, 0 deletions
diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index e02d74b1e892..1f4bbd66258d 100644 --- a/drivers/dma/Kconfig +++ b/drivers/dma/Kconfig | |||
@@ -13,6 +13,22 @@ menuconfig DMADEVICES | |||
13 | DMA Device drivers supported by the configured arch, it may | 13 | DMA Device drivers supported by the configured arch, it may |
14 | be empty in some cases. | 14 | be empty in some cases. |
15 | 15 | ||
16 | config DMADEVICES_DEBUG | ||
17 | bool "DMA Engine debugging" | ||
18 | depends on DMADEVICES != n | ||
19 | help | ||
20 | This is an option for use by developers; most people should | ||
21 | say N here. This enables DMA engine core and driver debugging. | ||
22 | |||
23 | config DMADEVICES_VDEBUG | ||
24 | bool "DMA Engine verbose debugging" | ||
25 | depends on DMADEVICES_DEBUG != n | ||
26 | help | ||
27 | This is an option for use by developers; most people should | ||
28 | say N here. This enables deeper (more verbose) debugging of | ||
29 | the DMA engine core and drivers. | ||
30 | |||
31 | |||
16 | if DMADEVICES | 32 | if DMADEVICES |
17 | 33 | ||
18 | comment "DMA Devices" | 34 | comment "DMA Devices" |
diff --git a/drivers/dma/Makefile b/drivers/dma/Makefile index 807053d48232..54112d67ab2e 100644 --- a/drivers/dma/Makefile +++ b/drivers/dma/Makefile | |||
@@ -1,3 +1,10 @@ | |||
1 | ifeq ($(CONFIG_DMADEVICES_DEBUG),y) | ||
2 | EXTRA_CFLAGS += -DDEBUG | ||
3 | endif | ||
4 | ifeq ($(CONFIG_DMADEVICES_VDEBUG),y) | ||
5 | EXTRA_CFLAGS += -DVERBOSE_DEBUG | ||
6 | endif | ||
7 | |||
1 | obj-$(CONFIG_DMA_ENGINE) += dmaengine.o | 8 | obj-$(CONFIG_DMA_ENGINE) += dmaengine.o |
2 | obj-$(CONFIG_NET_DMA) += iovlock.o | 9 | obj-$(CONFIG_NET_DMA) += iovlock.o |
3 | obj-$(CONFIG_DMATEST) += dmatest.o | 10 | obj-$(CONFIG_DMATEST) += dmatest.o |