aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/common/sa1111.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/common/sa1111.c')
-rw-r--r--arch/arm/common/sa1111.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/arm/common/sa1111.c b/arch/arm/common/sa1111.c
index 7b4351b28a5..d78499f84bd 100644
--- a/arch/arm/common/sa1111.c
+++ b/arch/arm/common/sa1111.c
@@ -121,6 +121,7 @@ static struct sa1111 *g_sa1111;
121struct sa1111_dev_info { 121struct sa1111_dev_info {
122 unsigned long offset; 122 unsigned long offset;
123 unsigned long skpcr_mask; 123 unsigned long skpcr_mask;
124 bool dma;
124 unsigned int devid; 125 unsigned int devid;
125 unsigned int irq[6]; 126 unsigned int irq[6];
126}; 127};
@@ -129,6 +130,7 @@ static struct sa1111_dev_info sa1111_devices[] = {
129 { 130 {
130 .offset = SA1111_USB, 131 .offset = SA1111_USB,
131 .skpcr_mask = SKPCR_UCLKEN, 132 .skpcr_mask = SKPCR_UCLKEN,
133 .dma = true,
132 .devid = SA1111_DEVID_USB, 134 .devid = SA1111_DEVID_USB,
133 .irq = { 135 .irq = {
134 IRQ_USBPWR, 136 IRQ_USBPWR,
@@ -142,6 +144,7 @@ static struct sa1111_dev_info sa1111_devices[] = {
142 { 144 {
143 .offset = 0x0600, 145 .offset = 0x0600,
144 .skpcr_mask = SKPCR_I2SCLKEN | SKPCR_L3CLKEN, 146 .skpcr_mask = SKPCR_I2SCLKEN | SKPCR_L3CLKEN,
147 .dma = true,
145 .devid = SA1111_DEVID_SAC, 148 .devid = SA1111_DEVID_SAC,
146 .irq = { 149 .irq = {
147 AUDXMTDMADONEA, 150 AUDXMTDMADONEA,
@@ -641,10 +644,10 @@ sa1111_init_one_child(struct sa1111 *sachip, struct resource *parent,
641 dev->irq[i] = sachip->irq_base + info->irq[i]; 644 dev->irq[i] = sachip->irq_base + info->irq[i];
642 645
643 /* 646 /*
644 * If the parent device has a DMA mask associated with it, 647 * If the parent device has a DMA mask associated with it, and
645 * propagate it down to the children. 648 * this child supports DMA, propagate it down to the children.
646 */ 649 */
647 if (sachip->dev->dma_mask) { 650 if (info->dma && sachip->dev->dma_mask) {
648 dev->dma_mask = *sachip->dev->dma_mask; 651 dev->dma_mask = *sachip->dev->dma_mask;
649 dev->dev.dma_mask = &dev->dma_mask; 652 dev->dev.dma_mask = &dev->dma_mask;
650 dev->dev.coherent_dma_mask = sachip->dev->coherent_dma_mask; 653 dev->dev.coherent_dma_mask = sachip->dev->coherent_dma_mask;