diff options
Diffstat (limited to 'firmware/target/arm/as3525/dma-pl081.c')
-rw-r--r-- | firmware/target/arm/as3525/dma-pl081.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/dma-pl081.c b/firmware/target/arm/as3525/dma-pl081.c index 149488c7d1..b8c12257de 100644 --- a/firmware/target/arm/as3525/dma-pl081.c +++ b/firmware/target/arm/as3525/dma-pl081.c | |||
@@ -33,7 +33,7 @@ void dma_retain(void) | |||
33 | { | 33 | { |
34 | if(++dma_used == 1) | 34 | if(++dma_used == 1) |
35 | { | 35 | { |
36 | CGU_PERI |= CGU_DMA_CLOCK_ENABLE; | 36 | bitset32(&CGU_PERI, CGU_DMA_CLOCK_ENABLE); |
37 | DMAC_CONFIGURATION |= (1<<0); | 37 | DMAC_CONFIGURATION |= (1<<0); |
38 | } | 38 | } |
39 | } | 39 | } |
@@ -43,7 +43,7 @@ void dma_release(void) | |||
43 | if(--dma_used == 0) | 43 | if(--dma_used == 0) |
44 | { | 44 | { |
45 | DMAC_CONFIGURATION &= ~(1<<0); | 45 | DMAC_CONFIGURATION &= ~(1<<0); |
46 | CGU_PERI &= ~CGU_DMA_CLOCK_ENABLE; | 46 | bitclr32(&CGU_PERI, CGU_DMA_CLOCK_ENABLE); |
47 | } | 47 | } |
48 | if (dma_used < 0) | 48 | if (dma_used < 0) |
49 | panicf("dma_used < 0!"); | 49 | panicf("dma_used < 0!"); |