diff mbox series

[U-Boot,08/14] clk: rockchip: Add SCLK_MAC_SRC clock rate setup

Message ID 1517660458-22167-1-git-send-email-david.wu@rock-chips.com
State Changes Requested
Delegated to: Philipp Tomsich
Headers show
Series Add integrated phy support for rk322x and rk3328 | expand

Commit Message

David Wu Feb. 3, 2018, 12:20 p.m. UTC
The SCLK_MAC_SRC is the same as the SCLK_MAC, it is requested
by the integrated phy usuage.

Signed-off-by: David Wu <david.wu@rock-chips.com>
---

 drivers/clk/rockchip/clk_rk322x.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Philipp Tomsich Feb. 16, 2018, 5:12 p.m. UTC | #1
> The SCLK_MAC_SRC is the same as the SCLK_MAC, it is requested
> by the integrated phy usuage.
> 
> Signed-off-by: David Wu <david.wu@rock-chips.com>
> ---
> 
>  drivers/clk/rockchip/clk_rk322x.c | 1 +
>  1 file changed, 1 insertion(+)
> 

Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Philipp Tomsich Feb. 16, 2018, 5:19 p.m. UTC | #2
> The SCLK_MAC_SRC is the same as the SCLK_MAC, it is requested
> by the integrated phy usuage.
> 
> Signed-off-by: David Wu <david.wu@rock-chips.com>
> ---
> 
>  drivers/clk/rockchip/clk_rk322x.c | 1 +
>  1 file changed, 1 insertion(+)
> 

Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
diff mbox series

Patch

diff --git a/drivers/clk/rockchip/clk_rk322x.c b/drivers/clk/rockchip/clk_rk322x.c
index 4022065..7276c4a 100644
--- a/drivers/clk/rockchip/clk_rk322x.c
+++ b/drivers/clk/rockchip/clk_rk322x.c
@@ -390,6 +390,7 @@  static ulong rk322x_clk_set_rate(struct clk *clk, ulong rate)
 	case CLK_DDR:
 		new_rate = rk322x_ddr_set_clk(priv->cru, rate);
 		break;
+	case SCLK_MAC_SRC:
 	case SCLK_MAC:
 		new_rate = rk322x_mac_set_clk(priv->cru, rate);
 		break;