]> git.baikalelectronics.ru Git - uboot.git/commit
clk: Add get/enable/disable/release for a bulk of clocks
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 3 Apr 2018 09:44:18 +0000 (11:44 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 10 Apr 2018 15:52:16 +0000 (11:52 -0400)
commit01ff34df166f3aa0298ab79d023e9161eacb2f09
treee0dfda3432251516b9752cbf05be632331b08c3c
parent9f7fd556504c926e17c650499e2bd7a879025e02
clk: Add get/enable/disable/release for a bulk of clocks

This patch adds a "bulk" API to the clock API in order to get/enable/disable
/release a group of clocks associated with a device.

This bulk API will avoid adding a copy of the same code to manage
a group of clocks in drivers.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/clk/clk-uclass.c
include/clk.h