Commit bea75e49 authored by Angus Ainslie (Purism)'s avatar Angus Ainslie (Purism)
Browse files

soc-imx8.c : pr_warn to print out the detected speed grade

parent 400d7a0d
...@@ -361,12 +361,14 @@ static void __init imx8mq_opp_check_speed_grading(struct device *cpu_dev) ...@@ -361,12 +361,14 @@ static void __init imx8mq_opp_check_speed_grading(struct device *cpu_dev)
pr_warn("failed to disable 800MHz OPP!\n"); pr_warn("failed to disable 800MHz OPP!\n");
if (dev_pm_opp_disable(cpu_dev, 1300000000)) if (dev_pm_opp_disable(cpu_dev, 1300000000))
pr_warn("failed to disable 1.3GHz OPP!\n"); pr_warn("failed to disable 1.3GHz OPP!\n");
pr_warn("Configuring consumer grade\n");
break; break;
case OCOTP_CFG3_INDUSTRIAL: case OCOTP_CFG3_INDUSTRIAL:
if (dev_pm_opp_disable(cpu_dev, 1000000000)) if (dev_pm_opp_disable(cpu_dev, 1000000000))
pr_warn("failed to disable 1GHz OPP!\n"); pr_warn("failed to disable 1GHz OPP!\n");
if (dev_pm_opp_disable(cpu_dev, 1500000000)) if (dev_pm_opp_disable(cpu_dev, 1500000000))
pr_warn("failed to disable 1.5GHz OPP!\n"); pr_warn("failed to disable 1.5GHz OPP!\n");
pr_warn("Configuring industrial grade\n");
break; break;
default: default:
/* consumer part for default */ /* consumer part for default */
...@@ -374,6 +376,7 @@ static void __init imx8mq_opp_check_speed_grading(struct device *cpu_dev) ...@@ -374,6 +376,7 @@ static void __init imx8mq_opp_check_speed_grading(struct device *cpu_dev)
pr_warn("failed to disable 800MHz OPP!\n"); pr_warn("failed to disable 800MHz OPP!\n");
if (dev_pm_opp_disable(cpu_dev, 1300000000)) if (dev_pm_opp_disable(cpu_dev, 1300000000))
pr_warn("failed to disable 1.3GHz OPP!\n"); pr_warn("failed to disable 1.3GHz OPP!\n");
pr_warn("Configuring consumer grade\n");
break; break;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment