summaryrefslogtreecommitdiff
path: root/board/delta/nand.c
Commit message (Collapse)AuthorAgeLines
* rename CFG_ macros to CONFIG_SYSJean-Christophe PLAGNIOL-VILLARD2008-10-18-10/+10
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* delta, zylonite: Update nand_oobinfo to nand_ecclayout.Scott Wood2008-09-10-4/+2
| | | | | | This is part of the switch to newer upstream MTD code. Signed-off-by: Scott Wood <scottwood@freescale.com>
* drivers/mtd/nand: Move conditional compilation to MakefileJean-Christophe PLAGNIOL-VILLARD2008-08-13-1/+1
| | | | | | rename CFG_NAND_LEGACY to CONFIG_NAND_LEGACY Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Fixing coding style issuesWilliam Juul2008-08-12-1/+1
| | | | | | | | | - Fixing leading white spaces - Fixing indentation where 4 spaces are used instead of tab - Removing C++ comments (//), wherever I introduced them Signed-off-by: William Juul <william.juul@tandberg.com> Signed-off-by: Scott Wood <scottwood@freescale.com>
* Update MTD to that of Linux 2.6.22.1William Juul2008-08-12-33/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Fix some more printf() format issues.Jean-Christophe PLAGNIOL-VILLARD2008-07-13-1/+1
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* board/[d-e]*: Remove obsolete references to CONFIG_COMMANDSJon Loeliger2007-07-09-1/+1
| | | | Signed-off-by: Jon Loeliger <jdl@freescale.com>
* board/[Ma-i]*: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).Jon Loeliger2007-07-04-1/+1
| | | | | | | | | | | | | | This is a compatibility step that allows both the older form and the new form to co-exist for a while until the older can be removed entirely. All transformations are of the form: Before: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) After: #if (CONFIG_COMMANDS & CFG_CMD_AUTOSCRIPT) || defined(CONFIG_CMD_AUTOSCRIPT) Signed-off-by: Jon Loeliger <jdl@freescale.com>
* Added support for the TQM8272 board from TQHeiko Schocher2006-12-21-1/+2
| | | | Signed-off-by: Heiko Schocher <hs@denx.de>
* Merge with /home/m8/git/u-bootWolfgang Denk2006-04-12-1/+1
|\
| * Fix JFFS2 support for legacy NAND driver.Marian Balakowicz2006-04-08-1/+1
| | | | | | | | Some more NAND cleanup and small fixes.
* | Merge with http://www.denx.de/git/u-boot.gitMarkus Klotzbuecher2006-03-24-3/+3
|\ \ | |/
| * Some code cleanup for GCC 4.xWolfgang Denk2006-03-11-3/+3
| |
* | Cleanup of the monahans cpu and delta board port.Markus Klotzbuecher2006-03-20-8/+2
|/
* Merge with /home/wd/git/u-boot/masterWolfgang Denk2006-03-06-28/+26
| | | | Code cleanup.
* Cleanup of NAND support of delta board using the Monahans Data FlashMarkus Klotzbücher2006-03-06-202/+78
| | | | Controller.
* NAND finally working. Two bugs fixed:Markus Klotzbücher2006-03-06-8/+34
| | | | | | | | | * For READ_STATUS and READID commands always 8 bytes need to be read from NDDB. Otherwise they stay there and get send to flash as the first data word when writing. * In nand_base.c the oob variable is not reset so this->oob_buf is overwritten what eventually screws up the bad block descriptor table.
* Lots of new stuff:Markus Klotzbücher2006-03-04-67/+184
| | | | | | | | | | | * Debug message can be turned on and off. * Waiting for events now times out. * Implemented RESET command. * Added appropriate nand_bbt_descriptor and nand_oobinfo. Remaining Problems: * Read Status still behaves weird an returns invalid stuff sometimes. * ECC Placement does not respect our scheme in nand_oobinfo.
* Erasing works too now. The CS don't care causes problem with READSTATUS,Markus Klotzbücher2006-03-03-5/+10
| | | | don't ask me why. There are still bugs in the bad block logic.
* Write operation is working. Turned out that the READSTATUS hack was wrongMarkus Klotzbücher2006-03-03-0/+2
| | | | after all.
* Writing is working, but there's still a bug that causes the data written toMarkus Klotzbücher2006-03-03-25/+73
| | | | start at an offset of 4 bytes from the start of the page.
* Implemented writing, not working yet.Markus Klotzbücher2006-03-03-54/+158
|
* Moved the waiting loop for "Read Data Request" RDDREQ into theMarkus Klotzbücher2006-03-02-15/+19
| | | | | delta_cmdfunc function, because this bit is only set once after a command is sent and this allows read functions to be called multiple times.
* Read bug fixed. Now "nand bad" list the badblocks correctly (i hope, sinceMarkus Klotzbücher2006-03-02-2/+5
| | | | there are 0)
* Further NAND stuff implemented. Basic read commands seem to work.Markus Klotzbücher2006-03-01-83/+146
|
* Added GPIO initialization of DF signal. Still not working.Markus Klotzbücher2006-02-28-2/+40
|
* First steps implementing NAND support. Not working, fails to read ID.Markus Klotzbücher2006-02-28-0/+306