summaryrefslogtreecommitdiff
path: root/drivers/nand/nand_base.c
Commit message (Collapse)AuthorAgeLines
* drivers/[n-z]*: Remove obsolete references to CONFIG_COMMANDSJon Loeliger2007-07-09-1/+1
| | | | Signed-off-by: Jon Loeliger <jdl@freescale.com>
* drivers/: 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>
* NAND: Wrong calculation of page number in nand_block_bad()Thomas Knobloch2007-05-05-5/+5
| | | | | | | | | | | 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>
* [PATCH] nand: Fix problem with oobsize calculationStefan Roese2007-01-05-1/+1
| | | | | | | | | | | | | | | | | | 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>
* Merge with http://opensource.freescale.com/pub/scm/u-boot-83xx.gitWolfgang Denk2006-11-30-0/+1
|\
| * Merge http://www.denx.de/git/u-bootKim Phillips2006-11-28-4/+6
| |\
| * | NAND Flash verify across block boundariesNick Spence2006-11-03-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | [PATCH] nand: Fix patch merge problemStefan Roese2006-11-28-2/+2
| |/ |/| | | | | Signed-off-by: Stefan Roese <sr@denx.de>
* | Merge with /home/sr/git/u-boot/denx-alpr-merge-testWolfgang Denk2006-11-27-0/+2
|\ \
| * | CFG_NAND_QUIET_TEST added to not warn upon missing NAND deviceStefan Roese2006-10-07-0/+2
| |/ | | | | | | Patch by Stefan Roese, 07 Oct 2006
* | [PATCH] nand_wait() timeout fixesStefan Roese2006-11-27-4/+4
|/ | | | | | | | | | | | | | 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>
* Fix JFFS2 support for legacy NAND driver.Marian Balakowicz2006-04-08-5/+1
| | | | Some more NAND cleanup and small fixes.
* Some code cleanup for GCC 4.xWolfgang Denk2006-03-11-2/+3
|
* Merge with /home/wd/git/u-boot/masterWolfgang Denk2006-03-06-5/+6
|\ | | | | | | Code cleanup.
| * Re-factoring the legacy NAND code (legacy NAND now only in board-specificBartlomiej Sieka2006-03-05-5/+6
| | | | | | | | | | | | | | 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.
* | Cleanup of NAND support of delta board using the Monahans Data FlashMarkus Klotzbücher2006-03-06-7/+1
| | | | | | | | Controller.
* | NAND finally working. Two bugs fixed:Markus Klotzbücher2006-03-06-2/+11
|/ | | | | | | | | * 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.
* Merge with /home/wd/git/u-boot/testing-NAND/ to add new NAND handling.Bartlomiej Sieka2006-02-24-5/+11
|
* * Add hook to NAND erase and implement nand_wait function.Wolfgang Denk2005-11-02-3/+33
| | | | | | Patch by Mike Rapoport, 01 Nov 2005 Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
* Update of new NAND codeWolfgang Denk2005-09-14-248/+246
| | | | Patch by Ladislav Michl, 13 Sep 2005
* Rewrite of NAND code based on what is in 2.6.12 Linux kernelWolfgang Denk2005-08-17-0/+2630
Patch by Ladislav Michl, 29 Jun 2005