LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Stephen Boyd <sboyd@kernel.org>
To: Dinh Nguyen <dinguyen@kernel.org>, linux-clk@vger.kernel.org
Cc: devicetree@vger.kernel.org, mturquette@baylibre.com,
robh+dt@kernel.org, mark.rutland@arm.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] clk: socfpga: agilex: add clock driver for the Agilex platform
Date: Mon, 06 Jan 2020 23:00:06 -0800 [thread overview]
Message-ID: <20200107070007.6D92F206DB@mail.kernel.org> (raw)
In-Reply-To: <4726f580-fe88-5b20-e869-4e31bd63c6e3@kernel.org>
Quoting Dinh Nguyen (2019-12-03 07:15:21)
> Hi Stephen,
>
> On 9/18/19 12:00 AM, Stephen Boyd wrote:
> > Quoting Dinh Nguyen (2019-09-17 18:34:59)
> >> diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile
> >> index 0cad76021297..ef2c96c0f1e0 100644
> >> --- a/drivers/clk/Makefile
> >> +++ b/drivers/clk/Makefile
> >> @@ -18,6 +18,7 @@ endif
> >>
>
> <snip>
>
> >> +struct clk *agilex_register_pll(const char *name,
> >> + const char * const *parent_names,
> >> + u8 num_parents, unsigned long flags,
> >> + void __iomem *reg, unsigned long offset)
> >> +{
> >> + struct clk *clk;
> >> + struct socfpga_pll *pll_clk;
> >> + struct clk_init_data init;
> >> +
> >> + pll_clk = kzalloc(sizeof(*pll_clk), GFP_KERNEL);
> >> + if (WARN_ON(!pll_clk))
> >> + return NULL;
> >> +
> >> + pll_clk->hw.reg = reg + offset;
> >> +
> >> + if (streq(name, SOCFPGA_BOOT_CLK))
> >> + init.ops = &clk_boot_ops;
> >> + else
> >> + init.ops = &agilex_clk_pll_ops;
> >> +
> >> + init.name = name;
> >> + init.flags = flags;
> >> +
> >> + init.num_parents = num_parents;
> >> + init.parent_names = parent_names;
> >
> > Is it possible to use the new way of specifying clk parents here so that
> > we don't have to keep using strings to describe the clk topology?
> >
>
> Can you point me to what you mean here? Perhaps a driver that is using
> this new way of specifying clk parents?
>
I'm supposed to write some documentation, but you can look for drivers
that have 'struct clk_parent_data' until I write the doc up.
$ git grep 'struct clk_parent_data' -- drivers/clk/
next prev parent reply other threads:[~2020-01-07 7:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-18 1:34 [PATCH 1/2] dt-bindings: documentation: add clock bindings information for Agilex Dinh Nguyen
2019-09-18 1:34 ` [PATCH 2/2] clk: socfpga: agilex: add clock driver for the Agilex platform Dinh Nguyen
2019-09-18 5:00 ` Stephen Boyd
2019-12-03 15:15 ` Dinh Nguyen
2020-01-07 7:00 ` Stephen Boyd [this message]
2019-09-18 4:51 ` [PATCH 1/2] dt-bindings: documentation: add clock bindings information for Agilex Stephen Boyd
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=20200107070007.6D92F206DB@mail.kernel.org \
--to=sboyd@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dinguyen@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mturquette@baylibre.com \
--cc=robh+dt@kernel.org \
--subject='Re: [PATCH 2/2] clk: socfpga: agilex: add clock driver for the Agilex platform' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).