]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: clk-gpio: add actual gated clock
authorSvyatoslav Ryhel <clamor95@gmail.com>
Wed, 10 Jan 2024 16:09:56 +0000 (18:09 +0200)
committerSean Anderson <seanga2@gmail.com>
Tue, 30 Jan 2024 03:35:34 +0000 (22:35 -0500)
commita8dc4965f09d28a59c156437673ddb66860c847e
tree291fa96c3ed6d8e22d0fe6df906007cd650f555d
parent0bfbb830554feb32199ef143b82c7d400127b41d
clk: clk-gpio: add actual gated clock

Existing gpio-gate-clock driver acts like a simple GPIO switch without any
effect on gated clock. Add actual clock actions into enable/disable ops and
implement get_rate op by passing gated clock if it is enabled.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Link: https://lore.kernel.org/r/20240110160956.4476-2-clamor95@gmail.com
[ sorted includes ]
Signed-off-by: Sean Anderson <seanga2@gmail.com>
drivers/clk/clk-gpio.c