Sascha Hauer
922bb41a47
remove typedef cmd_tbl_t and replace it with struct command
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-02-01 17:25:32 +01:00
Sascha Hauer
4c96c0e1a4
i.MX nand: mx21 has a v1 type controller
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-18 16:44:58 +01:00
Sascha Hauer
a3ffa97f40
rename U-Boot-v2 project to barebox
...
This has been done with the following script:
find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \
-e 's/u2boot/barebox/g' \
-e 's/U2Boot/barebox/g' \
-e 's/U-boot V2/barebox/g' \
-e 's/u-boot v2/barebox/g' \
-e 's/U-Boot V2/barebox/g' \
-e 's/U-Boot-v2/barebox/g' \
-e 's/U_BOOT/BAREBOX/g' \
-e 's/UBOOT/BAREBOX/g' \
-e 's/uboot/barebox/g' \
-e 's/u-boot/barebox/g' \
-e 's/u_boot/barebox/g' \
-e 's/U-Boot/barebox/g' \
-e 's/U-boot/barebox/g' \
-e 's/U-BOOT/barebox/g'
find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \
xargs -0 -r rename 's/u[-_]?boot/barebox/'
It needs some manual fixup following in the next patch
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-15 10:18:30 +01:00
Eric Benard
59be9021d8
nand_imx.c : remove unused code
...
Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-09 15:35:22 +01:00
Eric Benard
68176ca7bb
nand_imx.c : add reset command
...
The RESET command was removed during the nand_imx.c driver rework.
The reset commant is necessary in order to get Micron Nand running
as they need a RESET command before being able to get any command.
Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-09 15:35:22 +01:00
Sascha Hauer
6986aa092e
i.MX Nand: Set correct datawidth/pagesize in CCM module
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-03 10:46:47 +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
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
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
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
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
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
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
Sascha Hauer
e761b60e25
i.MX NAND: ifdef MX27 specific register
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-11-10 17:53:24 +01:00
Marc Kleine-Budde
a3624bc1a6
[imx] nand: use __iomem annotation
...
This patche adds __iomem annotation to the nand_imx nand driver.
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2008-10-27 12:18:25 +01:00
Sascha Hauer
e90e319aeb
Add i.MX NAND driver
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2008-08-13 16:52:14 +02:00