Skip to content

Commit

Permalink
sunxi: use setbits_le32 to enable the DMA clock
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Acked-by: Hans de Goede <hdegoede@redhat.com>
  • Loading branch information
ijc committed Jul 18, 2014
1 parent abce2c6 commit 7c48b01
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/arm/cpu/armv7/sunxi/clock_sun4i.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7c48b01

Please sign in to comment.