MLK-18205-15 soc: imx: enable cpu-freq for i.MX8MM
Enable cpu-freq driver for i.MX8MM. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Reviewed-by: Bai Ping <ping.bai@nxp.com>
This commit is contained in:
parent
be1c43512c
commit
320586f215
|
@ -424,7 +424,8 @@ static void __init imx8mq_opp_init(void)
|
|||
goto put_node;
|
||||
}
|
||||
|
||||
imx8mq_opp_check_speed_grading(cpu_dev);
|
||||
if (of_machine_is_compatible("fsl,imx8mq"))
|
||||
imx8mq_opp_check_speed_grading(cpu_dev);
|
||||
|
||||
put_node:
|
||||
of_node_put(np);
|
||||
|
@ -432,7 +433,8 @@ put_node:
|
|||
|
||||
static int __init imx8_register_cpufreq(void)
|
||||
{
|
||||
if (of_machine_is_compatible("fsl,imx8mq")) {
|
||||
if (of_machine_is_compatible("fsl,imx8mq") ||
|
||||
of_machine_is_compatible("fsl,imx8mm")) {
|
||||
imx8mq_opp_init();
|
||||
platform_device_register_simple("imx8mq-cpufreq", -1, NULL, 0);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue