From: Scott Wood <scottwood@freescale.com>
To: Lu Yangbo-B47093 <yangbo.lu@freescale.com>
Cc: "ulf.hansson@linaro.org" <ulf.hansson@linaro.org>,
"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>
Subject: Re: [v2, 2/3] mmc: sdhci-of-esdhc: get SOC version and revision from GUTS_SVR
Date: Tue, 22 Sep 2015 10:35:01 -0500 [thread overview]
Message-ID: <1442936101.19102.240.camel@freescale.com> (raw)
In-Reply-To: <BY1PR0301MB119212B35DBACE0D88F274D6F2450@BY1PR0301MB1192.namprd03.prod.outlook.com>
On Tue, 2015-09-22 at 03:56 -0500, Lu Yangbo-B47093 wrote:
> > -----Original Message-----
> > From: Wood Scott-B07421
> > Sent: Wednesday, September 02, 2015 8:24 AM
> > To: Lu Yangbo-B47093
> > Cc: linux-mmc@vger.kernel.org; ulf.hansson@linaro.org
> > Subject: Re: [v2, 2/3] mmc: sdhci-of-esdhc: get SOC version and revision
> > from GUTS_SVR
> >
> > On Thu, 2015-08-27 at 17:29 +0800, Yangbo Lu wrote:
> > > @@ -24,6 +25,16 @@
> > >
> > > #define VENDOR_V_22 0x12
> > > #define VENDOR_V_23 0x13
> > > +
> > > +/* Global Utility Registers */
> > > +#define GUTS_SVR 0xa4 /* System Version Register */
> > > +/* SOC version definition */
> > > +#define SVR_T4240 0x824000
> >
> > Please do not redefine this stuff in each driver that needs to reference
> > it.
> >
> > -Scott
>
> [Lu Yangbo-B47093] SOC version definition like SVR_T4240 is in
> arch/powerpc/include/asm/mpc85xx.h
> It's only for PPC and Uffe thought it's not good to introduce non generic
> header file.
> Is there any suggestion about this?
Either use ifdefs or move it to include/linux/fsl-svr.h.
It's not only for PPC. Our ARM QorIQ chips also have SVR (accessible only
through MMIO).
-Scott
next prev parent reply other threads:[~2015-09-22 15:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-27 9:29 [v2, 2/3] mmc: sdhci-of-esdhc: get SOC version and revision from GUTS_SVR Yangbo Lu
2015-09-02 0:23 ` Scott Wood
[not found] ` <BY1PR0301MB119212B35DBACE0D88F274D6F2450@BY1PR0301MB1192.namprd03.prod.outlook.com>
2015-09-22 15:35 ` Scott Wood [this message]
2015-09-02 12:04 ` Ulf Hansson
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=1442936101.19102.240.camel@freescale.com \
--to=scottwood@freescale.com \
--cc=linux-mmc@vger.kernel.org \
--cc=ulf.hansson@linaro.org \
--cc=yangbo.lu@freescale.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox