From c25a99d05fcde784fb71a156b488a72b1fb55018 Mon Sep 17 00:00:00 2001 From: Finley Xiao Date: Mon, 5 Dec 2022 15:43:29 +0800 Subject: [PATCH] cpufreq: rockchip: Add support for rk3588j Signed-off-by: Finley Xiao Change-Id: I13d2ffae1253c7e5b3513c6aefcf15fb8e16eb5d --- drivers/cpufreq/rockchip-cpufreq.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/cpufreq/rockchip-cpufreq.c b/drivers/cpufreq/rockchip-cpufreq.c index 699f53e15ece..179999a37b8c 100644 --- a/drivers/cpufreq/rockchip-cpufreq.c +++ b/drivers/cpufreq/rockchip-cpufreq.c @@ -206,6 +206,9 @@ static int rk3588_get_soc_info(struct device *dev, struct device_node *np, /* RK3588M */ if (value == 0xd) *bin = 1; + /* RK3588J */ + else if (value == 0xa) + *bin = 2; } if (*bin < 0) *bin = 0; @@ -213,6 +216,7 @@ static int rk3588_get_soc_info(struct device *dev, struct device_node *np, return ret; } + static int rk3588_change_length(struct device *dev, struct device_node *np, int bin, int process, int volt_sel) {