]> git.baikalelectronics.ru Git - kernel.git/commit
clk: sunxi: Rework clock protection code
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Sat, 10 May 2014 03:33:39 +0000 (22:33 -0500)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 11 Jun 2014 08:25:01 +0000 (10:25 +0200)
commitfdbdd706f883dd66cf8714a526f798e77d339cbf
tree5c538a36fcad37b35db9e3c2b69f8ab61c1adc09
parent9c55edc407cc6ee96ad986680dc7cdca477d441e
clk: sunxi: Rework clock protection code

Since we start to have a lot of clocks to protect, some of them in a
few SoCs only, it becomes difficult to handle the clock protection
without having to add per machine exceptions.

Add per-SoC data to tell which clock to leave enabled.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Emilio López <emilio@elopez.com.ar>
drivers/clk/sunxi/clk-sunxi.c