Am Freitag, den 24.08.2018, 14:38 +0200 schrieb Michael Grzeschik:
> Currently it is impossible to get clks with clk_get(&clk, "name");
> on the mx5 platform. Change that by adding clk-imx5 as clk_provider.

It seems this patch has been forgotten. As Sascha didn't apply the
patch reworking the while MX51 clock stuff to the kernel
implementation, I think it would be good to at least pull this patch
in.

Regards,
Lucas

> Signed-off-by: Michael Grzeschik <[email protected]>
> ---
>  drivers/clk/imx/clk-imx5.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/drivers/clk/imx/clk-imx5.c b/drivers/clk/imx/clk-imx5.c
> index edebd25a38..3840122419 100644
> --- a/drivers/clk/imx/clk-imx5.c
> +++ b/drivers/clk/imx/clk-imx5.c
> @@ -60,6 +60,7 @@
> >  #define CCM_CMEOR  0x84
>  
>  static struct clk *clks[IMX5_CLK_END];
> +static struct clk_onecell_data clk_data;
>  
>  /* This is used multiple times */
>  static const char *standard_pll_sel[] = {
> @@ -411,6 +412,10 @@ static int imx51_ccm_probe(struct device_d *dev)
>  
> >     mx51_clocks_init(dev, regs);
>  
> > +   clk_data.clks = clks;
> > +   clk_data.clk_num = IMX5_CLK_END;
> > +   of_clk_add_provider(dev->device_node, of_clk_src_onecell_get, 
> > &clk_data);
> +
> >     return 0;
>  }
>  
> @@ -503,6 +508,10 @@ static int imx53_ccm_probe(struct device_d *dev)
>  
> >     mx53_clocks_init(dev, regs);
>  
> > +   clk_data.clks = clks;
> > +   clk_data.clk_num = IMX5_CLK_END;
> > +   of_clk_add_provider(dev->device_node, of_clk_src_onecell_get, 
> > &clk_data);
> +
> >     return 0;
>  }
>  

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to