Marc Kleine-Budde
a4b37431be
nand: print size parameter as unsinged not as signed
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-11-23 10:55:56 +01:00
Sascha Hauer
40a5f3de4e
Merge branch 'for-sascha' of git://uboot.jcrosoft.org/u-boot-v2 into from-jean
...
Conflicts:
board/a9m2440/a9m2440.c
board/pcm043/pcm043.c
drivers/nand/nand_imx.c
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-28 10:10:56 +01:00
Sascha Hauer
e6c306669b
imx_nand: add i.MX25/i.MX35 to Kconfig
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-26 15:45:04 +01:00
Sascha Hauer
5c6f33faa3
mxc_nand: add nand boot support for i.MX35
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-26 15:43:18 +01:00
Sascha Hauer
0ab9959f5a
mxc_nand: set proper spas / ecc size
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-26 15:42:49 +01:00
Sascha Hauer
a30b9d4872
IMX_NAND_BASE -> IMX_NFC_BASE
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-26 13:12:00 +01:00
Sascha Hauer
a968fad1cd
imx_nand: allow flash based bbt
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-26 13:06:02 +01:00
Sascha Hauer
422fbc0a28
mxc_nand: Add NFC V2 support
...
The v2 version of this controller is used on i.MX35/25 SoCs.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-26 13:06:02 +01:00
Sascha Hauer
ca479dcadd
mxc_nand: Make main/spare areas runtime configurable
...
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>
2009-10-26 13:06:02 +01:00
Sascha Hauer
55d3a71dff
imx_nand: make oob read work on 512b page nands
...
Seems READOOB isn't valid on 512b page NANDs also.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-26 13:06:02 +01:00
Sascha Hauer
ef0aa39fb4
imx_nand: add booting from 2k NAND support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-26 13:06:02 +01:00
Sascha Hauer
011f6dca89
mxc_nand: determine page and block size depending on NFMS bit
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-26 13:06:02 +01:00
Sascha Hauer
9a9477323d
mxc_nand: remove unused defines
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-26 13:06:01 +01:00
Sascha Hauer
0596c0f8b7
mxc nand: modify send_page to send all pages, not only one
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-26 13:06:01 +01:00
Sascha Hauer
a0446d65ca
mxc_nand: simplify command processing
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-26 13:06:01 +01:00
Sascha Hauer
c90018407f
mxc_nand: remove debug param
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-26 13:06:01 +01:00
Sascha Hauer
7bbb4c0c8e
mxc_nand: use buffers
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-26 13:06:01 +01:00
Sascha Hauer
1987ee65ab
mxc_nand: introduce mxc_do_addr_cycle
...
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>
2009-10-26 13:06:01 +01:00
Sascha Hauer
5c8b2a423b
nand_imx: merge send_read_page and send_prog_page
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-26 13:06:01 +01:00
Sascha Hauer
e9a313518a
nand_imx: fix largepage layout
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-26 13:06:01 +01:00
Eric Benard
8b05f7528c
imx-nand : remove wrong part of commit ca326e8882
...
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>
2009-10-23 09:42:01 +02:00
Jean-Christophe PLAGNIOL-VILLARD
f6a579da9c
[ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-22 14:21:25 +02:00
Jean-Christophe PLAGNIOL-VILLARD
7ac3805353
at91: add cpu devices common api
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2009-10-20 15:02:37 +02:00
Jean-Christophe PLAGNIOL-VILLARD
81362c2b2a
at91sam9: move to at91
...
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>
2009-10-20 15:02:36 +02:00
Sascha Hauer
420a3173f0
commands: remove maxargs
...
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>
2009-10-19 16:18:33 +02:00
Sascha Hauer
87e01f28cc
commands: return COMMAND_ERROR_USAGE
...
instead of calling u_boot_cmd_usage in each command to safe
space.
Signed-off-by: Sascha Hauer <sha@pengutronix.de>
2009-10-19 10:18:52 +02:00
Sascha Hauer
16019c2ff9
nand_imx_v2: Use generic bbt scan function
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-05 10:14:41 +02:00
Sascha Hauer
762ba0dac5
nand_imx_v2: Use a two staged scan process
...
With the in between initialised writesize values we can
further initialise our nand controller.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-05 10:13:39 +02:00
Sascha Hauer
cfc0e32d25
nand_imx_v2: abstract i.MX25 specific stuff properly
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-05 09:14:07 +02:00
Sascha Hauer
d571b52a96
nand_imx_v2: make nand_boot_test command more flexible
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-05 08:36:16 +02:00
Sascha Hauer
261fdae6db
nand_imx_v2: use xzalloc for data buffers
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-10-05 08:33:37 +02:00
Sascha Hauer
c8d8bf9d58
MX25/MX35 Nand support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-08 12:42:56 +02:00
Sascha Hauer
83ff0b6dff
nand_base: We have to ignore the -EUCLEAN error
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-09-08 12:42:55 +02:00
Sascha Hauer
2bb0a3c4dc
imx nand: Make use of optimized string functions
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-19 10:52:00 +02:00
Sascha Hauer
283736a63c
imx_nand: Skip bbt scan during initialization
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-08-18 15:45:09 +02:00
Sascha Hauer
217b7d8573
nand: Add size parameter
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 18:37:32 +02:00
Sascha Hauer
02ba8a0542
get rid of device ids
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:47 +02:00
Sascha Hauer
4b34297cfb
Get rid of remaining DEVICE_TYPE_* usage
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:46 +02:00
Sascha Hauer
a2b7cd183b
introduce cdev
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-21 16:41:44 +02:00
Eric Benard
ca326e8882
Fix 2k page size NAND for iMX27
...
Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-07-16 09:46:34 +02:00
Juergen Beisert
5139e618b8
Add basic architecture support for Samsung's S3C2410 and S3C2440 CPU.
...
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>
2009-07-01 14:36:40 +02:00
Juergen Beisert
5d56a46c0a
Bring back endianess awareness
...
Signed-off-by: Juergen Beisert <j.beisert@pengutronix.de>
2009-07-01 14:36:39 +02:00
Juergen Beisert
cd175ec7d2
Remove all ARM __raw_* functions. They are mixed all over
...
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>
2009-07-01 14:35:35 +02:00
Sascha Hauer
8bd42496f7
mtd: Replace DEBUG by MTD_DEBUG
...
DEBUG is already used for another purpose by U-Boot
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-06-10 13:54:37 +02:00
Wolfram Sang
bc4492252e
Refactor imx-NAND-init
...
Put board specific stuff to board-specific files.
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
2009-06-04 10:31:14 +02:00
Sascha Hauer
6082401d9a
nand_imx: implement proper timeout in wait_op_done
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-05-13 15:58:57 +02:00
Ivo Clarysse
bb10e16b00
u-boot v2 IMX NAND fix for i.MX21
...
Without the patch below, the result of the second READID will not
match that of the first READID, yielding
nand_get_flash_type: second ID read did not match ec,36 against a5,bd
instead of
NAND device: Manufacturer ID: 0xec, Chip ID: 0x36 (Samsung NAND
64MiB 1,8V 8-bit)
Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com>
2009-04-15 13:33:22 +02:00
Sascha Hauer
dcb35fbaf1
imx nand: Add debug command
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-14 17:10:12 +02:00
Sascha Hauer
0bf132f961
imx nand: Use correct bad block position
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-14 17:10:12 +02:00
Ivo Clarysse
fcfbd10d3c
Add Freescale i.MX21 support
...
Signed-off-by: Ivo Clarysse <ivo.clarysse@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-04-07 08:55:04 +02:00