linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: David Gibson <david@gibson.dropbear.id.au>
To: Laurent Pinchart <laurentp@cse-semaphore.com>
Cc: ben@simtec.co.uk, linuxppc-dev@ozlabs.org, linux-mtd@lists.infradead.org
Subject: Re: [PATCH 2/2] [POWERPC] Describe memory-mapped RAM&ROM chips of bindings
Date: Thu, 27 Mar 2008 20:44:01 +1100	[thread overview]
Message-ID: <20080327094401.GB10397@localhost.localdomain> (raw)
In-Reply-To: <200803271037.17654.laurentp@cse-semaphore.com>

On Thu, Mar 27, 2008 at 10:37:17AM +0100, Laurent Pinchart wrote:
> On Wednesday 26 March 2008 15:52, Segher Boessenkool wrote:
> > > +    Dedicated RAM and ROM chips are often used as storage for 
> > > temporary or
> > > +    permanent data in embedded devices. Possible usage include 
> > > non-volatile
> > > +    storage in battery-backed SRAM, semi-permanent storage in 
> > > dedicated SRAM
> > > +    to preserve data accross reboots and firmware storage in 
> > > dedicated ROM.
> > > +
> > > +     - compatible : should contain the specific model of RAM/ROM 
> > > chip(s)
> > > +       used, if known, followed by either "physmap-ram" or 
> > > "physmap-rom"
> > > +     - reg : Address range of the RAM/ROM chip
> > > +     - bank-width : Width (in bytes) of the RAM/ROM bank. Equal to the
> > > +       device width times the number of interleaved chips.
> > > +     - device-width : (optional) Width of a single RAM/ROM chip. If
> > > +       omitted, assumed to be equal to 'bank-width'.
> > 
> > Maybe I'm rehashing some old discussion here, if so, sorry; but why
> > do you have bank-width and device-width here?  What useful information
> > does it provide?  If this is about saying what the preferred (or only
> > possible) access width is, better names are in order.
> 
> device-width isn't used so we can get rid of it. bank-width is used by the 
> map_ram driver for erase operations (mapram_erase in 
> drivers/mtd/chips/map_ram.c). To be honest I'm not sure why it uses such an 
> inefficient approach instead of memsetting the whole area.

Sounds like bank-width is meaningless then, and doesn't belong in the
device tree.  The shim which instantiates the mtd device from the
device tree can make something up.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

      reply	other threads:[~2008-03-27  9:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-26 12:44 [PATCH 2/2] [POWERPC] Describe memory-mapped RAM&ROM chips of bindings Laurent Pinchart
2008-03-26 14:52 ` Segher Boessenkool
2008-03-27  9:37   ` Laurent Pinchart
2008-03-27  9:44     ` David Gibson [this message]

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=20080327094401.GB10397@localhost.localdomain \
    --to=david@gibson.dropbear.id.au \
    --cc=ben@simtec.co.uk \
    --cc=laurentp@cse-semaphore.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=linuxppc-dev@ozlabs.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;
as well as URLs for NNTP newsgroup(s).