All of lore.kernel.org
 help / color / mirror / Atom feed
From: Geert Uytterhoeven <geert@linux-m68k.org>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>,
	Simon Horman <horms+renesas@verge.net.au>,
	Magnus Damm <magnus.damm@gmail.com>,
	Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
	Mark Rutland <mark.rutland@arm.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Kumar Gala <galak@codeaurora.org>,
	"Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Kevin Hilman <khilman@kernel.org>,
	Ulf Hansson <ulf.hansson@linaro.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	Linux PM list <linux-pm@vger.kernel.org>,
	linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH v3 5/7] soc: renesas: Add r8a7793 SYSC PM Domain Binding Definitions
Date: Thu, 24 Mar 2016 17:09:18 +0100	[thread overview]
Message-ID: <CAMuHMdX5dxJYNTGK31Umb_ZdAcJDf4nkVUcK=stQ-1-B-hZg7Q@mail.gmail.com> (raw)
In-Reply-To: <CAMuHMdUHZEGyGcb259-2mAW-g+Oy-eY2k_bFV=pnFrMgTRWJgw@mail.gmail.com>

On Thu, Mar 10, 2016 at 9:09 AM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
> On Thu, Mar 10, 2016 at 7:59 AM, Laurent Pinchart
> <laurent.pinchart@ideasonboard.com> wrote:
>> On Wednesday 09 March 2016 20:18:40 Geert Uytterhoeven wrote:
>>> R-Car M2-N is identical to R-Car M2-W w.r.t. power domains, so reuse the
>>> definitions from the latter.
>>>
>>> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
>
>>> --- /dev/null
>>> +++ b/include/dt-bindings/power/r8a7793-sysc.h
>>> @@ -0,0 +1,27 @@
>>> +/*
>>> + * Copyright (C) 2016 Glider bvba
>>> + *
>>> + * This program is free software; you can redistribute it and/or modify
>>> + * it under the terms of the GNU General Public License as published by
>>> + * the Free Software Foundation; version 2 of the License.
>>> + */
>>> +#ifndef __DT_BINDINGS_POWER_R8A7793_SYSC_H__
>>> +#define __DT_BINDINGS_POWER_R8A7793_SYSC_H__
>>> +
>>> +/*
>>> + * These power domain indices match the numbers of the interrupt bits
>>> + * representing the power areas in the various Interrupt Registers
>>> + * (e.g. SYSCISR, Interrupt Status Register)
>>> + *
>>> + * R-Car M2-N is identical to R-Car M2-W w.r.t. power domains.
>>> + */
>>> +
>>> +#include "r8a7791-sysc.h"
>>> +
>>> +#define R8A7793_PD_CA15_CPU0         R8A7791_PD_CA15_CPU0
>>> +#define R8A7793_PD_CA15_CPU1         R8A7791_PD_CA15_CPU1
>>> +#define R8A7793_PD_CA15_SCU          R8A7791_PD_CA15_SCU
>>> +#define R8A7793_PD_SH                        R8A7791_PD_SH
>>> +#define R8A7793_PD_SGX                       R8A7791_PD_SGX
>>
>> I would use numbers directly without including r8a7791-sysc.h, it would save
>> going through yet another file when looking for the numerical value.
>
> My main motivation of doing it this way is that r8a7791-sysc.c is also used
> on r8a7793, and thus uses the R8A7791_PD_* values directly.
>
> But if you prefer it this way, I can make that change.

Upon second thought, I'll follow Laurent's advice, as it makes r8a7793-sysc.h
self-contained.

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

  reply	other threads:[~2016-03-24 16:09 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-09 19:18 [PATCH v3 0/7] PM / Domains: Add DT bindings for the R-Car System Controller Geert Uytterhoeven
2016-03-09 19:18 ` Geert Uytterhoeven
2016-03-09 19:18 ` [PATCH v3 2/7] soc: renesas: Add r8a7779 SYSC PM Domain Binding Definitions Geert Uytterhoeven
2016-03-10  2:40   ` Laurent Pinchart
2016-03-10  8:02     ` Geert Uytterhoeven
     [not found] ` <1457551122-21838-1-git-send-email-geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org>
2016-03-09 19:18   ` [PATCH v3 1/7] PM / Domains: Add DT bindings for the R-Car System Controller Geert Uytterhoeven
2016-03-09 19:18     ` Geert Uytterhoeven
2016-03-10  2:24     ` Laurent Pinchart
2016-03-10  8:21       ` Geert Uytterhoeven
2016-03-17 19:17     ` Rob Herring
2016-03-09 19:18   ` [PATCH v3 3/7] soc: renesas: Add r8a7790 SYSC PM Domain Binding Definitions Geert Uytterhoeven
2016-03-09 19:18     ` Geert Uytterhoeven
2016-03-10  6:57     ` Laurent Pinchart
2016-03-10  8:26       ` Geert Uytterhoeven
2016-03-10  8:26         ` Geert Uytterhoeven
     [not found]         ` <CAMuHMdVy1eY1t55NSmdkJ=haFEPYWoTReecOOK-63XaJj6ztew-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-03-24 15:35           ` Geert Uytterhoeven
2016-03-24 15:35             ` Geert Uytterhoeven
2016-03-09 19:18   ` [PATCH v3 4/7] soc: renesas: Add r8a7791 " Geert Uytterhoeven
2016-03-09 19:18     ` Geert Uytterhoeven
     [not found]     ` <1457551122-21838-5-git-send-email-geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org>
2016-03-10  6:58       ` Laurent Pinchart
2016-03-10  6:58         ` Laurent Pinchart
2016-03-09 19:18   ` [PATCH v3 7/7] soc: renesas: Add r8a7795 " Geert Uytterhoeven
2016-03-09 19:18     ` Geert Uytterhoeven
2016-03-10  2:32     ` Laurent Pinchart
2016-03-10  8:17       ` Geert Uytterhoeven
2016-03-10  8:54         ` Laurent Pinchart
2016-03-09 19:18 ` [PATCH v3 5/7] soc: renesas: Add r8a7793 " Geert Uytterhoeven
2016-03-10  6:59   ` Laurent Pinchart
2016-03-10  8:09     ` Geert Uytterhoeven
2016-03-10  8:09       ` Geert Uytterhoeven
2016-03-24 16:09       ` Geert Uytterhoeven [this message]
2016-03-09 19:18 ` [PATCH v3 6/7] soc: renesas: Add r8a7794 " Geert Uytterhoeven
2016-03-10  2:35   ` Laurent Pinchart

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='CAMuHMdX5dxJYNTGK31Umb_ZdAcJDf4nkVUcK=stQ-1-B-hZg7Q@mail.gmail.com' \
    --to=geert@linux-m68k.org \
    --cc=devicetree@vger.kernel.org \
    --cc=galak@codeaurora.org \
    --cc=geert+renesas@glider.be \
    --cc=horms+renesas@verge.net.au \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=khilman@kernel.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=mark.rutland@arm.com \
    --cc=pawel.moll@arm.com \
    --cc=rjw@rjwysocki.net \
    --cc=robh+dt@kernel.org \
    --cc=ulf.hansson@linaro.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 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.