From: Ian Campbell Date: Thu, 5 Jun 2014 18:00:16 +0000 (+0100) Subject: sunxi: use setbits_le32 to enable the DMA clock X-Git-Tag: v2014.10-rc1~38^2~13^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7c48b015100eeff0e1bbb766394f7beca23afb48;p=u-boot sunxi: use setbits_le32 to enable the DMA clock Signed-off-by: Ian Campbell Acked-by: Hans de Goede --- diff --git a/arch/arm/cpu/armv7/sunxi/clock_sun4i.c b/arch/arm/cpu/armv7/sunxi/clock_sun4i.c index 5a7da3c6bf..b8b16cff95 100644 --- a/arch/arm/cpu/armv7/sunxi/clock_sun4i.c +++ b/arch/arm/cpu/armv7/sunxi/clock_sun4i.c @@ -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); }