]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
nand/mpc512x: Add MPC512x NAND support (NFC)
authorStefan Roese <sr@denx.de>
Tue, 9 Jun 2009 14:57:03 +0000 (16:57 +0200)
committerWolfgang Denk <wd@denx.de>
Fri, 12 Jun 2009 18:47:19 +0000 (20:47 +0200)
commit35f2edbb6cad043ccd5ea6e78fe9b7aa21d8395f
treee247c043d973fd33457350108ca6597bc69ad56a
parente53b507cee5d976953134a565c72fd32c967d7dd
nand/mpc512x: Add MPC512x NAND support (NFC)

This patch adds NAND Flash Controller driver for MPC5121 revision 2.
All device features, except hardware ECC and power management, are
supported.

This NFC driver replaces the one orignally posted by John Rigby:

"[PATCH] Freescale NFC NAND driver"

It's a port of the Linux driver version posted by Piotr Ziecik a few
weeks ago. Using this driver has the following advantages (from my
point of view):

- Compatibility with the Linux NAND driver (e.g. ECC usage)
- Better code quality in general
- Resulting U-Boot image is a bit smaller (approx. 3k)
- Better to sync with newer Linux driver versions

The only disadvantage I can see, is that HW-ECC is not supported right
now. But this could be added later (e.g. port from Linux driver after
it's supported there). Using HW-ECC on the MCP5121 NFC has a general
problem because of the ECC usage in the spare area. This collides with
JFFS2 for example.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Piotr Ziecik <kosmo@semihalf.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: John Rigby <jcrigby@gmail.com>
Cc: Scott Wood <scottwood@freescale.com>
drivers/mtd/nand/Makefile
drivers/mtd/nand/mpc5121_nfc.c [new file with mode: 0644]