]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
cpufreq: ti: Support more speed grades on AM62Px SoC
authorJudith Mendez <jm@ti.com>
Mon, 18 Aug 2025 19:26:30 +0000 (14:26 -0500)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 22 Aug 2025 06:53:04 +0000 (12:23 +0530)
As the AM62Px SoC family matures more speed grades are being defined.
Add support for speed grades U and T which both support all currently
established OPPs.

Signed-off-by: Judith Mendez <jm@ti.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/ti-cpufreq.c

index 9a912d30931539b0cce52c5e5f6f0209f272bfeb..d6bd0d2dcf156cb95a7db6efa71d557b65227cf9 100644 (file)
@@ -72,7 +72,9 @@ enum {
 
 #define AM62P5_EFUSE_O_MPU_OPP                 15
 #define AM62P5_EFUSE_S_MPU_OPP                 19
+#define AM62P5_EFUSE_T_MPU_OPP                 20
 #define AM62P5_EFUSE_U_MPU_OPP                 21
+#define AM62P5_EFUSE_V_MPU_OPP                 22
 
 #define AM62P5_SUPPORT_O_MPU_OPP               BIT(0)
 #define AM62P5_SUPPORT_U_MPU_OPP               BIT(2)
@@ -153,7 +155,9 @@ static unsigned long am62p5_efuse_xlate(struct ti_cpufreq_data *opp_data,
        unsigned long calculated_efuse = AM62P5_SUPPORT_O_MPU_OPP;
 
        switch (efuse) {
+       case AM62P5_EFUSE_V_MPU_OPP:
        case AM62P5_EFUSE_U_MPU_OPP:
+       case AM62P5_EFUSE_T_MPU_OPP:
        case AM62P5_EFUSE_S_MPU_OPP:
                calculated_efuse |= AM62P5_SUPPORT_U_MPU_OPP;
                fallthrough;