Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1215279

Re: [PATCH 1/2] clk: shmobile: add Renesas R-Car Gen3 CPG support

From Magnus Damm <magnus.damm@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] clk: shmobile: add Renesas R-Car Gen3 CPG support
Date 2015-08-28 13:00 +0200
Message-ID <q2py2-11n-1@gated-at.bofh.it> (permalink)
References <q1vct-3QR-9@gated-at.bofh.it> <q1vct-3QR-11@gated-at.bofh.it> <q1vct-3QR-7@gated-at.bofh.it> <q1DjJ-7nv-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Geert,

On Wed, Aug 26, 2015 at 4:29 PM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
> Hi Stephen,
>
> On Wed, Aug 26, 2015 at 12:46 AM, Stephen Boyd <sboyd@codeaurora.org> wrote:
>>> --- /dev/null
>>> +++ b/drivers/clk/shmobile/clk-rcar-gen3.c
>
>>> +
>>> +/*
>>> + * Reset register definitions.
>>> + */
>>> +#define MODEMR 0xe6160060
>>> +
>>> +static u32 rcar_gen3_read_mode_pins(void)
>>> +{
>>> +     static u32 mode;
>>> +     static bool mode_valid;
>>> +
>>> +     if (!mode_valid) {
>>> +             void __iomem *modemr = ioremap_nocache(MODEMR, 4);
>>> +
>>> +             BUG_ON(!modemr);
>>> +             mode = ioread32(modemr);
>>> +             iounmap(modemr);
>>> +             mode_valid = true;
>>> +     }
>>> +
>>> +     return mode;
>>> +}
>>
>> Perhaps this should be read using a syscon?
>
> Like "[PATCH/RFC 00/11] ARM: shmobile: Let CPG use syscon for MD pin values"
> (http://www.spinics.net/lists/linux-clk/msg01478.html)?
>
> It wasn't so well received...

I happen to think it is a great idea. At the same time I'm too lazy to
step up. =)

Shall we reconsider making it mandatory for R-Car Gen3?

Cheers,

/ magnus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH 1/2] clk: shmobile: add Renesas R-Car Gen3 CPG support Stephen Boyd <sboyd@codeaurora.org> - 2015-08-26 00:50 +0200
  Re: [PATCH 1/2] clk: shmobile: add Renesas R-Car Gen3 CPG support Geert Uytterhoeven <geert@linux-m68k.org> - 2015-08-26 09:30 +0200
    Re: [PATCH 1/2] clk: shmobile: add Renesas R-Car Gen3 CPG support Magnus Damm <magnus.damm@gmail.com> - 2015-08-28 13:00 +0200

csiph-web