summaryrefslogtreecommitdiff
path: root/drivers/nand
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-11-15Build: split COBJS value into multiple linesGrant Likely
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>
2007-09-15Fix do_div() usage in nand process outputMatthias Fuchs
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>
2007-08-15Merge with git://www.denx.de/git/u-boot.gitStefan Roese
2007-08-13Minor coding style cleanup. Update CHANGELOG.Wolfgang Denk
Signed-off-by: Wolfgang Denk <wd@denx.de>
2007-08-10Make use of generic 64bit division in nand_util.cDirk Behme
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>
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-06-22Merge with git://www.denx.de/git/u-boot.gitStefan Roese
2007-06-01Merge with /home/stefan/git/u-boot/bamboo-nandStefan Roese
2007-06-01NAND: Update nand_ecc.c to latest Linux versionStefan Roese
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>
2007-05-24[PATCH][NAND] Define the Vendor Id for Micron NAND FlashUlf Samuelsson
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>
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-12-24Merge with /home/hs/TQ/u-boot-devWolfgang Denk
2006-12-21Added support for the TQM8272 board from TQHeiko Schocher
Signed-off-by: Heiko Schocher <hs@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-10Merge with /home/stefan/git/u-boot/denxStefan Roese
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-28[PATCH] NAND: Partition name support added to NAND subsystemStefan Roese
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>
2006-10-20Add board/cpu specific NAND chip select function to 440 NDFCStefan Roese
Based on idea and implementation from Jeff Mann Patch by Stefan Roese, 20 Oct 2006
2006-10-12Fix spelling; minor code cleanup.Wolfgang Denk
2006-10-10* Several improvements to the new NAND subsystem:Stefan Roese
- 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
2006-10-09Move "ar" flags to config.mk to allow for silent "make -s"Wolfgang Denk
Based on patch by Mike Frysinger, 20 Jun 2006
2006-10-07CFG_NAND_QUIET_TEST added to not warn upon missing NAND deviceStefan Roese
Patch by Stefan Roese, 07 Oct 2006
2006-09-01Add support for a saving build objects in a separate directory.Marian Balakowicz
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.
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