summaryrefslogtreecommitdiffstats
path: root/drivers/nand
Commit message (Collapse)AuthorAgeFilesLines
* nand: do not write empty pages. Needed for writing UBI imagesSascha Hauer2009-12-031-6/+18
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand: refuse to write data if not beginning on a page boundarySascha Hauer2009-12-031-1/+6
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* NAND: Allow to read oob dataSascha Hauer2009-12-031-0/+41
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX: remove obsolete V2 Nand driverSascha Hauer2009-12-033-1139/+0
| | | | | | Use the generic v1 driver instead Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i.MX Nand: Set correct datawidth/pagesize in CCM moduleSascha Hauer2009-12-031-0/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand: print size parameter as unsinged not as signedMarc Kleine-Budde2009-11-231-1/+1
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* Merge branch 'for-sascha' of git://uboot.jcrosoft.org/u-boot-v2 into from-jeanSascha Hauer2009-10-285-12/+12
|\ | | | | | | | | | | | | | | | | Conflicts: board/a9m2440/a9m2440.c board/pcm043/pcm043.c drivers/nand/nand_imx.c Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/machJean-Christophe PLAGNIOL-VILLARD2009-10-225-11/+11
| | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | imx_nand: add i.MX25/i.MX35 to KconfigSascha Hauer2009-10-261-2/+2
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mxc_nand: add nand boot support for i.MX35Sascha Hauer2009-10-261-8/+30
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mxc_nand: set proper spas / ecc sizeSascha Hauer2009-10-261-0/+23
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | IMX_NAND_BASE -> IMX_NFC_BASESascha Hauer2009-10-261-1/+1
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | imx_nand: allow flash based bbtSascha Hauer2009-10-261-1/+34
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mxc_nand: Add NFC V2 supportSascha Hauer2009-10-261-25/+78
| | | | | | | | | | | | The v2 version of this controller is used on i.MX35/25 SoCs. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mxc_nand: Make main/spare areas runtime configurableSascha Hauer2009-10-261-9/+21
| | | | | | | | | | | | | | The main/spare areas are on different addresses on later versions of the controller, so make them configurable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | imx_nand: make oob read work on 512b page nandsSascha Hauer2009-10-261-3/+1
| | | | | | | | | | | | Seems READOOB isn't valid on 512b page NANDs also. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | imx_nand: add booting from 2k NAND supportSascha Hauer2009-10-261-37/+46
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mxc_nand: determine page and block size depending on NFMS bitSascha Hauer2009-10-261-13/+29
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mxc_nand: remove unused definesSascha Hauer2009-10-261-10/+0
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mxc nand: modify send_page to send all pages, not only oneSascha Hauer2009-10-261-25/+22
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mxc_nand: simplify command processingSascha Hauer2009-10-261-49/+35
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mxc_nand: remove debug paramSascha Hauer2009-10-261-7/+7
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mxc_nand: use buffersSascha Hauer2009-10-261-258/+91
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mxc_nand: introduce mxc_do_addr_cycleSascha Hauer2009-10-261-39/+47
| | | | | | | | | | | | | | | | This factors the address cycle to a seperate function. This becomes useful in a later patch where we can simplify the command processing by making use of this function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | nand_imx: merge send_read_page and send_prog_pageSascha Hauer2009-10-261-46/+15
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | nand_imx: fix largepage layoutSascha Hauer2009-10-261-15/+23
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | imx-nand : remove wrong part of commit ca326e88827e08e723046a21b18e74d41d15ace7Eric Benard2009-10-231-14/+1
|/ | | | | | | previous fix for 2k pages was wrong so remove it Signed-off-by: Eric Benard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* at91: add cpu devices common apiJean-Christophe PLAGNIOL-VILLARD2009-10-201-1/+1
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* at91sam9: move to at91Jean-Christophe PLAGNIOL-VILLARD2009-10-201-1/+1
| | | | | | this will allow to add at91rm9200 with the same api as done in the kernel Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* commands: remove maxargsSascha Hauer2009-10-193-3/+0
| | | | | | | No need to check for maximum argument counts. The commands are safe to be called with more arguments, so lets safe some bytes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: return COMMAND_ERROR_USAGESascha Hauer2009-10-193-12/+6
| | | | | | | instead of calling u_boot_cmd_usage in each command to safe space. Signed-off-by: Sascha Hauer <sha@pengutronix.de>
* nand_imx_v2: Use generic bbt scan functionSascha Hauer2009-10-051-44/+11
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand_imx_v2: Use a two staged scan processSascha Hauer2009-10-051-17/+22
| | | | | | | With the in between initialised writesize values we can further initialise our nand controller. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand_imx_v2: abstract i.MX25 specific stuff properlySascha Hauer2009-10-051-8/+43
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand_imx_v2: make nand_boot_test command more flexibleSascha Hauer2009-10-051-5/+23
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand_imx_v2: use xzalloc for data buffersSascha Hauer2009-10-051-31/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* MX25/MX35 Nand supportSascha Hauer2009-09-083-1/+1147
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand_base: We have to ignore the -EUCLEAN errorSascha Hauer2009-09-081-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx nand: Make use of optimized string functionsSascha Hauer2009-08-191-0/+8
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* imx_nand: Skip bbt scan during initializationSascha Hauer2009-08-181-0/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* nand: Add size parameterSascha Hauer2009-07-211-0/+12
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* get rid of device idsSascha Hauer2009-07-211-25/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Get rid of remaining DEVICE_TYPE_* usageSascha Hauer2009-07-211-1/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce cdevSascha Hauer2009-07-211-38/+31
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Fix 2k page size NAND for iMX27Eric Benard2009-07-161-3/+17
| | | | | Signed-off-by: Eric Benard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add basic architecture support for Samsung's S3C2410 and S3C2440 CPU.Juergen Beisert2009-07-013-0/+536
| | | | | | | | | | | It includes a - driver for the internal UART - driver for the internal NAND controller - support to boot from NAND - PLL handling - SDRAM initialisation Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
* Bring back endianess awarenessJuergen Beisert2009-07-011-0/+1
| | | | Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
* Remove all ARM __raw_* functions. They are mixed all overJuergen Beisert2009-07-012-17/+17
| | | | | | | the place. This clean up all ARM architectures to use only one set of io functions. Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
* mtd: Replace DEBUG by MTD_DEBUGSascha Hauer2009-06-103-33/+33
| | | | | | DEBUG is already used for another purpose by U-Boot Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Refactor imx-NAND-initWolfram Sang2009-06-041-8/+1
| | | | | | Put board specific stuff to board-specific files. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>