[U-Boot] [PATCH v7 04/19] imx: mx53ard: Add support for NAND Flash

2013-02-15 Thread Benoît Thébaudeau
: Benoît Thébaudeau --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - New patch. Changes in v2: None board/freescale/mx53ard/mx53ard.c | 18 ++ include/configs/mx53ard.h | 10 ++ 2 files changed, 28 insertions

[U-Boot] [PATCH v7 01/19] nand: mxc: Prepare to add support for i.MX5

2013-02-15 Thread Benoît Thébaudeau
Add some abstraction to NFC definitions so that some parts of the current code can also be used for future i.MX5 code. Clean up a few things by the way. Signed-off-by: Benoît Thébaudeau --- Changes in v7: - Fix typo in patch description. Changes in v6: None Changes in v5: None Changes in v4

[U-Boot] [PATCH v7 03/19] imx: mx5: lowlevel_init: Simplify code

2013-02-15 Thread Benoît Thébaudeau
Don't use several instructions to build constant values. Signed-off-by: Benoît Thébaudeau Acked-by: Stefano Babic --- Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - New patch. Changes in v2: None arch/arm/cpu/armv7/mx5/lowlevel_init.S |

Re: [U-Boot] [PATCH v6 01/17] nand: mxc: Prepare to add support for i.MX5

2013-02-14 Thread Benoît Thébaudeau
On Thursday, February 14, 2013 10:14:26 PM, Benoît Thébaudeau wrote: > Add some abstraction to NFC defitnitions so that some parts of the current ^ Typo detected. Will fix. > code > can also be used for future i

Re: [U-Boot] [PATCH v6 01/17] nand: mxc: Prepare to add support for i.MX5

2013-02-14 Thread Benoît Thébaudeau
Hi Fabio, On Thursday, February 14, 2013 10:39:43 PM, Fabio Estevam wrote: > Hi Benoît, > > On Thu, Feb 14, 2013 at 7:14 PM, Benoît Thébaudeau > wrote: > > Add some abstraction to NFC defitnitions so that some parts of the current > > code > > can also

[U-Boot] [PATCH v6 11/17] arm: relocate_code(): Use __image_copy_end for end of relocation

2013-02-14 Thread Benoît Thébaudeau
Use __image_copy_end instead of __bss_start for the end of the image to relocate. This is the same as commit 033ca72, but applied to all ARM start.S. Signed-off-by: Benoît Thébaudeau --- Changes in v6: - New patch. Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v6 15/17] nand: mxc: Switch NAND SPL to generic SPL

2013-02-14 Thread Benoît Thébaudeau
This also fixes support for mx31pdk and tx25, which had been broken by commit e05e5de7fae5bec79617e113916dac6631251156. Signed-off-by: Benoît Thébaudeau --- Changes in v6: - Automate 'u-boot.imx' and 'SPL' make targets for all imx processors. - Move board_init_f() to .c.

[U-Boot] [PATCH v6 10/17] arm: relocate_code(): Remove useless relocation offset computation

2013-02-14 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau --- Changes in v6: - New patch. Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/arm1136/start.S |1 - arch/arm/cpu/arm1176/start.S |1 - arch/arm/cpu/arm720t/start.S |1 - arch/arm/cpu/arm920t

[U-Boot] [PATCH v6 17/17] arm: Remove unused relocate_code() parameters

2013-02-14 Thread Benoît Thébaudeau
Commit e05e5de7fae5bec79617e113916dac6631251156 made the 2 1st parameters of ARM's relocate_code() useless since it moved the code handling them to crt0.S. So, drop these parameters. Signed-off-by: Benoît Thébaudeau --- Changes in v6: - New patch. Changes in v5: None Changes in v4:

[U-Boot] [PATCH v6 16/17] arm926ejs: Remove deprecated and now unused NAND SPL

2013-02-14 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau --- Changes in v6: - New patch. Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/arm926ejs/start.S | 10 -- 1 file changed, 10 deletions(-) diff --git a/arch/arm/cpu/arm926ejs/start.S b/arch/arm/cpu

[U-Boot] [PATCH v6 14/17] imx: Fix automatic make targets for imx images

2013-02-14 Thread Benoît Thébaudeau
d of SPL targets not supporting the imx header on arm1136. For arm1136, the 'SPL' make target was forced to build in all cases if CONFIG_SPL_BUILD was defined, even for non-imx platforms or imx setups without an imx header. Signed-off-by: Benoît Thébaudeau --- Changes in v6: - New patch, ext

[U-Boot] [PATCH v6 12/17] arm: crt0.S: Remove bogus .globl

2013-02-14 Thread Benoît Thébaudeau
The purpose of .globl is to export symbols for ld, not to declare external symbols. Signed-off-by: Benoît Thébaudeau --- Changes in v6: - New patch. Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/lib/crt0.S | 21 - 1 file

[U-Boot] [PATCH v6 13/17] Makefile: u-boot-with-spl.bin: Fix SPL padding

2013-02-14 Thread Benoît Thébaudeau
PAD_TO is not a generic SPL configuration option, so use CONFIG_SPL_MAX_SIZE instead. We want to use --pad-to with a size, but this option expects an address, so make addresses start at 0 with --change-addresses. This does not affect the binary image. Signed-off-by: Benoît Thébaudeau

[U-Boot] [PATCH v6 07/17] arm: start.S: Fix _TEXT_BASE for SPL

2013-02-14 Thread Benoît Thébaudeau
_TEXT_BASE must be set to CONFIG_SPL_TEXT_BASE for generic SPL, and to CONFIG_SYS_TEXT_BASE for non-SPL builds. Signed-off-by: Benoît Thébaudeau --- Changes in v6: - New patch. Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/arm1136/start.S

