Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a49fb63c authored by Fabio Estevam's avatar Fabio Estevam Committed by Shawn Guo
Browse files

ARM: mx6: Only check for 1.2GHz for mx6quad



It is only the mx6quad variant that can run up to 1.2GHz, so add the check
accordingly.

This avoids getting the following warning on a mx6solo:

failed to disable 1.2 GHz OPP

Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarShawn Guo <shawn.guo@freescale.com>
parent 01570305
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -320,7 +320,7 @@ static void __init imx6q_opp_check_speed_grading(struct device *cpu_dev)
	val >>= OCOTP_CFG3_SPEED_SHIFT;
	val >>= OCOTP_CFG3_SPEED_SHIFT;
	val &= 0x3;
	val &= 0x3;


	if (val != OCOTP_CFG3_SPEED_1P2GHZ)
	if ((val != OCOTP_CFG3_SPEED_1P2GHZ) && cpu_is_imx6q())
		if (dev_pm_opp_disable(cpu_dev, 1200000000))
		if (dev_pm_opp_disable(cpu_dev, 1200000000))
			pr_warn("failed to disable 1.2 GHz OPP\n");
			pr_warn("failed to disable 1.2 GHz OPP\n");
	if (val < OCOTP_CFG3_SPEED_996MHZ)
	if (val < OCOTP_CFG3_SPEED_996MHZ)