summaryrefslogtreecommitdiff
path: root/drivers/nand
Commit message (Collapse)AuthorAgeLines
* Build: split COBJS value into multiple linesGrant Likely2007-11-15-2/+8
| | | | | | | | | This change is in preparation for condtitionial compile support in the build system. By spliting them all into seperate lines now, subsequent patches that change 'COBJS-y += ' into 'COBJS-$(CONFIG_<blah>) += ' will be less invasive and easier to review Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
* Fix do_div() usage in nand process outputMatthias Fuchs2007-09-15-5/+16
| | | | | | | | | | Fix usage of do_div() in nand erase|read|write process output. The last patch to nand_util.c introduced do_div() instead of libgcc's implementation. But do_div() returns the quotient in its first macro parameter and not as result. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
* Merge with git://www.denx.de/git/u-boot.gitStefan Roese2007-08-15-19/+18
|\
| * Minor coding style cleanup. Update CHANGELOG.Wolfgang Denk2007-08-13-5/+5
| | | | | | | | Signed-off-by: Wolfgang Denk <wd@denx.de>
| * Make use of generic 64bit division in nand_util.cDirk Behme2007-08-10-11/+10
| | | | | | | | | | | | | | Use generic 64bit division in nand_util.c. This makes nand_util.c independent of any toolchain 64bit division. Signed-off-by: Dirk Behme <dirk.behme@gmail.com>
| * drivers/[n-z]*: Remove obsolete references to CONFIG_COMMANDSJon Loeliger2007-07-09-8/+8
| | | | | | | | Signed-off-by: Jon Loeliger <jdl@freescale.com>
| * drivers/: Augment CONFIG_COMMANDS tests with defined(CONFIG_CMD_*).Jon Loeliger2007-07-04-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge with git://www.denx.de/git/u-boot.gitStefan Roese2007-06-22-136/+92
|\ \ | |/
| * Merge with /home/stefan/git/u-boot/bamboo-nandStefan Roese2007-06-01-136/+92
| |\
| | * NAND: Update nand_ecc.c to latest Linux versionStefan Roese2007-06-01-136/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch updates the nand_ecc code to the latest Linux version. The main reason for this is the more compact code. This makes it possible to include the ECC code into the NAND bootloader image (NAND_SPL) for PPC4xx. Signed-off-by: Stefan Roese <sr@denx.de>
* | | [PATCH][NAND] Define the Vendor Id for Micron NAND FlashUlf Samuelsson2007-05-24-0/+1
|/ / | | | | | | | | | | Signed-off-by: Ulf Samuelsson <ulf@atmel.com> Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Signed-off-by: Stefan Roese <sr@denx.de>
* | 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 /home/hs/TQ/u-boot-devWolfgang Denk2006-12-24-7/+10
|\
| * Added support for the TQM8272 board from TQHeiko Schocher2006-12-21-7/+12
| | | | | | | | Signed-off-by: Heiko Schocher <hs@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
|\ \
| * \ Merge with /home/stefan/git/u-boot/denxStefan Roese2006-11-10-3/+872
| |\ \ | | |/
| * | 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>
* | [PATCH] NAND: Partition name support added to NAND subsystemStefan Roese2006-10-28-9/+2
| | | | | | | | | | | | | | | | chpart, nboot and NAND subsystem related commands now accept also partition name to specify offset. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> Signed-off-by: Stefan Roese <sr@denx.de>
* | Add board/cpu specific NAND chip select function to 440 NDFCStefan Roese2006-10-20-1/+8
| | | | | | | | | | Based on idea and implementation from Jeff Mann Patch by Stefan Roese, 20 Oct 2006
* | Fix spelling; minor code cleanup.Wolfgang Denk2006-10-12-3/+3
| |
* | * Several improvements to the new NAND subsystem:Stefan Roese2006-10-10-1/+870
| | | | | | | | | | | | | | | | | | - JFFS2 related commands implemented in mtd-utils style - Support for bad blocks - Bad block testing commands - NAND lock commands Please take a look at doc/README.nand for more details Patch by Guido Classen, 10 Oct 2006
* | Move "ar" flags to config.mk to allow for silent "make -s"Wolfgang Denk2006-10-09-1/+1
|/ | | | Based on patch by Mike Frysinger, 20 Jun 2006
* Add support for a saving build objects in a separate directory.Marian Balakowicz2006-09-01-6/+35
| | | | | | | | | | | | | | | | | | | | | Modifications are based on the linux kernel approach and support two use cases: 1) Add O= to the make command line 'make O=/tmp/build all' 2) Set environement variable BUILD_DIR to point to the desired location 'export BUILD_DIR=/tmp/build' 'make' The second approach can also be used with a MAKEALL script 'export BUILD_DIR=/tmp/build' './MAKEALL' Command line 'O=' setting overrides BUILD_DIR environent variable. When none of the above methods is used the local build is performed and the object files are placed in the source directory.
* Fix JFFS2 support for legacy NAND driver.Marian Balakowicz2006-04-08-28/+7
| | | | 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-19/+27
|\ | | | | | | Code cleanup.
| * Re-factoring the legacy NAND code (legacy NAND now only in board-specificBartlomiej Sieka2006-03-05-19/+27
| | | | | | | | | | | | | | 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-13/+34
|
* * 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-506/+502
| | | | 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/+5927
Patch by Ladislav Michl, 29 Jun 2005