[PATCH 04/11] clk: Add simple gated clock
Stephen Boyd
sboyd at codeaurora.org
Tue Sep 13 15:03:31 EDT 2011
On 08/24/11 06:15, Mark Brown wrote:
> +static int clk_gate_enable(struct clk_hw *clk)
> +{
> + struct clk_gate *gate = to_clk_gate(clk);
> + u32 reg;
> +
> + reg = __raw_readl(gate->reg);
> + reg |= 1 << gate->bit_idx;
The BIT() macro might be clearer.
--
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
More information about the linux-arm-kernel
mailing list