From: Shawn Guo Date: Sat, 19 Apr 2014 02:58:22 +0000 (+0800) Subject: ARM: imx: add shared gate clock support X-Git-Tag: omap-for-v3.16/fixes-against-rc1~52^2~10^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9f28cdf21679792c30d9f5eebd01b7e04fe658f;p=pandora-kernel.git ARM: imx: add shared gate clock support It's quite common on i.MX that one gate bit controls the gating of multiple clocks, i.e. this is a shared gate. The patch adds the function imx_clk_gate2_shared() for such case. The clocks controlled by the same gate bits should call this function with a pointer to a single share count variable, so that the gate bits will only be operated on the first enabling and the last disabling of these shared gate clocks. Thanks to Gerhard Sittig for this idea. Signed-off-by: Shawn Guo --- Reading git-diff-tree failed