summaryrefslogtreecommitdiff
path: root/drivers/nand/nand_base.c
AgeCommit message (Collapse)Author
2007-11-25drivers/mtd : move mtd drivers to drivers/mtdJean-Christophe PLAGNIOL-VILLARD
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2007-07-09drivers/[n-z]*: Remove obsolete references to CONFIG_COMMANDSJon Loeliger
Signed-off-by: Jon Loeliger <jdl@freescale.com>
2007-07-04drivers/: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).Jon Loeliger
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>
2007-05-05NAND: Wrong calculation of page number in nand_block_bad()Thomas Knobloch
In case that there is no memory based bad block table available the function nand_block_checkbad() in drivers/mtd/nand/nand_base.c will call nand_block_bad() directly. When parameter 'getchip' is set to zero, nand_block_bad() will not right shift the offset to calculate the correct page number. Signed-off-by: Thomas Knobloch <knobloch@siemens.com> Signed-off-by: Stefan Roese <sr@denx.de>
2007-01-05[PATCH] nand: Fix problem with oobsize calculationStefan Roese
Here the description from Brian Brelsford <Brian_Brelsford@dell.com>: The Hynix part returns a 0x1d in the 4th ID byte. The Samsung part returns a 0x15. In the code fragment below bits [1:0] determine the page size, it is ANDed via "(extid & 0x3)" then shifted out. The next field is also ANDed with 0x3. However this is a one bit field as defined in the Hynix and Samsung parts in the 4th ID byte that determins the oobsize, not a two bit field. It works on Samsung as bits[3:2] are 01. However for the Hynix there is a 11 in these two bits, so the oob size gets messed up. I checked the correct linux code and the suggested fix from Brian is also available in the linux nand mtd driver. Signed-off-by: Stefan Roese <sr@denx.de>
2006-11-30Merge with http://opensource.freescale.com/pub/scm/u-boot-83xx.gitWolfgang Denk
2006-11-28Merge http://www.denx.de/git/u-bootKim Phillips
2006-11-28[PATCH] nand: Fix patch merge problemStefan Roese
Signed-off-by: Stefan Roese <sr@denx.de>
2006-11-27Merge with /home/sr/git/u-boot/denx-alpr-merge-testWolfgang Denk
2006-11-27[PATCH] nand_wait() timeout fixesStefan Roese
Two fixes for the nand_wait() function in drivers/nand/nand_base.c: 1. Use correct timeouts. The original timeouts in Linux source are 400ms and 20ms not 40s and 20s 2. Return correct error value in case of timeout. 0 is interpreted as OK. Signed-off-by: Rui Sousa <rui.sousa@laposte.net> Signed-off-by: Stefan Roese <sr@denx.de>
2006-11-03NAND Flash verify across block boundariesNick Spence
This patch addresses a problem when CONFIG_MTD_NAND_VERIFY_WRITE is defined and the write crosses a block boundary. The pointer to the verification buffer (bufstart) is not being updated to reflect the starting of the new block so the verification of the second block fails. CHANGELOG: * Fix NAND FLASH page verification across block boundaries
2006-10-07CFG_NAND_QUIET_TEST added to not warn upon missing NAND deviceStefan Roese
Patch by Stefan Roese, 07 Oct 2006
2006-04-08Fix JFFS2 support for legacy NAND driver.Marian Balakowicz
Some more NAND cleanup and small fixes.
2006-03-11Some code cleanup for GCC 4.xWolfgang Denk
2006-03-06Merge with /home/wd/git/u-boot/masterWolfgang Denk
Code cleanup.
2006-03-06Cleanup of NAND support of delta board using the Monahans Data FlashMarkus Klotzbücher
Controller.
2006-03-06NAND finally working. Two bugs fixed:Markus Klotzbücher
* 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.
2006-03-05Re-factoring the legacy NAND code (legacy NAND now only in board-specificBartlomiej Sieka
code and in SoC code). Boards using the old way have CFG_NAND_LEGACY and BOARDLIBS = drivers/nand_legacy/libnand_legacy.a added. Build breakage for NETTA.ERR and NETTA_ISDN - will go away when the new NAND support is implemented for these boards.
2006-02-24Merge with /home/wd/git/u-boot/testing-NAND/ to add new NAND handling.Bartlomiej Sieka
2005-11-02* Add hook to NAND erase and implement nand_wait function.Wolfgang Denk
Patch by Mike Rapoport, 01 Nov 2005 Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
2005-09-14Update of new NAND codeWolfgang Denk
Patch by Ladislav Michl, 13 Sep 2005
2005-08-17Rewrite of NAND code based on what is in 2.6.12 Linux kernelWolfgang Denk
Patch by Ladislav Michl, 29 Jun 2005