public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* NAND driver
@ 2004-06-01 22:23 Thomas Gleixner
  2004-06-02  6:08 ` Pantelis Antoniou
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Gleixner @ 2004-06-01 22:23 UTC (permalink / raw)
  To: linux-mtd

Hi all,

the NAND driver has some more new features

- support for AG-AND chips (currently tested with HN29V1G91T-30)
- bad block table support (memory and flash based)
- a new API documentation (online version is available on MTD homepage)

-- 
Thomas
________________________________________________________________________
Steve Ballmer quotes the statistic that IT pros spend 70 percent of their 
time managing existing systems. That couldn’t have anything to do with 
the fact that 99 percent of these systems run Windows, could it?
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread
* NAND driver
@ 2008-02-25  9:54 Mark Underwood
  2008-02-26  9:04 ` Mark Underwood
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Underwood @ 2008-02-25  9:54 UTC (permalink / raw)
  To: linux-mtd

I’m writing a NAND driver for an ASIC. The NAND controller has been designed to handle page read &
writes with little SW intervention using interrupts or DMA, so I plan to implement the
write_page_raw & read_page_raw functions.
However, looking through nand_base.c it looks like not all NAND access go through these functions
so to start with I have implemented the cmd_ctrl function & supplied the IO_ADDR_R & IO_ADDR_W
address with the thinking that these would be a fall back when the access doesn't go through the
raw functions.
Unfortunately it seems the single write functionality of the controller is broken. The page  read
& write functionality only allow me to work in 512byte blocks so I can't write OOB that way. Can
you confirm that there are cases where OOB is written separately and if so do you have any
suggestions for getting around this problem?

Many thanks,

Mark



      ___________________________________________________________ 
Rise to the challenge for Sport Relief with Yahoo! For Good  

http://uk.promotions.yahoo.com/forgood/

^ permalink raw reply	[flat|nested] 7+ messages in thread
* NAND driver
@ 2004-04-15 19:50 Thomas Gleixner
  0 siblings, 0 replies; 7+ messages in thread
From: Thomas Gleixner @ 2004-04-15 19:50 UTC (permalink / raw)
  To: linux-mtd

Hi all,

the NAND driver was reworked to support the new 2K page size chips.
There is support for autoplacement of OOB data built in now, as discussed some 
time ago,

Status:
	JFFS2 mounts on small / large chips (current JFFS2 CVS code)
	YAFFS mounts on small chips (Patch is sent to YAFFS maillist)

Some TODO's remain, like optimization of non page aligned read access and 
support for the cached page programming, which is provided by the new Samsung 
chips. Most of this is already designed in, but not enabled yet as I wanted 
to have it working with the standard functionality first. This will happen in 
the next weeks.
And of course updating the nand html documentation.

This makes some small modifications to the board drivers neccecary. 
We need one additional buffer. The sizeof this buffer is oobsize * pages per 
block, e.g.
blocksize 16384
pagesize 512
= 32 pages per block
* 16 byte out of band data
= 512 byte buffer
The pointer must be set  _before_  calling nand_scan
The pointer for the data buffer, which was neccecary also before the change,
must be set now before calling nand_scan(), as nand_scan() contains a check 
for both pointers now.
Check the modifications in autcpu12.c for reference.


I want to say thanks to 
	Aleph One Ltd. and Toby Churchil Ltd. They supported this work
and
	llandre in Italy, who seems to be the only one in the universe who has a 
board with those new chips up and running. He did all the testing. 


Please check it out and help testing.

-- 
Thomas
________________________________________________________________________
"Free software" is a matter of liberty, not price. To understand the concept,
you should think of "free" as in "free speech,'' not as in "free beer".
________________________________________________________________________
linutronix - competence in embedded & realtime linux
http://www.linutronix.de
mail: tglx@linutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-03-26  4:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-01 22:23 NAND driver Thomas Gleixner
2004-06-02  6:08 ` Pantelis Antoniou
2004-06-02 22:04   ` Thomas Gleixner
  -- strict thread matches above, loose matches on Subject: below --
2008-02-25  9:54 Mark Underwood
2008-02-26  9:04 ` Mark Underwood
2008-03-26  4:57   ` RadhaKumar Pulyala
2004-04-15 19:50 Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox