Commit 83fe39ad authored by Anson Huang's avatar Anson Huang Committed by Viresh Kumar

cpufreq: imx-cpufreq-dt: Add i.MX8MP support

Add i.MX8MP cpufreq DT support for speed grading and market
segment check.
Reviewed-by: default avatarAbel Vesa <abel.vesa@nxp.com>
Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
[ Viresh: Minor formatting fixes ]
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 24f371f7
...@@ -35,7 +35,8 @@ static int imx_cpufreq_dt_probe(struct platform_device *pdev) ...@@ -35,7 +35,8 @@ static int imx_cpufreq_dt_probe(struct platform_device *pdev)
if (ret) if (ret)
return ret; return ret;
if (of_machine_is_compatible("fsl,imx8mn")) if (of_machine_is_compatible("fsl,imx8mn") ||
of_machine_is_compatible("fsl,imx8mp"))
speed_grade = (cell_value & IMX8MN_OCOTP_CFG3_SPEED_GRADE_MASK) speed_grade = (cell_value & IMX8MN_OCOTP_CFG3_SPEED_GRADE_MASK)
>> OCOTP_CFG3_SPEED_GRADE_SHIFT; >> OCOTP_CFG3_SPEED_GRADE_SHIFT;
else else
...@@ -54,7 +55,8 @@ static int imx_cpufreq_dt_probe(struct platform_device *pdev) ...@@ -54,7 +55,8 @@ static int imx_cpufreq_dt_probe(struct platform_device *pdev)
if (of_machine_is_compatible("fsl,imx8mm") || if (of_machine_is_compatible("fsl,imx8mm") ||
of_machine_is_compatible("fsl,imx8mq")) of_machine_is_compatible("fsl,imx8mq"))
speed_grade = 1; speed_grade = 1;
if (of_machine_is_compatible("fsl,imx8mn")) if (of_machine_is_compatible("fsl,imx8mn") ||
of_machine_is_compatible("fsl,imx8mp"))
speed_grade = 0xb; speed_grade = 0xb;
} }
......
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