kernel-ark/drivers/clk
Viresh Kumar fbc42aab54 clk: clk-gate: Create clk_gate_endisable()
This patch tries to remove duplicate code for clk_gate clocks. This creates
another routine clk_gate_endisable() which will take care of enable/disable
clock with knowledge of CLK_GATE_SET_TO_DISABLE flag.

It works on following logic:

For enabling clock, enable = 1
	set2dis = 1	-> clear bit	-> set = 0
	set2dis = 0	-> set bit	-> set = 1

For disabling clock, enable = 0
	set2dis = 1	-> set bit	-> set = 1
	set2dis = 0	-> clear bit	-> set = 0

So, result is always: enable xor set2dis.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
2012-04-24 16:37:40 -07:00
..
clk-divider.c clk: pass parent_rate into .set_rate 2012-04-24 16:37:40 -07:00
clk-fixed-rate.c clk: basic: improve parent_names & return errors 2012-04-24 16:37:39 -07:00
clk-gate.c clk: clk-gate: Create clk_gate_endisable() 2012-04-24 16:37:40 -07:00
clk-mux.c clk: basic: improve parent_names & return errors 2012-04-24 16:37:39 -07:00
clk.c clk: propagate round_rate for CLK_SET_RATE_PARENT case 2012-04-24 16:37:40 -07:00
clkdev.c
Kconfig clk: make CONFIG_COMMON_CLK invisible 2012-03-19 09:37:11 +00:00
Makefile clk: basic clock hardware types 2012-03-16 20:35:02 +00:00