rockchip: clk: rk3399: add clk_enable function and support USB HOST0/1
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 12 Sep 2017 15:30:56 +0000 (17:30 +0200)
committerVagrant Cascadian <vagrant@debian.org>
Mon, 9 Oct 2017 22:14:03 +0000 (23:14 +0100)
commit14381a3981de2d2242ab0690b361629579aaa5ec
tree69cc955a0637e10271bb19c94105a9eb02436c65
parenteab2769d75e80f12f997b6afdc488a38cc7bc552
rockchip: clk: rk3399: add clk_enable function and support USB HOST0/1

The generic ehci-driver (ehci-generic.c) will try to enable the clocks
listed in the DTSI. If this fails (e.g. due to clk_enable not being
implemented in a driver and -ENOSYS being returned by the clk-uclass),
the driver will bail our and print an error message.

This implements a minimal clk_enable for the RK3399 and supports the
clocks mandatory for the EHCI controllers; as these are enabled by
default we simply return success.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Gbp-Pq: Topic upstream/rk3399
Gbp-Pq: Name 0004-rockchip-clk-rk3399-add-clk_enable-function-and-supp.patch
drivers/clk/rockchip/clk_rk3399.c