Hi all,
My customer is using i.MX8M Nano UL Solo.
They want to change core clock to 1.4 GHz which is the highest speed for that processor.
They find a function "clock_init" in arch/arm/mach-imx/imx8m/clock_imx8mm.c.
it initializes core clock as below,
/* Configure ARM at 1.2GHz */
clock_set_target_val(ARM_A53_CLK_ROOT, CLK_ROOT_ON |
CLK_ROOT_SOURCE_SEL(2));
intpll_configure(ANATOP_ARM_PLL, MHZ(1200));
/* Bypass CCM A53 ROOT, Switch to ARM PLL -> MUX-> CPU */
clock_set_target_val(CORE_SEL_CFG, CLK_ROOT_SOURCE_SEL(1));
Customer has below questions about these codes.
- what does "CORE_SEL_CFG" means? It is defined as 49, but I cannot find it in reference manual.
- function "intpll_configure" accepts 600MHz, 750MHz, 800MHz, 1000MHz, 1200MHz and 2000MHz.
When it is set to 2000MHz is core frequency over clock state? or capped to maximum frequency? - code "clock_set_target_val(ARM_A53_CLK_ROOT, CLK_ROOT_ON | CLK_ROOT_SOURCE_SEL(2));" seems to set "SYSTEM_PLL2_DIV2" as ARM_A53_CLK_ROOT. should it set to CLK_ROOT_SOURCE_SEL(2) ?
Thanks.