[PATCH] clk: rockchip: rk3399: Add SCLK_UART4_PMU support

xiaofengvskuye xiaofengvskuye at hotmail.com
Tue Apr 2 12:02:59 CEST 2024


The SCLK_UART4_PMU clocks is used as reference clock for UART4 block.

Add simple support to get rate of SCLK_UART4_PMU clocks to fix
reference clock period configuration.

Signed-off-by: xiaofengvskuye <xiaofengvskuye at hotmail.com>
---
 drivers/clk/rockchip/clk_rk3399.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c
index c37e8a53a2..41eb13533a 100644
--- a/drivers/clk/rockchip/clk_rk3399.c
+++ b/drivers/clk/rockchip/clk_rk3399.c
@@ -1563,6 +1563,9 @@ static ulong rk3399_pmuclk_get_rate(struct clk *clk)
 	case SCLK_I2C8_PMU:
 		rate = rk3399_i2c_get_pmuclk(priv->pmucru, clk->id);
 		break;
+    case SCLK_UART4_PMU:
+		return 24000000;
+        break;
 	default:
 		return -ENOENT;
 	}
-- 
2.43.2



More information about the U-Boot mailing list