]> git.ipfire.org Git - people/ms/u-boot.git/commit
rockchip: clk: rk3368: handle clk_enable requests for GMAC
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 16 Feb 2018 15:07:25 +0000 (16:07 +0100)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Sat, 24 Feb 2018 17:46:45 +0000 (18:46 +0100)
commit35a69a3b01298e605025f4758d79f667463c9ee1
treeebe5de60a009374f599df9f595331bbdf995ded1
parenta9bdd67653c026d3f568375ca8e48fb5014c62c9
rockchip: clk: rk3368: handle clk_enable requests for GMAC

Since commit ba1f96672522 ("net: designware: add clock support"), the
designware GMAC driver enables all referenced clocks. While this is a
no-op for the RK3368 during boot-up (reset behaviour has all the clock
gates open anyway), we still need to handle the clock-ids passed in
the enable op of the clock-driver and return a success.

This change extends the RK3368 clk driver to:
(a) provide a enable op
(b) signals success to the caller when the clocks for the GMAC are
    enabled (no actual action is necessary as the gates are open
    after reset)

References: commit ba1f96672522 ("net: designware: add clock support")
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tested-by: Klaus Goger <klaus.goger@theobroma-systems.com>
drivers/clk/rockchip/clk_rk3368.c