mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 16:10:58 +00:00
rockchip: clk: rk3399: handle clk_enable requests for GMAC
Since commitba1f966725
("net: designware: add clock support"), the designware GMAC driver enables all referenced clocks. While this is a no-op for the RK3399 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 enable-op of the rk3399 clk driver to signal success to the caller when the clocks for the GMAC are enabled. References: commitba1f966725
("net: designware: add clock support") Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Tested-by: Klaus Goger <klaus.goger@theobroma-systems.com>
This commit is contained in:
parent
0bb430c849
commit
a9bdd67653
1 changed files with 10 additions and 0 deletions
|
@ -997,6 +997,16 @@ static int rk3399_clk_enable(struct clk *clk)
|
|||
case HCLK_HOST1:
|
||||
case HCLK_HOST1_ARB:
|
||||
return 0;
|
||||
|
||||
case SCLK_MAC:
|
||||
case SCLK_MAC_RX:
|
||||
case SCLK_MAC_TX:
|
||||
case SCLK_MACREF:
|
||||
case SCLK_MACREF_OUT:
|
||||
case ACLK_GMAC:
|
||||
case PCLK_GMAC:
|
||||
/* Required to successfully probe the Designware GMAC driver */
|
||||
return 0;
|
||||
}
|
||||
|
||||
debug("%s: unsupported clk %ld\n", __func__, clk->id);
|
||||
|
|
Loading…
Reference in a new issue