summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk-gate.c
Commit message (Collapse)AuthorAgeFilesLines
* clk: gate: remove superfluous codeLucas Stach2014-10-211-10/+1
| | | | | | | This code didn't have any effect. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: gate: add CLK_GATE_HIWORD_MASK flagBeniamino Galvani2014-04-291-5/+12
| | | | | | | | | Clock gates having the CLK_GATE_HIWORD_MASK flag set use the upper 16 bits of the register as a "write enable" mask for the value in the lower 16 bits. Signed-off-by: Beniamino Galvani <b.galvani@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: gate: unify enable and disable functions handlingBeniamino Galvani2014-04-291-18/+15
| | | | | | | To avoid code duplication and make easier to introduce new flags. Signed-off-by: Beniamino Galvani <b.galvani@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: gate: add flags argument to clock gate constructorBeniamino Galvani2014-04-291-7/+5
| | | | | | | | This adds a clk_gate_flags argument to clock gate creation functions to allow the introduction of new clock gate modifiers. Signed-off-by: Beniamino Galvani <b.galvani@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: Add parent round/set rate for mux and gateSascha Hauer2014-03-281-0/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: clk-gate: pass flags to initializersSascha Hauer2014-03-281-5/+6
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* drivers/clk/clk-gate.c: Fix sparse warningAlexander Shiyan2014-02-171-1/+1
| | | | | | | drivers/clk/clk-gate.c:79:16: warning: symbol 'clk_gate_ops' was not declared. Should it be static? Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: allow to instanciate clk gate without registering itLucas Stach2013-07-021-6/+25
| | | | | | | Allows to reuse the clk gate code within other clocks. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: gate: Add inverted gate supportSascha Hauer2013-06-201-4/+33
| | | | | | This adds support for gates which need 0 to enable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: Add is_enabled callbackSascha Hauer2013-03-151-0/+14
| | | | | | | | | | | | | | | This allows us to better detect whether a clk is enabled or not. - If we can ask a clk, ask it. If it's enabled, go on and ask parents - If we can't ask it, but it can be enabled, depend on the enable_count. if it's positive, go on and ask parents - If we can't ask it and it cannot be enabled, assume it is enabled and ask parents. This makes the CLK_ALWAYS_ENABLED unnecessary, since the fixed clk now always returns 1 in its is_enabled callback. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: Add clk gate supportSascha Hauer2012-10-101-0/+78
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>