summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/as3525/dma-pl081.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/dma-pl081.c')
-rw-r--r--firmware/target/arm/as3525/dma-pl081.c4
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)
{
if(++dma_used == 1)
{
- CGU_PERI |= CGU_DMA_CLOCK_ENABLE;
+ bitset32(&CGU_PERI, CGU_DMA_CLOCK_ENABLE);
DMAC_CONFIGURATION |= (1<<0);
}
}
@@ -43,7 +43,7 @@ void dma_release(void)
if(--dma_used == 0)
{
DMAC_CONFIGURATION &= ~(1<<0);
- CGU_PERI &= ~CGU_DMA_CLOCK_ENABLE;
+ bitclr32(&CGU_PERI, CGU_DMA_CLOCK_ENABLE);
}
if (dma_used < 0)
panicf("dma_used < 0!");