[U-Boot] [PATCH v6 08/17] arm: relocate_code() is no longer noreturn

2013-02-14 Thread Benoît Thébaudeau
Commit e05e5de7fae5bec79617e113916dac6631251156 made ARM's relocate_code() return to its caller, but it did not update its declaration accordingly. Fixing this function declaration fixes dropped C code following calls to relocate_code(). Signed-off-by: Benoît Thébaudeau --- Changes

[U-Boot] [PATCH v6 06/17] nand: mxc: Use appropriate page number in syndrome functions

2013-02-14 Thread Benoît Thébaudeau
The syndrome functions should use the page number passed as argument instead of the page number saved upon NAND_CMD_READ0. This does not make any difference if the NAND_NO_AUTOINCR option is set, but otherwise this fixes accesses to the wrong pages. Signed-off-by: Benoît Thébaudeau --- Changes

[U-Boot] [PATCH v6 05/17] nand: mxc: Fix debug trace in mxc_nand_read_oob_syndrome()

2013-02-14 Thread Benoît Thébaudeau
The page number indicated in the debug trace of mxc_nand_read_oob_syndrome() did not match the page being worked on. By the way, replace the GCC-specific __FUNCTION__ with __func__. Signed-off-by: Benoît Thébaudeau --- Changes in v6: None Changes in v5: - Replace __FUNCTION__ with __func__

[U-Boot] [PATCH v6 09/17] arm1136: Remove redundant relocate_code() return

2013-02-14 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau --- Changes in v6: - New patch, extracted from "nand: mxc: Switch NAND SPL to generic SPL". Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/arm1136/start.S |2 -- 1 file changed, 2 deletions(-) di

[U-Boot] [PATCH v6 04/17] imx: mx53ard: Add support for NAND Flash

2013-02-14 Thread Benoît Thébaudeau
: Benoît Thébaudeau --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - New patch. Changes in v2: None board/freescale/mx53ard/mx53ard.c | 18 ++ include/configs/mx53ard.h | 10 ++ 2 files changed, 28 insertions(+) diff --git a/board

[U-Boot] [PATCH v6 02/17] nand: mxc: Add support for i.MX5

2013-02-14 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - Separate code reformatting from behavioral changes. Changes in v2: None arch/arm/include/asm/arch-mx5/imx-regs.h |9 +++ drivers/mtd/nand/mxc_nand.c | 129

[U-Boot] [PATCH v6 01/17] nand: mxc: Prepare to add support for i.MX5

2013-02-14 Thread Benoît Thébaudeau
Add some abstraction to NFC defitnitions so that some parts of the current code can also be used for future i.MX5 code. Clean up a few things by the way. Signed-off-by: Benoît Thébaudeau --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - Separate code reformatting

[U-Boot] [PATCH v6 03/17] imx: mx5: lowlevel_init: Simplify code

2013-02-14 Thread Benoît Thébaudeau
Don't use several instructions to build constant values. Signed-off-by: Benoît Thébaudeau Acked-by: Stefano Babic --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - New patch. Changes in v2: None arch/arm/cpu/armv7/mx5/lowlevel_init.S |8 ++-- 1

Re: [U-Boot] [PATCH v2] build: imx: Fix 'u-boot.imx' build without full OBJTREE reference

2013-02-12 Thread Benoît Thébaudeau
Hi Stefano, On Tuesday, February 12, 2013 6:53:39 PM, Stefano Babic wrote: > On 12/02/2013 18:55, Benoît Thébaudeau wrote: > > Hi Otavio, > > > > Hi Benoît, > > > >> Alright; It did the test Marek has requested and it works fine. I > >> thi

Re: [U-Boot] [PATCH v2] build: imx: Fix 'u-boot.imx' build without full OBJTREE reference

2013-02-12 Thread Benoît Thébaudeau
Hi Otavio, On Tuesday, February 12, 2013 6:09:43 PM, Otavio Salvador wrote: > On Tue, Feb 12, 2013 at 12:01 PM, Benoît Thébaudeau > wrote: > > Dear Otavio, Marek, > > > > On Monday, February 11, 2013 5:55:17 PM, Marek Vasut wrote: > >> Dear Otavio Salvador,

Re: [U-Boot] [PATCH v2] build: imx: Fix 'u-boot.imx' build without full OBJTREE reference

2013-02-12 Thread Benoît Thébaudeau
Dear Otavio, Marek, On Monday, February 11, 2013 5:55:17 PM, Marek Vasut wrote: > Dear Otavio Salvador, > > > When calling 'make u-boot.imx' the build were failing as it were > > expecting the full path for the file; this regression has been > > included by commit 71a988a (imximage.cfg: run files

Re: [U-Boot] [PATCH v5 8/8] nand: mxc: Switch NAND SPL to generic SPL

2013-02-12 Thread Benoît Thébaudeau
Hi Stefano, On Saturday, February 9, 2013 5:38:26 PM, Benoît Thébaudeau wrote: > On Saturday, February 9, 2013 2:53:44 PM, Benoît Thébaudeau wrote: > > On Saturday, February 9, 2013 12:47:25 AM, Benoît Thébaudeau wrote: > > > On Friday, February 8, 2013 11:49:27 PM, Benoî

Re: [U-Boot] [PATCH v5 8/8] nand: mxc: Switch NAND SPL to generic SPL

2013-02-10 Thread Benoît Thébaudeau
On Sunday, February 10, 2013 1:02:58 AM, Benoît Thébaudeau wrote: > Dear Marek Vasut, > > On Sunday, February 10, 2013 12:24:04 AM, Marek Vasut wrote: > > Dear Benoît Thébaudeau, > > > > > On Saturday, February 9, 2013 2:53:44 PM, Benoît Thébaudeau wrote: > >

Re: [U-Boot] [PATCH v5 8/8] nand: mxc: Switch NAND SPL to generic SPL

2013-02-09 Thread Benoît Thébaudeau
Dear Marek Vasut, On Sunday, February 10, 2013 12:24:04 AM, Marek Vasut wrote: > Dear Benoît Thébaudeau, > > > On Saturday, February 9, 2013 2:53:44 PM, Benoît Thébaudeau wrote: > > > On Saturday, February 9, 2013 12:47:25 AM, Benoît Thébaudeau wrote: > > > > On

Re: [U-Boot] [PATCH v5 8/8] nand: mxc: Switch NAND SPL to generic SPL

2013-02-09 Thread Benoît Thébaudeau
On Saturday, February 9, 2013 2:53:44 PM, Benoît Thébaudeau wrote: > On Saturday, February 9, 2013 12:47:25 AM, Benoît Thébaudeau wrote: > > On Friday, February 8, 2013 11:49:27 PM, Benoît Thébaudeau wrote: > > > Subject: [PATCH v5 8/8] nand: mxc: Switch NAND SPL to generic SPL &

Re: [U-Boot] [PATCH v5 8/8] nand: mxc: Switch NAND SPL to generic SPL

2013-02-09 Thread Benoît Thébaudeau
On Saturday, February 9, 2013 12:47:25 AM, Benoît Thébaudeau wrote: > On Friday, February 8, 2013 11:49:27 PM, Benoît Thébaudeau wrote: > > Subject: [PATCH v5 8/8] nand: mxc: Switch NAND SPL to generic SPL > > > > Signed-off-by: Benoît Thébaudeau > > --- > > Ch

Re: [U-Boot] [PATCH v5 8/8] nand: mxc: Switch NAND SPL to generic SPL

2013-02-08 Thread Benoît Thébaudeau
On Friday, February 8, 2013 11:49:27 PM, Benoît Thébaudeau wrote: > Subject: [PATCH v5 8/8] nand: mxc: Switch NAND SPL to generic SPL > > Signed-off-by: Benoît Thébaudeau > --- > Changes in v5: > - Remove spaces between function name and open parenthesis. > - Fix mx31pd

[U-Boot] [PATCH v5 8/8] nand: mxc: Switch NAND SPL to generic SPL

2013-02-08 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau --- Changes in v5: - Remove spaces between function name and open parenthesis. - Fix mx31pdk and tx25 Makefile-s and SPL linker scripts. - Remove the useless definition of CONFIG_SPL_LDSCRIPT. - Fix the call to nand_boot(). Changes in v4: - New patch

[U-Boot] [PATCH v5 6/8] nand: mxc: Use appropriate page number in syndrome functions

2013-02-08 Thread Benoît Thébaudeau
The syndrome functions should use the page number passed as argument instead of the page number saved upon NAND_CMD_READ0. This does not make any difference if the NAND_NO_AUTOINCR option is set, but otherwise this fixes accesses to the wrong pages. Signed-off-by: Benoît Thébaudeau --- Changes

[U-Boot] [PATCH v5 5/8] nand: mxc: Fix debug trace in mxc_nand_read_oob_syndrome()

2013-02-08 Thread Benoît Thébaudeau
The page number indicated in the debug trace of mxc_nand_read_oob_syndrome() did not match the page being worked on. By the way, replace the GCC-specific __FUNCTION__ with __func__. Signed-off-by: Benoît Thébaudeau --- Changes in v5: - Replace __FUNCTION__ with __func__. Changes in v4: - New

[U-Boot] [PATCH v5 2/8] nand: mxc: Add support for i.MX5

2013-02-08 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau --- Changes in v5: None Changes in v4: None Changes in v3: - Separate code reformatting from behavioral changes. Changes in v2: None arch/arm/include/asm/arch-mx5/imx-regs.h |9 +++ drivers/mtd/nand/mxc_nand.c | 129

[U-Boot] [PATCH v5 7/8] Makefile: u-boot-with-spl.bin: Pad to CONFIG_SPL_MAX_SIZE

2013-02-08 Thread Benoît Thébaudeau
PAD_TO is not a generic SPL configuration option, so use CONFIG_SPL_MAX_SIZE instead. Signed-off-by: Benoît Thébaudeau --- Changes in v5: None Changes in v4: - New patch. Changes in v3: None Changes in v2: None Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[U-Boot] [PATCH v5 1/8] nand: mxc: Prepare to add support for i.MX5

2013-02-08 Thread Benoît Thébaudeau
Add some abstraction to NFC defitnitions so that some parts of the current code can also be used for future i.MX5 code. Clean up a few things by the way. Signed-off-by: Benoît Thébaudeau --- Changes in v5: None Changes in v4: None Changes in v3: - Separate code reformatting from behavioral

[U-Boot] [PATCH v5 3/8] imx: mx5: lowlevel_init: Simplify code

2013-02-08 Thread Benoît Thébaudeau
Don't use several instructions to build constant values. Signed-off-by: Benoît Thébaudeau Acked-by: Stefano Babic --- Changes in v5: None Changes in v4: None Changes in v3: - New patch. Changes in v2: None arch/arm/cpu/armv7/mx5/lowlevel_init.S |8 ++-- 1 file changed, 2 inser

[U-Boot] [PATCH v5 4/8] imx: mx53ard: Add support for NAND Flash

2013-02-08 Thread Benoît Thébaudeau
: Benoît Thébaudeau --- Changes in v5: None Changes in v4: None Changes in v3: - New patch. Changes in v2: None board/freescale/mx53ard/mx53ard.c | 18 ++ include/configs/mx53ard.h | 10 ++ 2 files changed, 28 insertions(+) diff --git a/board/freescale/mx53ard

Re: [U-Boot] [PATCH v4 7/9] Makefile: u-boot-with-spl.bin: Pad to CONFIG_SPL_MAX_SIZE

2013-02-06 Thread Benoît Thébaudeau
On Wednesday, February 6, 2013 10:37:14 PM, Benoît Thébaudeau wrote: > PAD_TO is not a generic SPL configuration option, so use CONFIG_SPL_MAX_SIZE > instead. > > Signed-off-by: Benoît Thébaudeau This patch and the next 2 are rather drafts and RFCs than true patches. Don't ex

[U-Boot] [PATCH v4 8/9] nand: mxc: Switch NAND SPL to generic SPL

2013-02-06 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau --- Changes in v4: - New patch. Changes in v3: None Changes in v2: None board/freescale/mx31pdk/config.mk |5 -- .../freescale/mx31pdk/u-boot-spl.lds |0 board/karo/tx25/config.mk |5 -- .../u

[U-Boot] [PATCH v4 2/9] nand: mxc: Add support for i.MX5

2013-02-06 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau --- Changes in v4: None Changes in v3: - Separate code reformatting from behavioral changes. Changes in v2: None arch/arm/include/asm/arch-mx5/imx-regs.h |9 +++ drivers/mtd/nand/mxc_nand.c | 129 +++--- include

[U-Boot] [PATCH v4 9/9] imx: Add u-boot-with-spl.imx make target

2013-02-06 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau --- Changes in v4: - New patch. Changes in v3: None Changes in v2: None Makefile |3 +++ arch/arm/imx-common/Makefile |4 2 files changed, 7 insertions(+) diff --git a/Makefile b/Makefile index d28e608..d542725 100644 --- a

[U-Boot] [PATCH v4 6/9] nand: mxc: Use appropriate page number in syndrome functions

2013-02-06 Thread Benoît Thébaudeau
The syndrome functions should use the page number passed as argument instead of the page number saved upon NAND_CMD_READ0. This does not make any difference if the NAND_NO_AUTOINCR option is set, but otherwise this fixes accesses to the wrong pages. Signed-off-by: Benoît Thébaudeau --- Changes

[U-Boot] [PATCH v4 7/9] Makefile: u-boot-with-spl.bin: Pad to CONFIG_SPL_MAX_SIZE

2013-02-06 Thread Benoît Thébaudeau
PAD_TO is not a generic SPL configuration option, so use CONFIG_SPL_MAX_SIZE instead. Signed-off-by: Benoît Thébaudeau --- Changes in v4: - New patch. Changes in v3: None Changes in v2: None Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile

[U-Boot] [PATCH v4 4/9] imx: mx53ard: Add support for NAND Flash

2013-02-06 Thread Benoît Thébaudeau
: Benoît Thébaudeau --- Changes in v4: None Changes in v3: - New patch. Changes in v2: None board/freescale/mx53ard/mx53ard.c | 18 ++ include/configs/mx53ard.h | 10 ++ 2 files changed, 28 insertions(+) diff --git a/board/freescale/mx53ard/mx53ard.c b/board

[U-Boot] [PATCH v4 5/9] nand: mxc: Fix debug trace in mxc_nand_read_oob_syndrome()

2013-02-06 Thread Benoît Thébaudeau
The page number indicated in the debug trace of mxc_nand_read_oob_syndrome() did not match the page being worked on. Signed-off-by: Benoît Thébaudeau --- Changes in v4: - New patch. Changes in v3: None Changes in v2: None drivers/mtd/nand/mxc_nand.c |2 +- 1 file changed, 1 insertion

[U-Boot] [PATCH v4 1/9] nand: mxc: Prepare to add support for i.MX5

2013-02-06 Thread Benoît Thébaudeau
Add some abstraction to NFC defitnitions so that some parts of the current code can also be used for future i.MX5 code. Clean up a few things by the way. Signed-off-by: Benoît Thébaudeau --- Changes in v4: None Changes in v3: - Separate code reformatting from behavioral changes. Changes in v2

[U-Boot] [PATCH v4 3/9] imx: mx5: lowlevel_init: Simplify code

2013-02-06 Thread Benoît Thébaudeau
Don't use several instructions to build constant values. Signed-off-by: Benoît Thébaudeau Acked-by: Stefano Babic --- Changes in v4: None Changes in v3: - New patch. Changes in v2: None arch/arm/cpu/armv7/mx5/lowlevel_init.S |8 ++-- 1 file changed, 2 insertions(+), 6 dele

[U-Boot] [PATCH v3 4/4] imx: mx53ard: Add support for NAND Flash

2013-02-05 Thread Benoît Thébaudeau
: Benoît Thébaudeau --- Changes in v3: - New patch. Changes in v2: None board/freescale/mx53ard/mx53ard.c | 18 ++ include/configs/mx53ard.h | 10 ++ 2 files changed, 28 insertions(+) diff --git a/board/freescale/mx53ard/mx53ard.c b/board/freescale/mx53ard

[U-Boot] [PATCH v3 2/4] nand: mxc: Add support for i.MX5

2013-02-05 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau --- Changes in v3: - Separate code reformatting from behavioral changes. Changes in v2: None arch/arm/include/asm/arch-mx5/imx-regs.h |9 +++ drivers/mtd/nand/mxc_nand.c | 129 +++--- include/fsl_nfc.h

[U-Boot] [PATCH v3 1/4] nand: mxc: Prepare to add support for i.MX5

2013-02-05 Thread Benoît Thébaudeau
Add some abstraction to NFC defitnitions so that some parts of the current code can also be used for future i.MX5 code. Clean up a few things by the way. Signed-off-by: Benoît Thébaudeau --- Changes in v3: - Separate code reformatting from behavioral changes. Changes in v2: - Fix warning for

[U-Boot] [PATCH v3 3/4] imx: mx5: lowlevel_init: Simplify code

2013-02-05 Thread Benoît Thébaudeau
Don't use several instructions to build constant values. Signed-off-by: Benoît Thébaudeau --- Changes in v3: - New patch. Changes in v2: None arch/arm/cpu/armv7/mx5/lowlevel_init.S |8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/arm/cpu/armv

Re: [U-Boot] [PATCH 1/2] mxc nand: Add support for i.MX5

2013-02-02 Thread Benoît Thébaudeau
Hi Marek, On Tuesday, January 8, 2013 12:18:05 PM, Benoît Thébaudeau wrote: > Dear Marek Vasut, > > On Tuesday, January 8, 2013 12:05:26 PM, Marek Vasut wrote: > > Dear Benoît Thébaudeau, > > > > [...] > > > > > > > > NOTE: I'm seeing

Re: [U-Boot] [RFC PATCH] Add support for Boundary Devices Nitrogen6x boards

2013-02-01 Thread Benoît Thébaudeau
Hi Eric, On Wednesday, January 30, 2013 7:10:52 PM, Eric Nelson wrote: > This patch adds support for the Nitrogen6X board(s) from > Boundary Devices. The boards are based on the i.MX6x > processor family with two major variants: > i.MX6Quad/6Dual > i.MX6Dual-Lite/6Solo > > More specif

Re: [U-Boot] [PATCH 1/6] imx: mx6q DDR3 init: Fix tMRD

2013-02-01 Thread Benoît Thébaudeau
Hi Eric, On Friday, February 1, 2013 7:28:05 PM, Eric Nelson wrote: > Hi Benoît, > > On 01/31/2013 04:25 PM, Benoît Thébaudeau wrote: > > On Friday, February 1, 2013 12:14:53 AM, Eric Nelson wrote: > >> On 01/30/2013 02:19 PM, Benoît Thébaudeau wrote: > >>> MM

Re: [U-Boot] [PATCH 1/6] imx: mx6q DDR3 init: Fix tMRD

2013-01-31 Thread Benoît Thébaudeau
Hi Eric, On Friday, February 1, 2013 12:14:53 AM, Eric Nelson wrote: > On 01/30/2013 02:19 PM, Benoît Thébaudeau wrote: > > MMDC1_MDCFG1.tMRD should be set to max(tMRD, tMOD) for DDR3. > > > > For all DDR3 speed bins: > >tMRD(min) = 4 nCK > >tMOD(min) =

Re: [U-Boot] [PATCH] nand/mxc: set host->page_addr for NAND_CMD_READOOB

2013-01-31 Thread Benoît Thébaudeau
On Thursday, January 31, 2013 11:36:11 PM, Scott Wood wrote: > On 01/31/2013 02:45:02 PM, Benoît Thébaudeau wrote: > > Hi Scott, > > > > On Thursday, January 31, 2013 8:47:55 PM, Scott Wood wrote: > > > Without this, all OOB reads are from the last page normal

Re: [U-Boot] [PATCH] nand/mxc: set host->page_addr for NAND_CMD_READOOB

2013-01-31 Thread Benoît Thébaudeau
Hi Scott, On Thursday, January 31, 2013 8:47:55 PM, Scott Wood wrote: > Without this, all OOB reads are from the last page normally read > (or zero at boot). This results in bad block scans failing to look > in the right place, and so no bad blocks are found. > > Signed-off-by: Scott Wood > ---

[U-Boot] [PATCH 6/6] imx: mx6q DDR3 init: Benefit from available CL = 7

2013-01-30 Thread Benoît Thébaudeau
MMDC1_MDCFG1[25:21]. Signed-off-by: Benoît Thébaudeau --- board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg b/board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg index d50858d..f4cae5e 100644

[U-Boot] [PATCH 3/6] imx: mx6q DDR3 init: Fix SDE_to_RST

2013-01-30 Thread Benoît Thébaudeau
MMDC1_MDOR.SDE_to_RST should be set to 200 µs according to the JEDEC specification for DDR3. With a cycle of 15.258 µs, this gives 14 cycles encoded as 0x10 for the bit-field MMDC1_MDOR[13:8]. Signed-off-by: Benoît Thébaudeau --- board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg |2 +- 1 file

[U-Boot] [PATCH 5/6] imx: mx6q DDR3 init: Fix MR0.PPD

2013-01-30 Thread Benoît Thébaudeau
MR0.PPD should be set as in MMDCx_MDPDC.SLOW_PD, i.e. to fast-exit mode, which is encoded as 1 in MRS.LMR.MR0.A12 and MMDCx_MDSCR[28]. Signed-off-by: Benoît Thébaudeau --- board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[U-Boot] [PATCH 4/6] imx: mx6q DDR3 init: Fix RST_to_CKE

2013-01-30 Thread Benoît Thébaudeau
MMDC1_MDOR.RST_to_CKE should be set to 500 µs according to the JEDEC specification for DDR3. With a cycle of 15.258 µs, this gives 33 cycles encoded as 0x23 for the bit-field MMDC1_MDOR[5:0]. Signed-off-by: Benoît Thébaudeau --- board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg |2 +- 1 file

[U-Boot] [PATCH 1/6] imx: mx6q DDR3 init: Fix tMRD

2013-01-30 Thread Benoît Thébaudeau
: Benoît Thébaudeau --- board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg b/board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg index c86cd40..9ac8027 100644 --- a/board/freescale/imx/ddr

[U-Boot] [PATCH 2/6] imx: mx6q DDR3 init: Fix tXPR

2013-01-30 Thread Benoît Thébaudeau
Lite, and Micron MT41K128M16JT-125:K for i.MX6 SABRE SD). Hence, MMDC1_MDOR.tXPR should be set to max(5 nCK, 170 ns), which is 170 ns and 91 nCK at 532 MHz, encoded as 0x5A in the bit-field MMDC1_MDOR[23:16]. Signed-off-by: Benoît Thébaudeau --- board/freescale/imx/ddr/mx6q_4x_mt41j128.cfg |2

Re: [U-Boot] [STATUS] v2013.01 released

2013-01-16 Thread Benoît Thébaudeau
Dear Tom Rini, On Tuesday, January 15, 2013 11:17:28 PM, Tom Rini wrote: > U-Boot v2013.01 has been released and uploaded to git. I expect to > see > it on the ftp server soon. Thanks for the release. It has however not yet reached the FTP server, and I also don't see the 2013.01-rc versions the

Re: [U-Boot] [PATCH] mx6qsabresd: Fix mmc boot by making USDHC3 be 'dev 0'

2013-01-10 Thread Benoît Thébaudeau
Hi Fabio, On Thursday, January 10, 2013 3:32:25 PM, Fabio Estevam wrote: > By default, we boot from USDHC3 on mx6qsabresd, so let it be mmc dev > 0. > > Without this fix kernel cannot be retrieved from mmc with the default > environment. > > Signed-off-by: Fabio Estevam > --- > board/freescale

Re: [U-Boot] [PATCH 1/2] mxc nand: Add support for i.MX5

2013-01-08 Thread Benoît Thébaudeau
Dear Marek Vasut, On Tuesday, January 8, 2013 12:05:26 PM, Marek Vasut wrote: > Dear Benoît Thébaudeau, > > [...] > > > > > > NOTE: I'm seeing issues when this is compiled into U-Boot. > > > > > U-Boot > > > > > won't boot

Re: [U-Boot] [PATCH 1/2] mxc nand: Add support for i.MX5

2013-01-08 Thread Benoît Thébaudeau
Dear Marek Vasut, On Tuesday, January 8, 2013 11:38:39 AM, Marek Vasut wrote: > Dear Benoît Thébaudeau, > > > Dear Marek Vasut, > > > > On Tuesday, January 8, 2013 10:33:29 AM, Marek Vasut wrote: > > > Subject: [PATCH 1/2] mxc nand: Add support for i.MX5 > &

Re: [U-Boot] [PATCH 1/2] mxc nand: Add support for i.MX5

2013-01-08 Thread Benoît Thébaudeau
Dear Marek Vasut, On Tuesday, January 8, 2013 10:33:29 AM, Marek Vasut wrote: > Subject: [PATCH 1/2] mxc nand: Add support for i.MX5 Where is the 2/2? > > From: Benoît Thébaudeau > > Signed-off-by: Benoît Thébaudeau > Cc: Scott Wood > Cc: Stefano Babic > --- >

Re: [U-Boot] [PATCH 00/13] mxc nand: Add support for i.MX5

2013-01-07 Thread Benoît Thébaudeau
Dear Marek Vasut, On Monday, January 7, 2013 5:42:11 PM, Marek Vasut wrote: > Dear Benoît Thébaudeau, > > > Dear Marek Vasut, > > > > On Monday, January 7, 2013 4:08:45 PM, Marek Vasut wrote: > > > Dear Fabio Estevam, > > > > > > > Hi Be

Re: [U-Boot] [PATCH 00/13] mxc nand: Add support for i.MX5

2013-01-07 Thread Benoît Thébaudeau
Dear Marek Vasut, On Monday, January 7, 2013 4:08:45 PM, Marek Vasut wrote: > Dear Fabio Estevam, > > > Hi Benoît, > > > > On Mon, Jan 7, 2013 at 11:37 AM, Benoît Thébaudeau > > > > wrote: > > > Fabio, can you give me the reference of the NAND Fl

Re: [U-Boot] [PATCH 00/13] mxc nand: Add support for i.MX5

2013-01-07 Thread Benoît Thébaudeau
Dear Marek Vasut, On Monday, January 7, 2013 2:02:47 PM, Marek Vasut wrote: > Dear Benoît Thébaudeau, > > > Hi all, > > > > This series aims at adding support for i.MX5 to the mxc nand mtd > > and spl > > drivers. It also fixes several issues and

Re: [U-Boot] i.mx53 NFC support

2012-12-20 Thread Benoît Thébaudeau
Dear Mark Roy, On Thursday, December 20, 2012 6:57:29 PM, Mark Roy wrote: > I have a custom i.mx53 board with NAND Flash connected using the > i.mx53 > NAND flash controller.I have been trying to the flash working in > U-boot with no success. I was looking at the driver > mtd/nand/mxc_nand.c

Re: [U-Boot] Booting an i.MX53 from NAND with u-boot

2012-12-14 Thread Benoît Thébaudeau
On Thursday, December 13, 2012 11:41:29 PM, Benoît Thébaudeau wrote: > On Thursday, December 13, 2012 5:01:00 PM, Bernhard Walle wrote: > > I used the kobs-ng-11.09.01 software from Freescale to write the > > bootloader to NAND, since it also writes the necessary boot header

Re: [U-Boot] Booting an i.MX53 from NAND with u-boot

2012-12-13 Thread Benoît Thébaudeau
LOCO has no Flash and only boots from > Micro SD card. > > I'm using u-boot 2012.07 from mainline with some additional patches, > notably the patch to add i.M53 support to mxc_nand driver from > Benoît Thébaudeau that has been posted on the mailing list recently. > > When

Re: [U-Boot] [PATCH 3/5] Add fuse API and commands

2012-12-03 Thread Benoît Thébaudeau
Hi Stefano, On Monday, December 3, 2012 10:03:22 AM, Stefano Babic wrote: > I am thinking about if we need some kind of protection to avoid to > destroy very easy the SOC. Running a fuse command can be much more > dangerous as scrubbing NAND or erasing flash. > > What about to add at least a "-y"

Re: [U-Boot] [PATCH 3/5] Add fuse API and commands

2012-11-27 Thread Benoît Thébaudeau
Hi Eric, On Tuesday, November 27, 2012 7:36:41 PM, Eric Nelson wrote: > Hi Benoît, > > On 11/27/2012 11:27 AM, Benoît Thébaudeau wrote: > > Hi Eric, Dirk, > > > >> and some per-arch documentation about how to translate > >> between the reference manual an

Re: [U-Boot] [PATCH 3/5] Add fuse API and commands

2012-11-27 Thread Benoît Thébaudeau
Hi Eric, Dirk, On Tuesday, November 27, 2012 5:58:19 PM, Eric Nelson wrote: > I don't have strong feelings one way or the other. If left to > me, I'd probably stick with the imxotp command, but Benoît has > clearly walked through the details and we're not talking about > a lot of code either way.

Re: [U-Boot] [PATCH v2 3/5] Add fuse API and commands

2012-11-27 Thread Benoît Thébaudeau
On Tuesday, November 27, 2012 2:33:40 PM, Otavio Salvador wrote: > On Tue, Nov 27, 2012 at 11:31 AM, Benoît Thébaudeau > wrote: > > + "fuse ovride.bit - override a fuse > > bit\n" > > + "fuse ovride.row[...] - > > override 1 or\n&q

[U-Boot] [PATCH v2 5/5] mpc iim: Switch to common fsl_iim

2012-11-27 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau Cc: Wolfgang Denk Cc: Stefano Babic Cc: Reinhard Arlt Cc: Michael Weiss --- This patch supersedes http://patchwork.ozlabs.org/patch/177246/ . Changes for v2: - Rebase against latest master. .../arch/powerpc/cpu/mpc512x/Makefile |1

[U-Boot] [PATCH v2 4/5] Add fsl_iim driver

2012-11-27 Thread Benoît Thébaudeau
Add a fsl_iim driver common to i.MX and MPC. Signed-off-by: Benoît Thébaudeau Cc: Wolfgang Denk Cc: Stefano Babic --- This patch supersedes http://patchwork.ozlabs.org/patch/177245/ . Changes for v2: - Rebase against latest master. .../drivers/misc/Makefile |1

[U-Boot] [PATCH v2 3/5] Add fuse API and commands

2012-11-27 Thread Benoît Thébaudeau
This can be useful for fuse-like hardware, OTP SoC options, etc. Signed-off-by: Benoît Thébaudeau Cc: Wolfgang Denk Cc: Stefano Babic --- This patch supersedes http://patchwork.ozlabs.org/patch/177244/ . Changes for v2: - Rebase against latest master. {u-boot-178d0cc.orig => u-boot-178d

[U-Boot] [PATCH v2 2/5] imx iim: Add useful fuse definitions

2012-11-27 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic Cc: Wolfgang Denk --- This patch supersedes http://patchwork.ozlabs.org/patch/177243/ . Changes for v2: - Rebase against latest master. .../arch/arm/include/asm/arch-mx25/imx-regs.h | 11 ++- .../arch/arm/include/asm/arch

[U-Boot] [PATCH v2 1/5] imx iim: Homogenize and fix register definitions

2012-11-27 Thread Benoît Thébaudeau
Homogenize prg_p naming (the reference manuals are not always self-consistent for that). Add missing registers. Fix some registers. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic Cc: Wolfgang Denk --- This patch supersedes http://patchwork.ozlabs.org/patch/177242/ . Changes for v2

Re: [U-Boot] [PATCH 3/5] Add fuse API and commands

2012-11-26 Thread Benoît Thébaudeau
Hi Eric, all, On Thursday, August 23, 2012 3:23:20 PM, Eric Nelson wrote: > On 08/23/2012 03:31 AM, Stefano Babic wrote: > > On 22/08/2012 12:43, Dirk Behme wrote: > >> On 14.08.2012 14:52, Benoît Thébaudeau wrote: > >>> This can be useful for fuse-like

Re: [U-Boot] [PATCH v2 13/13] mxc nand: Add support for i.MX5

2012-11-20 Thread Benoît Thébaudeau
On Wednesday, November 21, 2012 12:03:47 AM, Scott Wood wrote: > On 11/16/2012 07:43:03 PM, Benoît Thébaudeau wrote: > > Hi Scott, > > > > On Saturday, November 17, 2012 1:01:03 AM, Scott Wood wrote: > > > On 11/16/2012 02:28:16 PM, Benoît Thébaudeau wrote: > >

Re: [U-Boot] [U-Boot,2/3] nand: Fix nand_erase_opts() offset check

2012-11-19 Thread Benoît Thébaudeau
> > > Signed-off-by: Benoît Thébaudeau > > Cc: Scott Wood > > Applied to u-boot-nand-flash Thanks. I still don't see it on gitweb. Usually, this takes at most a few hours. Is there a mirror sync issue or something? Unless this is a man

Re: [U-Boot] usb: ehci: Take advantage of the new multi-controller feature for MXC

2012-11-18 Thread Benoît Thébaudeau
Dear Marek Vasut, On Wednesday, November 7, 2012 3:13:51 PM, Marek Vasut wrote: > Dear Lucas Stach, > > > Dear Marek Vasut, > > > > Am Mittwoch, den 07.11.2012, 14:25 +0100 schrieb Marek Vasut: > > Now I would still argue that we should keep the two step init > > model, > > first we instantiate

Re: [U-Boot] [PATCH v2 13/13] mxc nand: Add support for i.MX5

2012-11-16 Thread Benoît Thébaudeau
Hi Scott, On Saturday, November 17, 2012 1:01:03 AM, Scott Wood wrote: > On 11/16/2012 02:28:16 PM, Benoît Thébaudeau wrote: > > Also, I've noticed that some of the oobfree fields of the > > nand_ecclayout > > structures in mxc_nand.c are slightly different from what

Re: [U-Boot] [PATCH v2] mx5: Mark lowlevel_init board-specific code

2012-11-16 Thread Benoît Thébaudeau
Hi Stefano, On Wednesday, November 7, 2012 3:29:14 PM, Stefano Babic wrote: > On 05/11/2012 21:07, Benoît Thébaudeau wrote: > > The mx5 lowlevel_init.S contains board-specific code based on the > > reference > > design. Let's keep it since it avoids creating new lowl

Re: [U-Boot] [PATCH v2 13/13] mxc nand: Add support for i.MX5

2012-11-16 Thread Benoît Thébaudeau
On Friday, November 16, 2012 9:15:33 PM, Benoît Thébaudeau wrote: > Hi Scott, > > On Thursday, November 15, 2012 11:22:03 PM, Scott Wood wrote: > > On 09/18/2012 01:11:21 PM, Tom Rini wrote: > > > -BEGIN PGP SIGNED MESSAGE- > > > Hash: SHA1 > > >

Re: [U-Boot] [PATCH v2 13/13] mxc nand: Add support for i.MX5

2012-11-16 Thread Benoît Thébaudeau
Hi Scott, On Thursday, November 15, 2012 11:22:03 PM, Scott Wood wrote: > On 09/18/2012 01:11:21 PM, Tom Rini wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > On 09/17/12 17:36, Scott Wood wrote: > > > On Tue, Aug 21, 2012 at 11:04:14PM

[U-Boot] [PATCH v2] nand: Add torture feature

2012-11-16 Thread Benoît Thébaudeau
This patch adds a NAND Flash torture feature, which is useful as a block stress test to determine if a block is still good and reliable (or should be marked as bad), e.g. after a write error. This code is ported from mtd-utils' lib/libmtd.c. Signed-off-by: Benoît Thébaudeau Cc: Scott

[U-Boot] [PATCH] ehci-mxc: Fix host power mask bit for i.MX25

2012-11-16 Thread Benoît Thébaudeau
The correct bit for H1_PM is 16, not 8, which is the DP pull-up impedance selection bit. This issue has been reported by Eric Bénard and fixed by Christoph Fritz on Linux, from which these #define-s had been copied. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic Cc: Marek Vasut

[U-Boot] [PATCH] ehci-mxc: Fix host power mask bit for i.MX35

2012-11-16 Thread Benoît Thébaudeau
The correct bit for H1_PM is 16, not 8, which is the DP pull-up impedance selection bit. This issue has been reported by Michael Burkey and fixed by Christoph Fritz on Linux, from which these #define-s had been copied. Signed-off-by: Benoît Thébaudeau Cc: Stefano Babic Cc: Marek Vasut

Re: [U-Boot] how are "CONFIG_*" variables processed by Makefiles?

2012-11-14 Thread Benoît Thébaudeau
Dear Robert P. J. Day, On Wednesday, November 14, 2012 4:35:15 PM, Robert P. J. Day wrote: > i'm sure there's a trivial explanation for this that i'm missing > but > i'm looking at this snippet from arch/arm/cpu/armv7/omap3/Makefile: > > ... snip ... > COBJS += board.o > COBJS += clock.o

[U-Boot] [PATCH v3 13/13] ehci-mx5/6: Make board_ehci_hcd_init() optional

2012-11-13 Thread Benoît Thébaudeau
A custom board_ehci_hcd_init() may be unneeded, so add a weak default implementation doing nothing. By the way, use simple __weak from linux/compiler.h for board_ehci_hcd_postinit() instead of weak alias with full attribute. Signed-off-by: Benoît Thébaudeau Cc: Marek Vasut Cc: Stefano Babic

[U-Boot] [PATCH v3 12/13] mx35pdk: Add support for OTG

2012-11-13 Thread Benoît Thébaudeau
Add support for the OTG port on the mx35pdk Personality board. Signed-off-by: Benoît Thébaudeau Tested-by: Stefano Babic Cc: Stefano Babic Cc: Marek Vasut --- Changes for v2: - Tested by Stefano. Changes for v3: - Fix lines over 80 characters. .../board/freescale/mx35pdk/lowlevel_init.S

[U-Boot] [PATCH v3 11/13] ehci-mxc: Add support for i.MX35

2012-11-13 Thread Benoît Thébaudeau
Signed-off-by: Benoît Thébaudeau Cc: Marek Vasut Cc: Stefano Babic --- Changes for v2: None. Changes for v3: - Fix lines over 80 characters. .../arch/arm/include/asm/arch-mx35/imx-regs.h |2 + .../drivers/usb/host/ehci-mxc.c| 69 2 files

<    2   3   4   5   6   7   8   9   10   11   >