From: mark.rutland@arm.com (Mark Rutland)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] ARM: dts: zynq: Add OCM node
Date: Thu, 12 Feb 2015 15:07:10 +0000 [thread overview]
Message-ID: <20150212150709.GG1522@leverpostej> (raw)
In-Reply-To: <5c1602f83c594a72aac78c245f1830fa@BL2FFO11FD052.protection.gbl>
On Thu, Feb 12, 2015 at 02:58:36PM +0000, S?ren Brinkmann wrote:
> On Thu, 2015-02-12 at 12:01PM +0100, Michal Simek wrote:
> > On 02/12/2015 11:54 AM, Mark Rutland wrote:
> > > On Thu, Feb 12, 2015 at 10:42:47AM +0000, Michal Simek wrote:
> > >> Add OCM node for all zynq boards. OCM location
> > >> can changed but for all current boards this
> > >> is the location where OCM is.`
> > >>
> > >> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> > >> ---
> > >>
> > >> Changes in v2:
> > >> - Move node to board file suggested by Mark
> > >>
> > >> This patch is done based on discussion here.
> > >> https://lkml.org/lkml/2014/12/1/396
> > >>
> > >> Mark: I expect you won't like amba bus reference or
> > >> am I wrong?
> > >
> > > I'm fine with dropping things onto a bus in this way. If we're happy to
> > > do it for other nodes I don't see why busses should be special.
> >
> > Wonderful. I will give people some time to comment this style.
>
> Given that the location is discoverable, wouldn't it make sense to let
> 'reg' point to the ctrl/cfg registers in the SLCR and let the driver
> handle the whereabouts of the OCM location? (but I guess this is going
> in circles now, such a proposal was on the table at some point, IIRC).
> But I'd prefer:
> memory-controller at 0xfffc0000 { /* the address here would of course not match all configurations */
I'd really prefer that we keep the unit-address and reg consistent.
Given that the address may change on a per-board basis, it simply has to
live in the board file.
However, given that all boards are currently the same it could be
dropped in the SoC file for now, with a comment saying it should be
factored out to boards when the first board with a different address
comes along.
Thanks,
Mark.
next prev parent reply other threads:[~2015-02-12 15:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-12 10:42 [PATCH v2] ARM: dts: zynq: Add OCM node Michal Simek
2015-02-12 10:54 ` Mark Rutland
2015-02-12 11:01 ` Michal Simek
2015-02-12 14:58 ` Sören Brinkmann
2015-02-12 15:07 ` Mark Rutland [this message]
2015-02-12 15:09 ` Sören Brinkmann
2015-02-12 15:15 ` Michal Simek
[not found] ` <20150212145836.GZ18532@xsjandreislx>
2015-02-12 15:00 ` Michal Simek
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=20150212150709.GG1522@leverpostej \
--to=mark.rutland@arm.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