]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: imx: add an exclusive gate clock type
authorShawn Guo <shawn.guo@freescale.com>
Tue, 26 Aug 2014 07:06:33 +0000 (15:06 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:17:15 +0000 (21:17 -0600)
commit9efbea99611b71b288dd1508f31229d684431848
tree551bad4155c03bfd28e355fb1961e39aafad7801
parentb20e32664cdc913d3a4a92208f6fbf66f65833b5
ARM: imx: add an exclusive gate clock type

There are a couple of gate clocks are mutually exclusive on i.MX6, i.e.
LVDSCLK1_IBEN and LVDSCLK1_OBEN.  They cannot be enabled simultaneously.
This patches adds an exclusive gate clock type specifically for such
case.  The clock driver will need to call imx_clk_gate_exclusive() to
register a gate clock with parameter exclusive_mask indicating the mask
of gate bits which are mutually exclusive to this gate clock.

Right now, it only handles the exclusive gate clocks which are defined
in a single hardware register, which is the case we're running into
today.  But it can be extended to handle exclusive gate clocks defined
in different registers later if needed.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
(cherry-picked from commit fa5253d0d8ea0f753bf2e6e066eca0b9bfe981e9)
arch/arm/mach-imx/Makefile
arch/arm/mach-imx/clk-gate-exclusive.c [new file with mode: 0644]
arch/arm/mach-imx/clk.h