diff --git a/drivers/cpufreq/rockchip-cpufreq.c b/drivers/cpufreq/rockchip-cpufreq.c index d28c338fec39..9e7566ea5b35 100644 --- a/drivers/cpufreq/rockchip-cpufreq.c +++ b/drivers/cpufreq/rockchip-cpufreq.c @@ -240,6 +240,15 @@ static int rk3588_get_soc_info(struct device *dev, struct device_node *np, else if (value == 0xa) *bin = 2; } + if (of_property_match_string(np, "nvmem-cell-names", "customer_demand") >= 0) { + ret = rockchip_nvmem_cell_read_u8(np, "customer_demand", &value); + if (ret) { + dev_err(dev, "Failed to get customer_demand\n"); + return ret; + } + if (value == 0x3) + *bin = 4; + } if (*bin < 0) *bin = 0; dev_info(dev, "bin=%d\n", *bin);