From: Ian Molton <spyro@f2s.com>
To: linux-mtd@lists.infradead.org
Subject: Support of stupid devices
Date: Mon, 16 Aug 2004 01:39:33 +0100 [thread overview]
Message-ID: <20040816013933.163a101d.spyro@f2s.com> (raw)
Hi.
Im porting linux to the toshiba e7xx and 8xx PDAs which contain a nand flash controller.
Im not certain, but it appears the controllerhas an odd quirk meaning byte-reads of the data register dont work as the linux mtd code expects.
AFAICT if I read a word (after issuing a chipid command) I get:
0xYYZZ75ec -- this is good - Samsung, 32MB device.
if I do two byte reads I get 0xec 0xec.
a halfword access gets me 0xYYZZ.
a misaligned (by one byte) word access gives me 0xecYYZZ75, but this fails to work for byte accesses. halfword misaligned accesses are just weird.
so basically, the only way to read the chipid is to do:
a word access to the data reg and then shift the data out
or
a word access (and mask off the high 3 bytes followed by a misaligned word access and mask off the upper 3 bytes.
clearly the former solution is the better one, but this doesnt fit in the nand driver model very well (read_byte() et.al.)
the chip is a TC6393XB (system on chip) and the flash is a samsung K9F5608UOC YCBO
next reply other threads:[~2004-08-16 0:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-16 0:39 Ian Molton [this message]
2004-08-16 13:11 ` Support of stupid devices Thomas Gleixner
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=20040816013933.163a101d.spyro@f2s.com \
--to=spyro@f2s.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