Update MTD to that of Linux 2.6.22.1
authorWilliam Juul <william.juul@datarespons.no>
Wed, 31 Oct 2007 12:53:06 +0000 (13:53 +0100)
committerScott Wood <scottwood@freescale.com>
Tue, 12 Aug 2008 16:31:15 +0000 (11:31 -0500)
commitcfa460adfdefcc30d104e1a9ee44994ee349bb7b
tree59400f96629aec9c968b0e3251628302824f5d35
parentcd82919e6c8a73b363a26f34b734923844e52d1c
Update MTD to that of Linux 2.6.22.1

A lot changed in the Linux MTD code, since it was last ported from
Linux to U-Boot. This patch takes U-Boot NAND support to the level
of Linux 2.6.22.1 and will enable support for very large NAND devices
(4KB pages) and ease the compatibility between U-Boot and Linux
filesystems.

This patch is tested on two custom boards with PPC and ARM
processors running YAFFS in U-Boot and Linux using gcc-4.1.2
cross compilers.

MAKEALL ppc/arm has some issues:
 * DOC/OneNand/nand_spl is not building (I have not tried porting
   these parts, and since I do not have any HW and I am not familiar
   with this code/HW I think its best left to someone else.)

Except for the issues mentioned above, I have ported all drivers
necessary to run MAKEALL ppc/arm without errors and warnings. Many
drivers were trivial to port, but some were not so trivial. The
following drivers must be examined carefully and maybe rewritten to
some degree:
 cpu/ppc4xx/ndfc.c
 cpu/arm926ejs/davinci/nand.c
 board/delta/nand.c
 board/zylonite/nand.c

Signed-off-by: William Juul <william.juul@tandberg.com>
Signed-off-by: Stig Olsen <stig.olsen@tandberg.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
37 files changed:
board/bf537-stamp/nand.c
board/dave/PPChameleonEVB/nand.c
board/delta/nand.c
board/esd/common/esd405ep_nand.c
board/freescale/m5329evb/nand.c
board/nc650/nand.c
board/netstar/nand.c
board/prodrive/alpr/nand.c
board/prodrive/pdnb3/nand.c
board/sc3/sc3nand.c
board/tqc/tqm8272/tqm8272.c
board/zylonite/nand.c
common/cmd_doc.c
common/cmd_nand.c
cpu/arm926ejs/davinci/nand.c
cpu/ppc4xx/ndfc.c
drivers/mtd/nand/diskonchip.c
drivers/mtd/nand/nand_base.c
drivers/mtd/nand/nand_bbt.c
drivers/mtd/nand/nand_ecc.c
drivers/mtd/nand/nand_ids.c
drivers/mtd/nand/nand_util.c
include/common.h
include/linux/err.h [new file with mode: 0644]
include/linux/mtd/blktrans.h [new file with mode: 0644]
include/linux/mtd/compat.h
include/linux/mtd/doc2000.h
include/linux/mtd/inftl-user.h [new file with mode: 0644]
include/linux/mtd/jffs2-user.h [new file with mode: 0644]
include/linux/mtd/mtd-abi.h
include/linux/mtd/mtd.h
include/linux/mtd/nand.h
include/linux/mtd/nftl-user.h [new file with mode: 0644]
include/linux/mtd/nftl.h
include/linux/mtd/ubi-header.h [new file with mode: 0644]
include/linux/mtd/ubi-user.h [new file with mode: 0644]
include/nand.h