From: laurent.pinchart@ideasonboard.com (Laurent Pinchart)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH/RFC v3 15/22] clk: renesas: r8a7796: Obtain mode pin values from R-Car RST driver
Date: Fri, 03 Jun 2016 01:02:21 +0300 [thread overview]
Message-ID: <1606406.2DcGx2H7dc@avalon> (raw)
In-Reply-To: <1464808880-343-16-git-send-email-geert+renesas@glider.be>
Hi Geert,
Thank you for the patch.
On Wednesday 01 Jun 2016 21:21:13 Geert Uytterhoeven wrote:
> Obtain the values of the mode pins from the R-Car RST driver, which
> relies on the presence in DT of a device node for the RST module.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
> v3:
> - New.
> ---
> drivers/clk/renesas/r8a7796-cpg-mssr.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/clk/renesas/r8a7796-cpg-mssr.c
> b/drivers/clk/renesas/r8a7796-cpg-mssr.c index
> c84b549c14d2e57d..3db2d1cfc8cd788e 100644
> --- a/drivers/clk/renesas/r8a7796-cpg-mssr.c
> +++ b/drivers/clk/renesas/r8a7796-cpg-mssr.c
> @@ -16,6 +16,7 @@
> #include <linux/device.h>
> #include <linux/init.h>
> #include <linux/kernel.h>
> +#include <linux/soc/renesas/rcar-rst.h>
>
> #include <dt-bindings/clock/r8a7796-cpg-mssr.h>
>
> @@ -159,7 +160,12 @@ static const struct rcar_gen3_cpg_pll_config
> cpg_pll_configs[16] __initconst = { static int __init
> r8a7796_cpg_mssr_init(struct device *dev)
> {
> const struct rcar_gen3_cpg_pll_config *cpg_pll_config;
> - u32 cpg_mode = rcar_gen3_read_mode_pins();
> + u32 cpg_mode;
> + int error;
> +
> + error = rcar_rst_read_mode_pins(&cpg_mode);
> + if (error)
> + return error;
>
> cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)];
> if (!cpg_pll_config->extal_div) {
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2016-06-02 22:02 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1464808880-343-1-git-send-email-geert+renesas@glider.be>
[not found] ` <1464808880-343-3-git-send-email-geert+renesas@glider.be>
2016-06-02 5:42 ` [PATCH/RFC v3 02/22] soc: renesas: Add R-Car RST driver Dirk Behme
2016-06-10 7:58 ` Geert Uytterhoeven
2016-06-10 8:38 ` Dirk Behme
2016-06-10 13:08 ` Laurent Pinchart
2016-06-02 21:58 ` Laurent Pinchart
2016-06-10 7:54 ` Geert Uytterhoeven
[not found] ` <1464808880-343-21-git-send-email-geert+renesas@glider.be>
2016-06-02 5:54 ` [PATCH/RFC v3 20/22] clk: renesas: r8a7778: Remove obsolete r8a7778_clocks_init() Dirk Behme
2016-06-02 7:13 ` Geert Uytterhoeven
2016-06-02 5:57 ` [PATCH/RFC v3 00/22] soc: renesas: Add R-Car RST driver for obtaining mode pin state Dirk Behme
[not found] ` <1464808880-343-2-git-send-email-geert+renesas@glider.be>
2016-06-02 5:40 ` [PATCH/RFC v3 01/22] reset: Add renesas,rst DT bindings Dirk Behme
2016-06-02 21:47 ` Laurent Pinchart
2016-06-10 7:52 ` Geert Uytterhoeven
[not found] ` <1464808880-343-15-git-send-email-geert+renesas@glider.be>
2016-06-02 22:01 ` [PATCH/RFC v3 14/22] clk: renesas: r8a7795: Obtain mode pin values from R-Car RST driver Laurent Pinchart
[not found] ` <1464808880-343-16-git-send-email-geert+renesas@glider.be>
2016-06-02 22:02 ` Laurent Pinchart [this message]
[not found] ` <1464808880-343-17-git-send-email-geert+renesas@glider.be>
2016-06-02 22:02 ` [PATCH/RFC v3 16/22] clk: renesas: rcar-gen3-cpg: Remove obsolete rcar_gen3_read_mode_pins() Laurent Pinchart
2016-06-30 20:14 ` [PATCH/RFC v3 00/22] soc: renesas: Add R-Car RST driver for obtaining mode pin state Stephen Boyd
2016-09-01 11:46 ` Geert Uytterhoeven
2016-09-12 22:16 ` Stephen Boyd
2016-09-13 6:48 ` Geert Uytterhoeven
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=1606406.2DcGx2H7dc@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).