clk: rockchip: add a type from SGRF-controlled gate clocks
authorHeiko Stuebner <heiko@sntech.de>
Thu, 6 Jun 2019 08:05:40 +0000 (10:05 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 14 Jun 2019 16:56:07 +0000 (18:56 +0200)
commitb3b723d8c485af81663b5331459885536006d7fa
tree04fe0bc7dbab1a9441c3d21531fb63dbfdfd942d
parent7d2129310b8c1f22850d56b1725447aef88d8b1f
clk: rockchip: add a type from SGRF-controlled gate clocks

Some clk gates on Rockchip SoCs are part of the SGRF (secure general
register files) and thus only controllable from secure mode, with the
most prominent example being the watchdog.

In most cases we still want to define this as a real clock though,
to have complete clock tree and not reference the generic base-clock
from the devicetree.

So far we've just defined this as factor-1-1 clocks in the clock init,
so define a special clock-type for it so that this definition can be
part of the general tree-definition and save some boilerplate code.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/clk/rockchip/clk.h