summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpopcornmix <popcornmix@gmail.com>2015-04-18 17:20:14 +0100
committerpopcornmix <popcornmix@gmail.com>2015-05-18 14:12:36 +0100
commit516a244303eddd835e28d350e0192ea06a851290 (patch)
tree6de2d0cab2e63572094c716abf6a9fbc45417092
parent0738572131aee90968b22801aa6350eab3f7b460 (diff)
downloadlinux-516a244303eddd835e28d350e0192ea06a851290.tar.gz
bcm2708-dmaengine: Add debug options
-rw-r--r--drivers/dma/bcm2708-dmaengine.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/dma/bcm2708-dmaengine.c b/drivers/dma/bcm2708-dmaengine.c
index 6150b8f7e011..8182b1622cc0 100644
--- a/drivers/dma/bcm2708-dmaengine.c
+++ b/drivers/dma/bcm2708-dmaengine.c
@@ -56,6 +56,7 @@
#include "virt-dma.h"
+static unsigned dma_debug;
struct bcm2835_dmadev {
struct dma_device ddev;
@@ -600,7 +601,10 @@ static struct dma_async_tx_descriptor *bcm2835_dma_prep_slave_sg(
}
/* Common part */
- control_block->info |= BCM2835_DMA_WAITS(SDHCI_BCM_DMA_WAITS);
+ u32 waits = SDHCI_BCM_DMA_WAITS;
+ if ((dma_debug >> 0) & 0x1f)
+ waits = (dma_debug >> 0) & 0x1f;
+ control_block->info |= BCM2835_DMA_WAITS(waits);
control_block->info |= BCM2835_DMA_WAIT_RESP;
/* Enable */
@@ -952,6 +956,7 @@ static int bcm2835_dma_probe(struct platform_device *pdev)
}
dev_info(&pdev->dev, "Load BCM2835 DMA engine driver\n");
+ dev_info(&pdev->dev, "dma_debug:%x\n", dma_debug);
return 0;
@@ -982,6 +987,7 @@ static struct platform_driver bcm2835_dma_driver = {
module_platform_driver(bcm2835_dma_driver);
+module_param(dma_debug, uint, 0644);
MODULE_ALIAS("platform:bcm2835-dma");
MODULE_DESCRIPTION("BCM2835 DMA engine driver");
MODULE_AUTHOR("Florian Meier <florian.meier@koalo.de>");