Re: [PATCH linux-next (v2) 2/2] clk: bcm6345: Add BCM6345 gated clock support

2016-01-01 Thread Michael Turquette
Hi Simon, Quoting Simon Arlott (2015-12-10 13:50:59) > +#define to_clk_bcm6345(_hw) container_of(_hw, struct clk_bcm6345, hw) > + > +static int clk_bcm6345_enable(struct clk_hw *hw) > +{ > + struct clk_bcm6345 *gate = to_clk_bcm6345(hw); > + > + return regmap_write_bits(gate->map,

Re: [PATCH linux-next (v2) 2/2] clk: bcm6345: Add BCM6345 gated clock support

2016-01-01 Thread Michael Turquette
Hi Simon, Quoting Simon Arlott (2015-12-10 13:50:59) > +#define to_clk_bcm6345(_hw) container_of(_hw, struct clk_bcm6345, hw) > + > +static int clk_bcm6345_enable(struct clk_hw *hw) > +{ > + struct clk_bcm6345 *gate = to_clk_bcm6345(hw); > + > + return regmap_write_bits(gate->map,

[PATCH linux-next (v2) 2/2] clk: bcm6345: Add BCM6345 gated clock support

2015-12-10 Thread Simon Arlott
The BCM6345 contains clocks gated with a register. Clocks are indexed by bits in the register and are active high. Most MIPS-based BCM63xx SoCs have a clock gating set of registers, but some have clock gate bits interleaved with other status bits and configurable clocks in the same register.

[PATCH linux-next (v2) 2/2] clk: bcm6345: Add BCM6345 gated clock support

2015-12-10 Thread Simon Arlott
The BCM6345 contains clocks gated with a register. Clocks are indexed by bits in the register and are active high. Most MIPS-based BCM63xx SoCs have a clock gating set of registers, but some have clock gate bits interleaved with other status bits and configurable clocks in the same register.