Re: [RFC 3/5] clk: imx8mq: Add the missing ARM clock

From: Lucas Stach
Date: Thu Feb 14 2019 - 10:53:00 EST


Am Mittwoch, den 13.02.2019, 19:05 +0000 schrieb Abel Vesa:
> Add the ARM clock as imx_clk_cpu type.
> Will be used by cpufreq.
>
> Signed-off-by: Abel Vesa <abel.vesa@xxxxxxx>

Reviewed-by: Lucas Stach <l.stach@xxxxxxxxxxxxxx>

> ---
> Âdrivers/clk/imx/clk-imx8mq.c | 6 ++++++
> Â1 file changed, 6 insertions(+)
>
> diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c
> index 57499ed..8a283cb 100644
> --- a/drivers/clk/imx/clk-imx8mq.c
> +++ b/drivers/clk/imx/clk-imx8mq.c
> @@ -558,6 +558,12 @@ static int imx8mq_clocks_probe(struct platform_device *pdev)
> Â clks[IMX8MQ_GPT_3M_CLK] = imx_clk_fixed_factor("gpt_3m", "osc_25m", 1, 8);
> Â clks[IMX8MQ_CLK_DRAM_ALT_ROOT] = imx_clk_fixed_factor("dram_alt_root", "dram_alt", 1, 4);
> Â
> + clks[IMX8MQ_CLK_ARM] = imx_clk_cpu("arm", "arm_a53_div",
> + ÂÂÂclks[IMX8MQ_CLK_A53_DIV],
> + ÂÂÂclks[IMX8MQ_CLK_A53_SRC],
> + ÂÂÂclks[IMX8MQ_ARM_PLL_OUT],
> + ÂÂÂclks[IMX8MQ_SYS1_PLL_800M]);
> +
> Â for (i = 0; i < IMX8MQ_CLK_END; i++)
> Â if (IS_ERR(clks[i]))
> Â pr_err("i.MX8mq clk %u register failed with %ld\n",