public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Martin Fuzzey <mfuzzey@parkeon.com>
To: linux-mtd@lists.infradead.org
Subject: Boards only supporting 16bit ram writes
Date: Thu, 12 Sep 2013 16:24:25 +0200	[thread overview]
Message-ID: <5231CE99.8080703@parkeon.com> (raw)

Hello,

I have a board with a FRAM device which I am trying to get to work with 
mtd-ram, on a DT based system (i.MX53) using physmap-of.

The chip is connected to a 16 bit data bus, however the signals that are 
supposed to indicate which of the upper and lower bytes
are not connected to the processor but forced so as to use both bytes.

This means that all write operations must be done 16bits at a time (read 
operations are fine since the processor handles that).

Looking at the mtd code it seems possible to support this using specific 
mapping functions.
However it's likely to be a little complicated / ugly, especially for 
partial unaligned writes which will have to do a read, mask, write.

So my questions:
* Is there currently any way of doing this?
* Would a patch implementing it be acceptable for mainline or would it 
be a case of "go fix your hardware"?

Also while looking at this I noticed that 
Documentation/devicetree/bindings/mtd/mtd-physmap.txt refers to a property
"device-width" which is used in a number of files in 
arch/powerpc/boot/dts but I can't find any code that actually implements it.

Regards,

Martin

                 reply	other threads:[~2013-09-12 14:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=5231CE99.8080703@parkeon.com \
    --to=mfuzzey@parkeon.com \
    --cc=linux-mtd@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