All of lore.kernel.org
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Cc: Michael Turquette <mturquette@baylibre.com>,
	linux-clk <linux-clk@vger.kernel.org>,
	Stephen Boyd <sboyd@codeaurora.org>,
	Linux-Renesas <linux-renesas-soc@vger.kernel.org>
Subject: Re: [PATCH 1/3] clk: renesas: cpg-mssr: add common R-Car Gen2 support
Date: Wed, 26 Oct 2016 14:17:45 +0200	[thread overview]
Message-ID: <CAMuHMdUZc9ZPGAm=93586wDARhvE-wAz1jk1HRnda35GQjzG+g@mail.gmail.com> (raw)
In-Reply-To: <13815645.d8PJGpIqtG@wasted.cogentembedded.com>

On Wed, Oct 5, 2016 at 10:52 PM, Sergei Shtylyov
<sergei.shtylyov@cogentembedded.com> wrote:
> Add the common R-Car  Gen2 (and RZ/G) Clock Pulse Generator / Module Standby
> and Software Reset support code, using the CPG/MSSR driver core.
>
> Based on the proof-of-concept R8A7791 CPG/MSSR patch by Geert Uytterhoeven
> <geert+renesas@glider.be>.
>
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

> --- /dev/null
> +++ renesas/drivers/clk/renesas/rcar-gen2-cpg.c

> +
> +/*
> + * Reset register definitions.
> + */
> +#define MODEMR 0xe6160060
> +
> +u32 __init rcar_gen2_read_modemr(void)
> +{
> +       void __iomem *modemr = ioremap_nocache(MODEMR, 4);
> +       u32 mode;
> +
> +       BUG_ON(!modemr);
> +       mode = ioread32(modemr);
> +       iounmap(modemr);
> +
> +       return mode;
> +}

Once we have "[PATCH v4 00/23] soc: renesas: Add R-Car RST driver for obtaining
mode pin state" in place, we can make the RST node in DT mandatory
for SoCs using CPG/MSSR, and drop this helper function.

> --- /dev/null
> +++ renesas/drivers/clk/renesas/rcar-gen2-cpg.h
> @@ -0,0 +1,42 @@

> +u32 rcar_gen2_read_modemr(void);

Likewise.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

  parent reply	other threads:[~2016-10-26 12:17 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-05 20:50 [PATCH 0/3] Renesas R8A7743 CPG/MSSR clock support Sergei Shtylyov
2016-10-05 20:50 ` Sergei Shtylyov
2016-10-05 20:52 ` [PATCH 1/3] clk: renesas: cpg-mssr: add common R-Car Gen2 support Sergei Shtylyov
2016-10-19  8:57   ` Geert Uytterhoeven
2016-10-26 12:17   ` Geert Uytterhoeven [this message]
2016-10-05 20:54 ` [PATCH 2/3] ARM: shmobile: r8a7743: add CPG clock index macros Sergei Shtylyov
2016-10-07 19:06   ` Sergei Shtylyov
2016-10-07 19:06   ` Sergei Shtylyov
2016-10-07 19:35     ` Geert Uytterhoeven
2016-10-05 20:55 ` [PATCH 3/3] clk: renesas: cpg-mssr: add R8A7743 support Sergei Shtylyov
2016-10-07 20:35 ` [PATCH 0/3] Renesas R8A7743 CPG/MSSR clock support Sergei Shtylyov
2016-10-27 19:53 ` [PATCH v2] clk: renesas: cpg-mssr: add common R-Car Gen2 support Sergei Shtylyov
2016-11-02 11:08   ` Geert Uytterhoeven
2016-11-02 11:38     ` Geert Uytterhoeven
2016-11-02 18:11       ` Sergei Shtylyov
2016-11-02 18:19         ` Geert Uytterhoeven
2016-11-02 18:19           ` Geert Uytterhoeven
2016-11-02 18:26           ` Sergei Shtylyov
2016-11-02 13:30     ` Sergei Shtylyov
2016-11-02 21:51 ` [PATCH v3] " Sergei Shtylyov
2016-11-03 20:48 ` [PATCH v3 RESEND] " Sergei Shtylyov
2016-11-08 21:17 ` [PATCH v4] " Sergei Shtylyov
2016-11-10 12:50   ` 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='CAMuHMdUZc9ZPGAm=93586wDARhvE-wAz1jk1HRnda35GQjzG+g@mail.gmail.com' \
    --to=geert@linux-m68k.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=sboyd@codeaurora.org \
    --cc=sergei.shtylyov@cogentembedded.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.