Skip to contentSkip to conversation

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

PATCH In review [email protected] 3 participants 3 messages Jul 8, 2019 – Jul 10, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpufreq: imx-cpufreq-dt: Add i.MX8MN support

From: Anson Huang <[email protected]>

i.MX8MN is a new SoC of i.MX8M series, it also uses speed grading and market segment fuses for OPP definitions, add support for this SoC.

---
 drivers/cpufreq/imx-cpufreq-dt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/cpufreq/imx-cpufreq-dt.c +2 -1
index b54fd26..4f85f31 100644
@@ -44,10 +44,11 @@ static int imx_cpufreq_dt_probe(struct platform_device *pdev)
 	 * According to datasheet minimum speed grading is not supported for
 	 * consumer parts so clamp to 1 to avoid warning for "no OPPs"
 	 *
-	 * Applies to 8mq and 8mm.
+	 * Applies to i.MX8M series SoCs.
 	 */
 	if (mkt_segment == 0 && speed_grade == 0 && (
 			of_machine_is_compatible("fsl,imx8mm") ||
+			of_machine_is_compatible("fsl,imx8mn") ||
 			of_machine_is_compatible("fsl,imx8mq")))
 		speed_grade = 1;
 
Signature · 1 line
2.7.4
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 17 lines · On 08-07-19, 11:03, [email protected] wrote:

From: Anson Huang <[email protected]>

i.MX8MN is a new SoC of i.MX8M series, it also uses speed grading and market segment fuses for OPP definitions, add support for this SoC.

---
 drivers/cpufreq/imx-cpufreq-dt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/cpufreq/imx-cpufreq-dt.c +0 -0
index b54fd26..4f85f31 100644
@@ -44,10 +44,11 @@ static int imx_cpufreq_dt_probe(struct platform_device *pdev)
 	 * According to datasheet minimum speed grading is not supported for

drivers/cpufreq/imx-cpufreq-dt.c static int imx_cpufreq_dt_probe(struct platform_device *pdev) · line 53

Quoted 10 lines
drivers/cpufreq/imx-cpufreq-dt.c +2 -1
 	 * consumer parts so clamp to 1 to avoid warning for "no OPPs"
 	 *
-	 * Applies to 8mq and 8mm.
+	 * Applies to i.MX8M series SoCs.
 	 */
 	if (mkt_segment == 0 && speed_grade == 0 && (
 			of_machine_is_compatible("fsl,imx8mm") ||
+			of_machine_is_compatible("fsl,imx8mn") ||
 			of_machine_is_compatible("fsl,imx8mq")))
 		speed_grade = 1;

@Rafael: Can you pick this one directly, no point sending another pull request for just one patch. Thanks.

Signature · 1 line
viresh
#2 lore raw
Quoted 31 lines · CEST Viresh Kumar
Quoted 17 lines · On 08-07-19, 11:03, [email protected] wrote:

From: Anson Huang <[email protected]>

i.MX8MN is a new SoC of i.MX8M series, it also uses speed grading and market segment fuses for OPP definitions, add support for this SoC.

---
 drivers/cpufreq/imx-cpufreq-dt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/cpufreq/imx-cpufreq-dt.c +0 -0
index b54fd26..4f85f31 100644
@@ -44,10 +44,11 @@ static int imx_cpufreq_dt_probe(struct platform_device *pdev)
 	 * According to datasheet minimum speed grading is not supported for

drivers/cpufreq/imx-cpufreq-dt.c static int imx_cpufreq_dt_probe(struct platform_device *pdev) · line 53

Quoted 10 lines
drivers/cpufreq/imx-cpufreq-dt.c +2 -1
 	 * consumer parts so clamp to 1 to avoid warning for "no OPPs"
 	 *
-	 * Applies to 8mq and 8mm.
+	 * Applies to i.MX8M series SoCs.
 	 */
 	if (mkt_segment == 0 && speed_grade == 0 && (
 			of_machine_is_compatible("fsl,imx8mm") ||
+			of_machine_is_compatible("fsl,imx8mn") ||
 			of_machine_is_compatible("fsl,imx8mq")))
 		speed_grade = 1;
Quoted 2 lines

@Rafael: Can you pick this one directly, no point sending another pull request for just one patch. Thanks.

Done, thanks!