From: Lucas Stach <l.stach@pengutronix.de>
To: Michael Grzeschik <m.grzeschik@pengutronix.de>,
barebox@lists.infradead.org
Subject: Re: [PATCH] ARM: i.MX5 clock: add clock provider support
Date: Mon, 12 Nov 2018 17:20:28 +0100 [thread overview]
Message-ID: <1542039628.4011.7.camel@pengutronix.de> (raw)
In-Reply-To: <20180824123800.4927-1-m.grzeschik@pengutronix.de>
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 <m.grzeschik@pengutronix.de>
> ---
> 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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2018-11-12 16:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-24 12:38 Michael Grzeschik
2018-08-25 21:01 ` Andrey Smirnov
2018-11-12 16:20 ` Lucas Stach [this message]
2018-11-14 8:58 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1542039628.4011.7.camel@pengutronix.de \
--to=l.stach@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=m.grzeschik@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox