19 Sep, 2012
7 commits
-
This board is the only board that still sticks to OneNAND IPL.
Remove this board, since we have SPL around for a while and
OneNAND is well supported in the SPL framework. The board can
be revived if necessary.Signed-off-by: Marek Vasut
Cc: Albert Aribaud
Cc: Kyungmin Park
Cc: Tom Rini -
After removing the Apollon board, remove the OneNAND IPL too.
There are no users for it any more.Signed-off-by: Marek Vasut
Cc: Albert Aribaud
Cc: Minkyu Kang
Cc: Tom Rini
Acked-by: Minkyu Kang -
Remove linker command line options from the SPL makefile
that force the inclusion of unreferenced command code from
linked object files. As commands are not used in the SPL,
these options resulted in an unnecessary increase in the
image size, in addition to introducing the possibility of
tricky link errors in the case where the command code
contained symbols that were not resolved by linking in the
limited objects compiled in the SPL build.Signed-off-by: Tyler Olmstead
Acked-by: Tom Rini -
Signed-off-by: Marek Vasut
Cc: Daniel Hellstrom
Cc: u-boot-dm@lists.denx.de -
cmd_bdinfo.c: In function ‘do_bdinfo’:
cmd_bdinfo.c:220:9: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:222:9: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:224:9: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:226:9: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat]
cmd_bdinfo.c:228:9: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat]Signed-off-by: Marek Vasut
Cc: Daniel Hellstrom
Cc: u-boot-dm@lists.denx.de -
greth.c: In function ‘greth_recv’:
greth.c:507:3: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘unsigned int’ [-Wformat]
greth.c:507:3: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘unsigned int’ [-Wformat]
greth.c:541:6: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
greth.c: In function ‘greth_initialize’:
greth.c:623:2: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘struct greth_regs *’ [-Wformat]
greth.c:655:3: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘struct greth_regs *’ [-Wformat]
greth.c:684:2: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘struct greth_regs *’ [-Wformat]Signed-off-by: Marek Vasut
Cc: Joe Hershberger
Cc: Daniel Hellstrom
Cc: u-boot-dm@lists.denx.de -
In board_nand_init() we only need the 'tmp' variable if MXC_NFC_V2_1 is
defined.Signed-off-by: Tom Rini
18 Sep, 2012
21 commits
-
Use the same IP revisions as in Linux in order to make the comparison more
clear.Signed-off-by: Benoît Thébaudeau
Cc: Scott Wood
Cc: Stefano Babic
Signed-off-by: Scott Wood -
There is no reason to have board configs to select the NFC IP revision. Just let
the driver detect it. BTW, remove broken NFC IP revision configs from board
config files.Signed-off-by: Benoît Thébaudeau
Cc: Scott Wood
Cc: Stefano Babic
Signed-off-by: Scott Wood -
Merge mxc_setup_config1() into board_nand_init() in order to ease the addition
of i.MX5 support in the following patches.Signed-off-by: Benoît Thébaudeau
Cc: Scott Wood
Cc: Stefano Babic
Signed-off-by: Scott Wood -
mxc_nand_read_page_raw_syndrome() should reenable ECC upon exit. This fixes ECC
errors left uncorrected after a call to this function.Signed-off-by: Benoît Thébaudeau
Cc: Scott Wood
Cc: Stefano Babic
Signed-off-by: Scott Wood -
Use _mxc_nand_enable_hwecc() instead of duplicating its code.
Signed-off-by: Benoît Thébaudeau
Cc: Scott Wood
Cc: Stefano Babic
Signed-off-by: Scott Wood -
Do not stop boot as soon as an ECC error is detected. Only stop boot for
uncorrectable ECC errors.This fixes boards no longer booting after some time because a NAND Flash bit has
flipped.Signed-off-by: Benoît Thébaudeau
Cc: Scott Wood
Cc: Stefano Babic
Signed-off-by: Scott Wood -
On the NFC IP 1.1, the 32-bit ecc_status_result value comes from 2
consecutive 16-bit registers. This patch reads all the fields of this value,
which makes a difference for 4-kiB NF pages.Signed-off-by: Benoît Thébaudeau
Cc: Scott Wood
Cc: Stefano Babic
Signed-off-by: Scott Wood -
Set the spl mxc nand driver for IP 1.1 in symmetric mode, like the mtd driver.
In this way, for both drivers, one input clock period of the NFC IP will produce
one R/W cycle.Signed-off-by: Benoît Thébaudeau
Cc: Scott Wood
Cc: Stefano Babic
Signed-off-by: Scott Wood -
The ECC_EN and INT_MSK bits of CONFIG1 are not volatile, so it is sufficient to
set them once in nfc_nand_init().Signed-off-by: Benoît Thébaudeau
Cc: Scott Wood
Cc: Stefano Babic
Signed-off-by: Scott Wood -
Merge duplicated code into functions, which is better for SPL size too.
Signed-off-by: Benoît Thébaudeau
Cc: Scott Wood
Cc: Stefano Babic
Signed-off-by: Scott Wood -
Signed-off-by: Benoît Thébaudeau
Cc: Scott Wood
Cc: Stefano Babic
Signed-off-by: Scott Wood -
This patches fixes the TODO to use same register definitions in mtd mxc_nand and
nand_spl fsl nfc drivers.Signed-off-by: Benoît Thébaudeau
Cc: Scott Wood
Cc: Stefano Babic
Signed-off-by: Scott Wood -
This is based on Linux kernel -next:
commit 14f44abf1dafc20ba42ce8616a8fc8fbd1b3712b
Author: Brian Norris
Date: Fri Jul 13 09:28:24 2012 -0700mtd: nand: allow NAND_NO_SUBPAGE_WRITE to be set from driver
The NAND_CHIPOPTIONS_MSK has limited utility and is causing real bugs. It
silently masks off at least one flag that might be set by the driver
(NAND_NO_SUBPAGE_WRITE). This breaks the GPMI NAND driver and possibly
others.Really, as long as driver writers exercise a small amount of care with
NAND_* options, this mask is not necessary at all; it was only here to
prevent certain options from accidentally being set by the driver. But the
original thought turns out to be a bad idea occasionally. Thus, kill it.Note, this patch fixes some major gpmi-nand breakage.
Signed-off-by: Marek Vasut
Cc: Brian Norris
Cc: Eric Nelson
Cc: Fabio Estevam
Cc: Otavio Salvador
Cc: Scott Wood
Signed-off-by: Scott Wood -
Micron NAND flash (e.g. MT29F4G08ABADAH4) BLOCK LOCK READ STATUS is not
the same as others. Instead of bit 1 being lock, it is #lock_tight.
To make the driver support either format, ignore bit 1 and use only
bit 0 and bit 2.Signed-off-by: Joe Hershberger
Signed-off-by: Scott Wood -
NAND_CMD_ constants for lock/unlock should be in the header
Signed-off-by: Joe Hershberger
Signed-off-by: Scott Wood -
Missed in previous cleanup.
Signed-off-by: Joe Hershberger
Signed-off-by: Scott Wood -
NAND unlock command allows an invert bit to be set to unlock all but
the selected page range.Signed-off-by: Joe Hershberger
[scottwood@freescale.com: updated docs and added comment about invert bit]
Signed-off-by: Scott Wood -
With onfi a flash is organized into one or more logical units (LUNs).
A logical unit (LUN) is the minimum unit that can independently execute
commands and report status.Mtd does not exploit LUN, so make it see a big single flash where size is
lun_size * number_of_lun.Without this patch MT29F8G08ADBDAH4 size is 512MiB instead of 1GiB.
Artem: split long line on 2 shorter ones.
This is commit 637957551c0ac80de8dfc7650d320c5a98c2c0c0 from Linux
Signed-off-by: Matthieu Castet
Acked-by: Florian Fainelli
Signed-off-by: Artem Bityutskiy
Signed-off-by: David Woodhouse
[scottwood@freescale.com: picked from Linux into U-Boot]
Reported-by: Rafael Beims
Signed-off-by: Scott Wood
17 Sep, 2012
2 commits
-
This commit enables multibus handling at Samsung's Trats development board.
Signed-off-by: Lukasz Majewski
Signed-off-by: Kyungmin Park
Cc: Minkyu Kang
Acked-by: Heiko Schocher -
Support for multiple soft I2C buses.
Multibus I2C support is achieved by defining get_multi_{sda|scl}_pin
functions to switch between multiple "soft" I2C buses.Common definition of I2C_X I2C buses is provided at .
TEST HW:
Samsung's Exynos4210 evt.0.1 - Trats development boardSigned-off-by: Lukasz Majewski
Signed-off-by: Kyungmin Park
Cc: Heiko Schocher
Cc: Minkyu Kang
Acked-by: Heiko Schocher
15 Sep, 2012
1 commit
-
In case the "fdt addr" command wasn't ran yet and any other "fdt"
subcommand was issued, the system crashed due to NULL pointer being
used.This is caused by "fdt addr" command setting up a pointer to the
FDT memory location. Prior issuing "fdt addr", the pointer is NULL
so calling any other subcommands crashed the u-boot.Signed-off-by: Marek Vasut
Cc: Simon Glass
14 Sep, 2012
2 commits
13 Sep, 2012
4 commits
-
This patch is derived from an older patch provided by atmel in its
buildroot-avr32-v3.0.0.tar.bz2Signed-off-by: Andreas Bießmann
cc: Hans-Christian Egtvedt
Acked-by: Hans-Christian Egtvedt -
This fixes the following warnings in dlmalloc seen with my gcc 4.6.
dlmalloc.c: In function 'malloc_bin_reloc':
dlmalloc.c:1493: warning: dereferencing pointer 'p' does break strict-aliasing rules
dlmalloc.c:1493: warning: dereferencing pointer 'p' does break strict-aliasing rules
dlmalloc.c:1490: note: initialized from here
dlmalloc.c:1493: note: initialized from hereThis version is tested on avr32 arch boards.
Signed-off-by: Simon Glass
Signed-off-by: Andreas Bießmann
11 Sep, 2012
3 commits
-
Prepare for device-tree driven configuration.
Signed-off-by: Michal Simek
Acked-by: Stephan Linz -
Move board specific function to board_init function in board/ folder
Remove externs from generic board.c
Use board_init_f function in board.c file.Signed-off-by: Michal Simek
Acked-by: Stephan Linz -
Fix CONFIG_SYS_HZ usage in board config.
Do not use hardcoded value. Use CONFIG_SYS_HZ instead.
Separate static configuration to single block.Signed-off-by: Michal Simek