ARM: imx: define struct clk_gate2 on our own
authorShawn Guo <shawn.guo@freescale.com>
Fri, 18 Apr 2014 07:55:16 +0000 (15:55 +0800)
committerShawn Guo <shawn.guo@freescale.com>
Mon, 12 May 2014 14:58:48 +0000 (22:58 +0800)
commit54ee1471f82047885ec575559cb7c8466adcbef4
tree38d9e794424934f9ca173fb03f65692d904cd2d9
parent1e56f8945d17a3a55b7d4c4dd9debeda8e68af8e
ARM: imx: define struct clk_gate2 on our own

The imx clk-gate2 driver implements an i.MX specific gate clock, which
has two bits controlling the gate states.  While this is a completely
separate gate driver from the common clk-gate one, it reuses the common
clk_gate structure.  Such reusing makes the extending of clk_gate2
clumsy.  Let's define struct clk_gate2 on our own to make the driver
independent of the common clk-gate one, and ease the clk_gate2 extending
at a later time.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
arch/arm/mach-imx/clk-gate2.c