]> git.sur5r.net Git - u-boot/commitdiff
sunxi: use setbits_le32 to enable the DMA clock
authorIan Campbell <ijc@hellion.org.uk>
Thu, 5 Jun 2014 18:00:16 +0000 (19:00 +0100)
committerIan Campbell <ijc@hellion.org.uk>
Fri, 18 Jul 2014 18:42:25 +0000 (19:42 +0100)
Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Acked-by: Hans de Goede <hdegoede@redhat.com>
arch/arm/cpu/armv7/sunxi/clock_sun4i.c

index 5a7da3c6bfa68fc492c664cc658e7710bd962f8b..b8b16cff951aee8a8ac1d65d27a0aeda3bbd1310 100644 (file)
@@ -36,8 +36,7 @@ void clock_init_safe(void)
               CPU_CLK_SRC_PLL1 << CPU_CLK_SRC_SHIFT,
               &ccm->cpu_ahb_apb0_cfg);
 #ifdef CONFIG_SUN7I
-       writel(0x1 << AHB_GATE_OFFSET_DMA | readl(&ccm->ahb_gate0),
-              &ccm->ahb_gate0);
+       setbits_le32(&ccm->ahb_gate0, 0x1 << AHB_GATE_OFFSET_DMA);
 #endif
        writel(PLL6_CFG_DEFAULT, &ccm->pll6_cfg);
 }