]> git.ipfire.org Git - people/ms/u-boot.git/commit - drivers/clk/rockchip/clk_rk3399.c
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)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Mon, 18 Sep 2017 18:40:37 +0000 (20:40 +0200)
commit2f01a2b2149c4c38467eeeddde09ac48d379aed3
tree1ec2c857e02d1894ac3e98c0af129572c51e4dde
parent8ac884974a46ae2f206b4053ea32814303912b08
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>
drivers/clk/rockchip/clk_rk3399.c