[U-Boot] [PATCH v2] arm: mx5: Add fuse supply enable in fsl_iim

2013-12-17 Thread Sergey Alyoshin
Enable fuse supply before fuse programming and disable after. Signed-off-by: Sergey Alyoshin Tested-by: Sergey Alyoshin Tested on i.MX53 custom board by writing MAC addresses in fuse bank 1. --- arch/arm/cpu/armv7/mx5/clock.c | 12 arch/arm/include/asm/arch-mx5/clock.h

Re: [U-Boot] [PATCH 1/3] arm: atmel: at91sam9x5: cleanup cs configure for spi

2013-12-17 Thread Andreas Bießmann
Hi Bo, On 12/10/2013 09:14 AM, Bo Shen wrote: > As the cs for spi is worked in gpio mode, so no need to configure > it as peripheral and then configure to gpio. That statement may be correct. > > Signed-off-by: Bo Shen > --- > > arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c | 28 >

Re: [U-Boot] [PATCH 0/3] arm: atmel: clean up for at91sam9x5ek board

2013-12-17 Thread Andreas Bießmann
Hi Bo, On 12/10/2013 09:13 AM, Bo Shen wrote: > This patch series do a clean up for at91sam9x5ek board. I think this series is to fixup broken things, therefore could be applied for upcomming release. Can you please provide v1 for 1/3? > > Bo Shen (3): > arm: atmel: at91sam9x5: cleanup cs con

[U-Boot] [PATCH][v4] powerpc/mpc85xx: Add support for single source clocking

2013-12-17 Thread Priyanka Jain
Single-source clocking is new feature introduced in T1040. In this mode, a single differential clock is supplied to the DIFF_SYSCLK_P/N inputs to the processor, which in turn is used to supply clocks to the sysclock, ddrclock and usbclock. So, both ddrclock and syclock are driven by same different

[U-Boot] [PATCH v2 1/3] arm: atmel: at91sam9x5: cleanup cs configure for spi

2013-12-17 Thread Bo Shen
As the cs for spi is worked in gpio mode, so no need to configure it as peripheral and then configure to gpio. Configure it to gpio directly. Signed-off-by: Bo Shen --- Change in v2: - only move line to configure it to peripheral --- board/atmel/at91sam9x5ek/at91sam9x5ek.c |1 - 1 file cha

Re: [U-Boot] [PATCH 0/3] arm: atmel: clean up for at91sam9x5ek board

2013-12-17 Thread Bo Shen
Hi Andreas, On 12/17/2013 05:07 PM, Andreas Bießmann wrote: Hi Bo, On 12/10/2013 09:13 AM, Bo Shen wrote: This patch series do a clean up for at91sam9x5ek board. I think this series is to fixup broken things, therefore could be applied for upcomming release. Can you please provide v1 for 1/3

Re: [U-Boot] [PATCH 0/3] arm: atmel: clean up for at91sam9x5ek board

2013-12-17 Thread Bo Shen
Hi Andreas, On 12/17/2013 05:07 PM, Andreas Bießmann wrote: Hi Bo, On 12/10/2013 09:13 AM, Bo Shen wrote: This patch series do a clean up for at91sam9x5ek board. I think this series is to fixup broken things, therefore could be applied for upcomming release. Can you please provide v1 for 1/3

Re: [U-Boot] [PATCH v2] arm: mx5: Add fuse supply enable in fsl_iim

2013-12-17 Thread Benoît Thébaudeau
Dear Sergey Alyoshin, On Tuesday, December 17, 2013 9:17:58 AM, Sergey Alyoshin wrote: > Enable fuse supply before fuse programming and disable after. > > Signed-off-by: Sergey Alyoshin > Tested-by: Sergey Alyoshin > > Tested on i.MX53 custom board by writing MAC addresses in fuse bank 1. Usu

[U-Boot] [PATCH] arm: omap3: Fix beagleboard SPL boot hangup (GPIO clocks not enabled)

2013-12-17 Thread Stefan Roese
Patch f33b9bd3 [arm: omap3: Enable clocks for peripherals only if they are used] breaks SPL booting on Beagleboard. Since some gpio input's are read to detect the board revision. But with this patch above, the clocks to the GPIO subsystems are not enabled per default any more. The GPIO banks need t

[U-Boot] [PATCH] arm: omap3: Add cmdline editing feature

2013-12-17 Thread Stefan Roese
This has been missing from beagleboard for quite some time. Add this now, as its very convenient for the user. Additionally the "1" is removed after CONFIG_AUTO_COMPLETE. An empty define is preferred for such compile options. Signed-off-by: Stefan Roese Cc: Tom Rini --- include/configs/omap3_b

Re: [U-Boot] [PATCH 2/2] mtd: nand: omap: fix ecc ops assignment when changing ecc

2013-12-17 Thread Nikita Kiryanov
On 12/17/2013 01:03 AM, Scott Wood wrote: On Mon, 2013-12-16 at 19:19 +0200, Nikita Kiryanov wrote: If we change to software ecc and then back to hardware ecc, the nand ecc ops pointers are populated with incorrect function pointers. This is related to the way nand_scan_tail() handles assigning

[U-Boot] [PATCH V2 2/2] mtd: nand: omap: fix ecc ops assignment when changing ecc

2013-12-17 Thread Nikita Kiryanov
If we change to software ecc and then back to hardware ecc, the nand ecc ops pointers are populated with incorrect function pointers. This is related to the way nand_scan_tail() handles assigning functions to ecc ops: If we are switching to software ecc/no ecc, it assigns default functions to the

Re: [U-Boot] [PATCH v2] arm: ep9315: Return back Cirrus Logic EDB9315A board support

2013-12-17 Thread sergey kostanbaev
Hi Albert, I modified the patch, but it didn't worked on the board. Than I realized the cause of this problem is in interrupt_init() function. It has IRQ_STACK_START_IN variable touched before relocation, which is in flash. Later I found other guys had same problem. So if it's going to be fixed m

[U-Boot] [PATCH v3] arm: ep9315: Return back Cirrus Logic EDB9315A board support

2013-12-17 Thread sergey.kostanbaev
From: Sergey Kostanbaev This patch returns back support for old ep93xx processors family Signed-off-by: Sergey Kostanbaev Cc: albert.u.b...@aribaud.net --- Changes for v3: - Update makefiles to the new style Changes for v2: - Replace constants in lowlevel_init.S to defines - Add mo

Re: [U-Boot] i.MX6 freeze when running Linux FSL 3.10.9-1.0.0-alpha AND U-Boot 2013.10

2013-12-17 Thread Fabio Estevam
Hi Otavio, On Tue, Nov 26, 2013 at 1:59 PM, Otavio Salvador wrote: >> isn't the last change (enabling bypass) sufficient to fix the problem >> or do you also need the 2 power_down before ? > > It does indeed. I did a full test cycle from cold boot and also from > inside system reboot and it work

Re: [U-Boot] i.MX6 freeze when running Linux FSL 3.10.9-1.0.0-alpha AND U-Boot 2013.10

2013-12-17 Thread Fabio Estevam
On Tue, Dec 17, 2013 at 12:18 PM, Fabio Estevam wrote: > Hi Otavio, > > On Tue, Nov 26, 2013 at 1:59 PM, Otavio Salvador > wrote: > >>> isn't the last change (enabling bypass) sufficient to fix the problem >>> or do you also need the 2 power_down before ? >> >> It does indeed. I did a full test c

[U-Boot] [PATCH v3] arm: mx5: Add fuse supply enable in fsl_iim

2013-12-17 Thread Sergey Alyoshin
Enable fuse supply before fuse programming and disable after. Signed-off-by: Sergey Alyoshin --- arch/arm/cpu/armv7/mx5/clock.c | 12 arch/arm/include/asm/arch-mx5/clock.h|1 + arch/arm/include/asm/arch-mx5/crm_regs.h |3 +++ drivers/misc/fsl_iim.c

Re: [U-Boot] "arm: keep all sections in ELF file" breaks Arndale

2013-12-17 Thread Tom Rini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/17/2013 10:24 AM, Andre Przywara wrote: > Hi, > > the Arndale board does not work anymore with current master HEAD. > If I turn on the board, I see exactly nothing. > > I bisected it down to: > 47ed5dd031d7d2c587e6afd386e79ccec1a1b7f7 is the fi

[U-Boot] "arm: keep all sections in ELF file" breaks Arndale

2013-12-17 Thread Andre Przywara
Hi, the Arndale board does not work anymore with current master HEAD. If I turn on the board, I see exactly nothing. I bisected it down to: 47ed5dd031d7d2c587e6afd386e79ccec1a1b7f7 is the first bad commit commit 47ed5dd031d7d2c587e6afd386e79ccec1a1b7f7 Author: Albert ARIBAUD Date: Thu Nov 7 1

Re: [U-Boot] [PATCH] arm: omap3: Add cmdline editing feature

2013-12-17 Thread Tom Rini
On Tue, Dec 17, 2013 at 02:14:18PM +0100, Stefan Roese wrote: > This has been missing from beagleboard for quite some time. Add this > now, as its very convenient for the user. > > Additionally the "1" is removed after CONFIG_AUTO_COMPLETE. An empty > define is preferred for such compile options.

Re: [U-Boot] [PATCH v3] arm: mx5: Add fuse supply enable in fsl_iim

2013-12-17 Thread Benoît Thébaudeau
Dear Sergey Alyoshin, On Tuesday, December 17, 2013 3:51:00 PM, Sergey Alyoshin wrote: [...] > +#if !defined(CONFIG_MX51) && !defined(CONFIG_MX53) > +#define enable_efuse_prog_supply(enable) > +#endif > +static void enable_fuse_prog(bool enable) > +{ > + enable_efuse_prog_supply(enable); > +}

Re: [U-Boot] "arm: keep all sections in ELF file" breaks Arndale

2013-12-17 Thread Tom Rini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/17/2013 10:47 AM, Andre Przywara wrote: > (CCing Inderpal, Chander and Minkyu) > > On 12/17/2013 04:30 PM, Tom Rini wrote: > On 12/17/2013 10:24 AM, Andre Przywara wrote: Hi, the Arndale board does not work anymore with current ma

Re: [U-Boot] "arm: keep all sections in ELF file" breaks Arndale

2013-12-17 Thread Andre Przywara
(CCing Inderpal, Chander and Minkyu) On 12/17/2013 04:30 PM, Tom Rini wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/17/2013 10:24 AM, Andre Przywara wrote: Hi, the Arndale board does not work anymore with current master HEAD. If I turn on the board, I see exactly nothing. I bise

Re: [U-Boot] [PATCH 1/2] i.MX6 (DQ/DLS): use macros for mux and pad declarations

2013-12-17 Thread Stefano Babic
On 14/11/2013 00:36, Eric Nelson wrote: > This allows the use of either or both declarations from > the files mx6q_pins.h and mx6dl_pins.h. > > All board files should include > with one of the following defined in boards.cfg > MX6Q - for boards targeting i.MX6Q or i.MX6D > MX6DL - for

Re: [U-Boot] [U-Boot,v2,1/3] arm: atmel: at91sam9x5: cleanup cs configure for spi

2013-12-17 Thread Andreas Bießmann
Dear Bo Shen, Bo Shen writes: >As the cs for spi is worked in gpio mode, so no need to configure >it as peripheral and then configure to gpio. Configure it to gpio >directly. > >Signed-off-by: Bo Shen > >--- >Change in v2: > - only move line to configure it to peripheral >--- > board/atmel/at91

Re: [U-Boot] [U-Boot,2/3] arm: atmel: at91sam9x5: cleanup unneeded undef

2013-12-17 Thread Andreas Bießmann
Dear Bo Shen, Bo Shen writes: >remove unneeded #undef for at91sam9x5ek board. > >Signed-off-by: Bo Shen > >--- >include/configs/at91sam9x5ek.h |5 - > 1 file changed, 5 deletions(-) applied to u-boot-atmel/master, thanks! Best regards, Andreas Bießmann __

Re: [U-Boot] [U-Boot, 3/3] arm: atmel: at91sam9x5: move CONFIG_SYS_NO_FLASH to proper position

2013-12-17 Thread Andreas Bießmann
Dear Bo Shen, Bo Shen writes: >In config_cmd_default.h, it will use CONFIG_SYS_NO_FLASH to decide >whether include CONFIG_CMD_FLASH and CONFIG_CMD_IMLS. So, move the >CONFIG_SYS_NO_FLASH to proper position, then we don't need to undef >these two commands. > >Signed-off-by: Bo Shen > >--- >includ

[U-Boot] [PULL] u-boot-atmel/master -> u-boot-arm/master

2013-12-17 Thread Andreas Bießmann
Dear Albert Aribaud, please pull the following fix ups from u-boot-atmel/master into u-boot-arm/master. The following changes since commit d2c7074b9593d822e2359a09c21747248fdf5fac: ARM: OMAP5: clocks: Update MPU settings for OPP_NOM (2013-12-12 17:43:39 -0500) are available in the git reposi

Re: [U-Boot] [PATCH v4 0/1] nitrogen6x: Move setup_sata to common part

2013-12-17 Thread Stefano Babic
On 28/11/2013 12:32, Giuseppe Pagano wrote: > Move setup_sata function definition from platform file nitrogen6x.c > to arch/arm/imx-common/sata.c to avoid code duplication. > > Signed-off-by: Giuseppe Pagano > CC: Stefano Babic > CC: Fabio Estevam > CC: Eric Nelson > --- Applied to u-boot-imx

Re: [U-Boot] [PATCH v4 1/1] udoo: Add SATA support on uDoo Board.

2013-12-17 Thread Stefano Babic
On 28/11/2013 12:32, Giuseppe Pagano wrote: > Add SATA support on uDoo Board. > > Signed-off-by: Giuseppe Pagano > CC: Stefano Babic > CC: Fabio Estevam > --- > Applied to u-boot-imx, thanks. Best regards, Stefano Babic --

Re: [U-Boot] [PATCH] configs: imx: Remove CONFIG_SYS_SPD_BUS_NUM option

2013-12-17 Thread Stefano Babic
On 20/11/2013 23:38, Fabio Estevam wrote: > From: Fabio Estevam > > According to the README: > > "- CONFIG_SYS_SPD_BUS_NUM > If SPD EEPROM is on an I2C bus other than the first > one, specify here. Note that the value must resolve > to something your dri

Re: [U-Boot] [PATCH 1/1] MX6 SabreSD: Use readl() to read the CCM_CCGR3 register

2013-12-17 Thread Stefano Babic
On 29/11/2013 15:38, Liu Ying wrote: > Align with the context to use readl() to read the CCM_CCGR3 > register with memory barrier instead of __raw_readl(). > > Signed-off-by: Liu Ying > --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic -- ===

Re: [U-Boot] [PATCH] ARM: mx53: video: Add IPUv3 LCD support for M53EVK

2013-12-17 Thread Stefano Babic
On 02/12/2013 17:01, Marek Vasut wrote: > This patch adds support for the AMPIRE 800x480 LCD panel that is available > for M53EVK. > > Signed-off-by: Marek Vasut > Cc: Stefano Babic > --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic -- ===

Re: [U-Boot] [PATCH] ARM: mx6: Update non-Freescale boards to include CPU errata.

2013-12-17 Thread Stefano Babic
On 27/11/2013 01:40, Eric Nelson wrote: > The CPU errata expressed in include/configs/mx6_common.h apply > to all i.MX6DQ and i.MX6DLS parts. > > Signed-off-by: Eric Nelson > --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic -- ===

Re: [U-Boot] [PATCH v2] mx6: clock: Fix the calculation of PLL_ENET frequency

2013-12-17 Thread Stefano Babic
On 03/12/2013 21:26, Fabio Estevam wrote: > From: Fabio Estevam > > According to the mx6 quad reference manual, the DIV_SELECT field of register > CCM_ANALOG_PLL_ENETn has the following meaning: > > "Controls the frequency of the ethernet reference clock. > - 00 - 25MHz > - 01 - 50MHz > - 10 - 1

Re: [U-Boot] [PATCH v3 2/2] mx6sabresd: Fix LVDS width and color format

2013-12-17 Thread Stefano Babic
On 04/12/2013 04:08, Fabio Estevam wrote: > From: Fabio Estevam > > mx6sabresd boards have a 18-bit LVDS data width and the correct color format > is RGB666. > > Suggested-by: Liu Ying > Signed-off-by: Fabio Estevam > --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic --

Re: [U-Boot] [PATCH v3 1/2] mx6sabresd: Allow probing HSYNC, VSYNC and DISP_CLK signals

2013-12-17 Thread Stefano Babic
On 04/12/2013 04:08, Fabio Estevam wrote: > From: Fabio Estevam > > HSYNC, VSYNC and DISP_CLK are very useful display signals for debugging. > > Configure them as active pins. > > Signed-off-by: Fabio Estevam > --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic -- ==

Re: [U-Boot] [PATCH] ARM: mxs: tools: Fix errno handling in strtoul() invocation

2013-12-17 Thread Stefano Babic
On 04/12/2013 14:27, Marek Vasut wrote: > According to NOTE in strtoul(3), the errno must be zeroed before strtoul() > is called. Zero the errno. The NOTE reads as such: > > Since strtoul() can legitimately return 0 or ULONG_MAX (ULLONG_MAX for > strtoull()) on both success and failure, the ca

Re: [U-Boot] [PATCH 1/1] imx6: fix random hang when download by usb

2013-12-17 Thread Stefano Babic
On 13/11/2013 17:58, Frank Li wrote: > ROM did not invalidate L1 cache when download by usb > Need invalidate L1 cache before enable cache > > Signed-off-by: Huang yongcai > Signed-off-by: Frank Li > --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic --

Re: [U-Boot] [PATCH v4] arm: mx5: Add fuse supply enable in fsl_iim

2013-12-17 Thread Benoît Thébaudeau
Dear Sergey Alyoshin, On Tuesday, December 17, 2013 8:24:54 PM, Sergey Alyoshin wrote: > Enable fuse supply before fuse programming and disable after. > > Signed-off-by: Sergey Alyoshin > --- > arch/arm/cpu/armv7/mx5/clock.c | 12 > arch/arm/include/asm/arch-mx5/clock.h

[U-Boot] [PATCH 2/2] mx6sabre_common.h: Add CONFIG_CMD_FUSE support

2013-12-17 Thread Fabio Estevam
From: Fabio Estevam Add CONFIG_CMD_FUSE option, so that the fuse API can be used. Signed-off-by: Fabio Estevam --- include/configs/mx6sabre_common.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/mx6sabre_common.h b/include/configs/mx6sabre_common.h index d52c9a8..63

[U-Boot] [PATCH 1/2] powerpc/P1022DS: Define new nand_ecclayout structure macros

2013-12-17 Thread York Sun
Define CONFIG_SYS_NAND_MAX_ECCPOS and CONFIG_SYS_NAND_MAX_OOBFREE to reduce the image size, by taking advantage of the new nand_ecclayout structure. Signed-off-by: York Sun CC: Prabhakar Kushwaha CC: Scott Wood --- include/configs/P1022DS.h |2 ++ 1 file changed, 2 insertions(+) diff --gi

[U-Boot] [PATCH 1/2] doc: README.fuse: Add an example on how to use the fuse API on mx6q

2013-12-17 Thread Fabio Estevam
From: Fabio Estevam When using the fuse API in U-boot user must calculate the 'bank' and 'word' values. Provide a real example on how to calculate such values for the mx6q. Signed-off-by: Fabio Estevam --- doc/README.fuse | 57 + 1 fil

[U-Boot] [PATCH v4] arm: mx5: Add fuse supply enable in fsl_iim

2013-12-17 Thread Sergey Alyoshin
Enable fuse supply before fuse programming and disable after. Signed-off-by: Sergey Alyoshin --- arch/arm/cpu/armv7/mx5/clock.c | 12 arch/arm/include/asm/arch-mx5/clock.h|1 + arch/arm/include/asm/arch-mx5/crm_regs.h |3 +++ drivers/misc/fsl_iim.c

[U-Boot] [PATCH 2/2] powerpc/B4860QDS: Define new nand_ecclayout structure macros

2013-12-17 Thread York Sun
Define CONFIG_SYS_NAND_MAX_ECCPOS and CONFIG_SYS_NAND_MAX_OOBFREE to reduce the image size, by taking advantage of the new nand_ecclayout structure. Signed-off-by: York Sun CC: Prabhakar Kushwaha CC: Scott Wood --- include/configs/B4860QDS.h |2 ++ 1 file changed, 2 insertions(+) diff --g

Re: [U-Boot] [PATCH 1/2] doc: README.fuse: Add an example on how to use the fuse API on mx6q

2013-12-17 Thread Benoît Thébaudeau
Hi Fabio, On Tuesday, December 17, 2013 9:03:40 PM, Fabio Estevam wrote: > From: Fabio Estevam > > When using the fuse API in U-boot user must calculate the 'bank' and 'word' > values. > > Provide a real example on how to calculate such values for the mx6q. > > Signed-off-by: Fabio Estevam >

Re: [U-Boot] [PATCH 2/2] mx6sabre_common.h: Add CONFIG_CMD_FUSE support

2013-12-17 Thread Benoît Thébaudeau
Hi Fabio, On Tuesday, December 17, 2013 9:03:41 PM, Fabio Estevam wrote: > From: Fabio Estevam > > Add CONFIG_CMD_FUSE option, so that the fuse API can be used. > > Signed-off-by: Fabio Estevam > --- > include/configs/mx6sabre_common.h | 5 + > 1 file changed, 5 insertions(+) > > diff --

Re: [U-Boot] how to limit sandbox to a single thread/core?

2013-12-17 Thread Simon Glass
Hi, On 16 December 2013 21:59, Abraham V. wrote: > On Tue, Dec 17, 2013 at 2:00 AM, Simon Glass wrote: >> Hi, >> >> On 13 December 2013 01:47, Abraham V. wrote: >>> Hello, >>> >>> I just discovered that uboot has a "sandbox" build - output binary is >>> a standard linux application. This prompt

Re: [U-Boot] [PATCH v2 3/4] Add dumpimage, a tool to extract data from U-Boot images

2013-12-17 Thread Simon Glass
Hi Masahiro, On 16 December 2013 19:25, Masahiro Yamada wrote: > Hello Guilherme, Simon > > >> diff --git a/Makefile b/Makefile >> index a2fb037..653d3b3 100644 >> --- a/Makefile >> +++ b/Makefile >> @@ -796,6 +796,7 @@ clean: >> $(obj)tools/envcrc

Re: [U-Boot] mtd: nand: omap: fix ecc-layout for HAM1 ecc-scheme

2013-12-17 Thread Scott Wood
On Thu, Dec 05, 2013 at 05:54:21PM +0530, pekon gupta wrote: > As per OMAP3530 TRM referenced below [1] > > For large-page NAND, ROM code expects following ecc-layout for HAM1 ecc-scheme > - OOB[1] (offset of 1 *byte* from start of OOB) for x8 NAND device > - OOB[2] (offset of 1 *word* from star

Re: [U-Boot] mtd: nand: omap_gpmc: cosmetic: Fix indentation

2013-12-17 Thread Scott Wood
On Thu, Dec 05, 2013 at 07:58:06AM +0100, Stefan Roese wrote: > Signed-off-by: Stefan Roese > Cc: Pekon Gupta > Cc: Scott Wood > > --- > drivers/mtd/nand/omap_gpmc.c | 86 ++-- > 1 file changed, 43 insertions(+), 43 deletions(-) Applied to u-boot-nand-fl

Re: [U-Boot] [U-Boot, V2] mtd: nand: omap: fix HAM1_SW ecc using default value for ecc.size

2013-12-17 Thread Scott Wood
On Thu, Dec 12, 2013 at 03:19:31PM +0200, Nikita Kiryanov wrote: > Commit "mtd: nand: omap: enable BCH ECC scheme using ELM for generic > platform" (d016dc42cedbf6102e100fa9ecb58462edfb14f8) changed the way > software ECC is configured, both during boot, and during ecc switch, in a way > that is no

Re: [U-Boot] [U-Boot, v2] nand_util.c: Use '%zd' for length in nand_unlock debug print

2013-12-17 Thread Scott Wood
On Mon, Dec 16, 2013 at 09:59:34AM -0500, Tom Rini wrote: > length is size_t so needs to be '%zd' not '%d' to avoid warnings. > > Cc: Scott Wood > Signed-off-by: Tom Rini > Acked-by: Scott Wood > > --- > Changes in v2: > - Use %zd, the correct format, rather than %ld, a differntly incorrect >

Re: [U-Boot] [U-Boot, 1/2] mtd: nand: omap: fix sw->hw->sw ecc switch

2013-12-17 Thread Scott Wood
On Mon, Dec 16, 2013 at 07:19:01PM +0200, Nikita Kiryanov wrote: > When switching ecc mode, omap_select_ecc_scheme() assigns the appropriate > values > into the current nand chip's ecc.layout struct. This is done under the > assumption that the struct exists only to store values, so it is OK to >

Re: [U-Boot] [U-Boot, V2, 2/2] mtd: nand: omap: fix ecc ops assignment when changing ecc

2013-12-17 Thread Scott Wood
On Tue, Dec 17, 2013 at 03:18:01PM +0200, Nikita Kiryanov wrote: > If we change to software ecc and then back to hardware ecc, the nand ecc ops > pointers are populated with incorrect function pointers. This is related to > the > way nand_scan_tail() handles assigning functions to ecc ops: > > If

[U-Boot] [PATCH REPOST2] ARM: rpi_b: power on SDHCI and USB HW modules

2013-12-17 Thread Stephen Warren
Send RPC commands to the VideoCore to turn on the SDHCI and USB modules. For SDHCI this isn't needed in practice, since the firmware already turned on the power in order to load U-Boot. However, it's best to be explicit. For USB, this is necessary, since the module isn't powered otherwise. This wil

Re: [U-Boot] [PATCH v2 3/4] Add dumpimage, a tool to extract data from U-Boot images

2013-12-17 Thread Masahiro Yamada
Hello Simon. > >> diff --git a/Makefile b/Makefile > >> index a2fb037..653d3b3 100644 > >> --- a/Makefile > >> +++ b/Makefile > >> @@ -796,6 +796,7 @@ clean: > >> $(obj)tools/envcrc \ > >> $(obj)tools/gdb/{astest,gdbcont,gdbsend}

[U-Boot] [PATCH] powerpc/t208x: fix macro CONFIG_SYS_FSL_NUM_USB_CTRLS

2013-12-17 Thread Shengzhou Liu
CONFIG_SYS_FSL_NUM_USB_CTRLS is no longer used, update it to new CONFIG_USB_MAX_CONTROLLER_COUNT. Signed-off-by: Shengzhou Liu --- arch/powerpc/include/asm/config_mpc85xx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/config_mpc85xx.h b/arch/power

Re: [U-Boot] mtd: nand: oob data structures taking up a lot of space

2013-12-17 Thread Scott Wood
On Fri, 2013-12-13 at 21:11 -0800, Aaron Williams wrote: > Hi all, > > I am working on trying to shrink down a bootloader for one of our chips > where the bootloader must fit in around 448K of memory and things are > fairly tight. I found that the oob data structures for 8, 16, 64 and 128 > byt

[U-Boot] [PATCH] powerpc/cms700: limit NAND data structure size

2013-12-17 Thread Scott Wood
This fixes a build break due to excessively large NAND data structures. Signed-off-by: Scott Wood Cc: Matthias Fuchs --- include/configs/CMS700.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/CMS700.h b/include/configs/CMS700.h index 4a5fc86..0bb22be 100644 --- a/includ

Re: [U-Boot] [PATCH 00/11 V11] EXYNOS5420: Add SMDK5420 board support

2013-12-17 Thread Rajeshwari Birje
Hi Minkyu, Can we please, get these patches reviewed and merged. Regards, Rajeshwari. On Mon, Dec 16, 2013 at 2:12 PM, Rajeshwari S Shinde wrote: > This patch adds basic board support for SMDK5420 board. > These patches are tested for booting fine on EVT1 SMDK5420. > > Changes in V2: >

[U-Boot] [PATCH v2 26/35] Kbuild: generate {spl, tpl}-autoconf.mk only when it is necessary

2013-12-17 Thread Masahiro Yamada
Before this commit, {spl,tpl}-autoconf.mk was always generated at the top Makefile even if SPL(TPL) build was not selected. This commit moves the build rule of {spl,tpl}-autoconf.mk from the top Makefile to spl/Makefile. It prevents unnecessary {spl,tpl}-autoconf.mk from being generated. Signed-o

[U-Boot] [PATCH v2 22/35] Kbuild: delete temporary build scripts

2013-12-17 Thread Masahiro Yamada
We had switched to Kbuild. We do not need old build scripts any more. Signed-off-by: Masahiro Yamada --- Changes in v2: None rules.mk | 47 - scripts/Makefile.build.tmp | 127 - scripts/Makefile.host.tmp | 61

[U-Boot] [PATCH v2 08/35] Makefile: move some variable definitions to the top Makefile

2013-12-17 Thread Masahiro Yamada
This commit moves some variable definitions from config.mk to the top Makefile: - HOSTCC, HOSTCFLAGS, HOSTLDFLAGS - AS, LD, CC, CPP, etc. - SHELL (renamed to CONFIG_SHELL) I'd like to slim down config.mk file because it is included from all recursive make. It is redundant to re-define the v

[U-Boot] [PATCH v2 02/35] Makefile.host.tmp: add a new script to refactor tools

2013-12-17 Thread Masahiro Yamada
This commit adds scripts/Makefile.host.tmp which will be used in the next commit to convert makefiles under tools/ directory to Kbuild style. Notice this script, scripts/Makefile.host.tmp is temporary. When switching over to real Kbuild, it will be replaced with scripts/Makefile.host of Linux Ker

[U-Boot] [PATCH v2 05/35] examples: Use scripts/Makefile.build

2013-12-17 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Changes in v2: None Makefile | 5 + examples/api/Makefile| 21 +--- examples/standalone/Makefile | 46 ++-- scripts/Makefile.build | 7 --- 4 files changed, 24

[U-Boot] [PATCH v2 04/35] board: samsung: refactor host programs

2013-12-17 Thread Masahiro Yamada
Some Samsung boards have their own tools under board/samsung//tools/. This commit refactor more makefiles with "hostprogs-y". Signed-off-by: Masahiro Yamada --- Note1: Samsung boards have tools under board/samsung//tools/ and have tools/mkexynosspl.c too. It is inconsistent, so we should choose

[U-Boot] [PATCH v2 19/35] Makefile: rename scripts/Makefile.build to scripts/Makefile.build.tmp

2013-12-17 Thread Masahiro Yamada
Some build scripts including scripts/Makefile.build will be imported from Linux Kernel in the next commit. We need to adjust them for U-Boot in the following commits. To make it easier for reviewers to track the modification, this commit renames scripts/Makefile.build to scripts/Makefile.build.tmp

[U-Boot] [PATCH v2 18/35] Kbuild: add dummy obj-y to create built-in.o

2013-12-17 Thread Masahiro Yamada
We are going to switch over to Kbuild in upcoming commits. Each makefile must have non-empty obj- or obj-y to generate built-in.o on Kbuild. Signed-off-by: Masahiro Yamada --- Changes in v2: None arch/arm/cpu/armv7/tegra114/Makefile | 3 ++- arch/arm/cpu/armv7/tegra30/Makefile | 3 ++- arch/

[U-Boot] [PATCH v2 11/35] Kbuild: Use Kbuild.include

2013-12-17 Thread Masahiro Yamada
This commit adjusts some files to use Kbuild.include. - Use cc-option defined in Kbuild.include (Delete cc-option in config.mk) - Use cc-version defined in (Delete cc-version in config.mk) - Move binutils-version and dtc-version to Kbuild.include by analogy to cc-version This comm

[U-Boot] [PATCH v2 10/35] Kbuild: import Kbuild.include from linux v3.12 tag

2013-12-17 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Changes in v2: None scripts/Kbuild.include | 278 + 1 file changed, 278 insertions(+) create mode 100644 scripts/Kbuild.include diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include new file mode 100644

[U-Boot] [PATCH v2 27/35] Makefile: remove a cleaning target "tidy"

2013-12-17 Thread Masahiro Yamada
Before this commit, "make tidy" did "make clean" + delete "*.depend*" files. But, we do not have "*.depend*" files any more, which means "make tidy" is the same as "make clean". This commit removes the redandant target "tidy". Signed-off-by: Masahiro Yamada --- Changes in v2: - Rebase on v20

[U-Boot] [PATCH v2 14/35] Makefile: move more stuff to top Makefile

2013-12-17 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Changes in v2: None Makefile | 20 +--- config.mk | 19 +-- 2 files changed, 18 insertions(+), 21 deletions(-) diff --git a/Makefile b/Makefile index f29673a..99e0de5 100644 --- a/Makefile +++ b/Makefile @@ -281,13 +281,27 @@

[U-Boot] [PATCH v2 06/35] nand-spl: Use scripts/Makefile.build

2013-12-17 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Changes in v2: None Makefile | 2 +- nand_spl/board/amcc/acadia/Makefile | 8 nand_spl/board/amcc/bamboo/Makefile | 8 nand_spl/board/amcc/canyonlands/Makefile | 8 na

[U-Boot] [PATCH v2 15/35] Makefile: move some flags to spl/Makefile

2013-12-17 Thread Masahiro Yamada
Some flags are used for SPL (and TPL) build only. This commit moves them from config.mk to spl/Makefile. Signed-off-by: Masahiro Yamada --- Changes in v2: None config.mk| 19 --- spl/Makefile | 14 ++ 2 files changed, 14 insertions(+), 19 deletions(-) diff --gi

[U-Boot] [PATCH v2 03/35] tools: convert makefiles to kbuild style

2013-12-17 Thread Masahiro Yamada
Before this commit, makefiles under tools/ directory were implemented with their own way. This commit refactors them by using "hostprogs-y" variable. Several C sources have been added to wrap other C sources to simplify Makefile. For example, tools/crc32.c includes lib/crc32.c Signed-off-by: Mas

[U-Boot] [PATCH v2 0/35] Switch over to real Kbuild

2013-12-17 Thread Masahiro Yamada
We switched to Kbuild style makefiles at v2014.01-rc1 release. With that modification, we can write makefiles simpler. But it is NOT real Kbuild. As the next step, this series imports (+ adjusts) build scripts from Linux Kernel under scripts/ directory. By applying this series, we can get more ad

[U-Boot] [PATCH v2 07/35] Makfile: move suffix rules to Makefile.build

2013-12-17 Thread Masahiro Yamada
This commit moves suffix rules from config.mk to scripts/Makefile.build, which will allow us to switch smoothly to real Kbuild. Note1: post/lib_powerpc/fpu/Makefile has its own rule to compile C sources. We need to tweak it to keep the same behavior. Note2: There are two file2 with the same name:

[U-Boot] [PATCH v2 35/35] Kbuild: check clean source and generate Makefile for out-of-tree build

2013-12-17 Thread Masahiro Yamada
For out-of-tree build - Check if the source tree is clean - Create a Makefile in the output directory Signed-off-by: Masahiro Yamada --- Changes in v2: - Newly added Makefile | 63 +-- 1 file changed, 57 insertions(+), 6 deletio

[U-Boot] [PATCH v2 13/35] Makefile: refactor include path settings

2013-12-17 Thread Masahiro Yamada
This commit merges commonly-used header include paths to UBOOTINCLUDE and NOSTDINC_FLAGS variables, which are placed at the top Makefile. Signed-off-by: Masahiro Yamada --- Changes in v2: None Makefile | 14 +- config.mk | 11 ++- tools/Makefile | 8

[U-Boot] [PATCH v2 32/35] Makefile: refactor tools-all targets

2013-12-17 Thread Masahiro Yamada
- Move "easylogo", "env", "gdb" tagets to tools/Makefile - Delete "gdbtools" target (same as "gdb") Signed-off-by: Masahiro Yamada --- Changes in v2: None Makefile | 7 +-- tools/Makefile | 6 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile

[U-Boot] [PATCH v2 29/35] examples: move api/ and standalone/ to examples/Makefile

2013-12-17 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Changes in v2: None Makefile | 5 + examples/Makefile| 9 + examples/api/Makefile| 4 examples/standalone/Makefile | 4 4 files changed, 10 insertions(+), 12 deletions(-) create mode 100644 example

[U-Boot] [PATCH v2 20/35] Kbuild: import more build scripts from Linux v3.12 tag

2013-12-17 Thread Masahiro Yamada
This commit imports build scripts from Linux Kernel v3.12 as they are. I know they include some trailing spaces but I keep intentionally them untouched. Signed-off-by: Masahiro Yamada --- Changes in v2: None scripts/Makefile.build | 479 +++ scrip

[U-Boot] [PATCH v2 34/35] Kbuild: support simultaneous board configuration and "make all"

2013-12-17 Thread Masahiro Yamada
This commit fixes two problems: [1] We could not do board configuration and "make all" in one command line. For example, the following did not work as we expect: $ make sandbox_config all Configuring for sandbox board... make: Nothing to be done for `all'. [2] mixed-target build did no

[U-Boot] [PATCH v2 12/35] Makefile: move more flags to the top Makefile

2013-12-17 Thread Masahiro Yamada
Before this commit, most of compiler flags were defined in config.mk. But it is redundant because config.mk is included from all recursive make. This commit moves many complier flags to the top Makefile and export them. And we use new vaiarables to store them: KBUILD_CPPFLAGS, KBUILD_CFLAGS, KBUIL

[U-Boot] [PATCH v2 33/35] Kbuild: use scripts/Makefile.clean

2013-12-17 Thread Masahiro Yamada
This commit refactors cleaning targets such as clean, clobber, mrpropper, distclean with scripts/Makefile.clean. By using scripts/Makefile.clean, we can recursively descend into subdirectories and delete generated files there. We do not need add a big list of generated files to the "clean" target

[U-Boot] [PATCH v2 30/35] Kbuild: refactor Makefile and spl/Makefile more

2013-12-17 Thread Masahiro Yamada
This commit refactors rules of directory descending and defines u-boot-dirs and u-boot-all-dirs. (We will need u-boot-all-dirs when using scripts/Makefile.clean) Additionally, rename LIBS-y to libs-y. Signed-off-by: Masahiro Yamada --- Changes in v2: None Makefile | 163 ++

[U-Boot] [PATCH v2 25/35] Kbuild: move include directives of board configuration files

2013-12-17 Thread Masahiro Yamada
This commit changes the location of include directives of board configuration files. The purpose of this change is: - Slim down $(TOPDIR)/config.mk - Prevent $(TOPDIR)/Makefile from including the same configuration file twice - Do not include include/config.mk multiple times because ARC

[U-Boot] [PATCH v2 23/35] Kbuild: move some lines to more suitable place

2013-12-17 Thread Masahiro Yamada
Signed-off-by: Masahiro Yamada --- Changes in v2: None Makefile | 57 + 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/Makefile b/Makefile index 54fbe2a..56e0135 100644 --- a/Makefile +++ b/Makefile @@ -14,34 +14,6 @@ U_BO

[U-Boot] [PATCH v2 24/35] Kbuild: convert some make rules to Kbuild style

2013-12-17 Thread Masahiro Yamada
We can get Kbuild-ish log style like this: GEN include/autoconf.mk GEN include/autoconf.mk.dep We do not need XECHO any more. Signed-off-by: Masahiro Yamada --- Changes in v2: None Makefile | 70 1 file changed, 39 i

[U-Boot] [PATCH v2 31/35] Makefile: Do not pass MTD_VERSION from the top Makefile

2013-12-17 Thread Masahiro Yamada
$(MTD_VERSION) is used in tools/env/Makefile If you specify a variable at a command line like: $ make MTD_VERSION=old env or specify it thru an envrionment variable like: $ export MTD_VERSION=old $ make env it is inherited to the sub-make too. We do not need to pass it from the top Makefile

[U-Boot] [PATCH v2 28/35] Kbuild: change the top Makefile to more Kbuild-ish structure

2013-12-17 Thread Masahiro Yamada
This commit changes the top Makefile to handle various targets nicely. Make targets are divided into four categories: - mixed-targets We can call a configuration target and build targets at one command line like follows: $ make _config u-boot They are handled one by one. -

[U-Boot] [PATCH v2 16/35] Makefile: move some flags to examples makefiles

2013-12-17 Thread Masahiro Yamada
This commit moves some flags which are used under examples/ directory only. Signed-off-by: Masahiro Yamada --- Changes in v2: None config.mk| 8 examples/api/Makefile| 4 examples/standalone/Makefile | 4 3 files changed, 8 insertions(+), 8 deleti

[U-Boot] [PATCH v2 01/35] .gitignore: ingore files generated by Kbuild

2013-12-17 Thread Masahiro Yamada
Ignore generated files by Kbuild such as .*.cmd, *.order, etc. Besides above, - Ignore *.s files We do not need to ignore with file name, asm-offsets.s - Do not ignore *.rej (for quilt) - Ignore backup files, \#*# Signed-off-by: Masahiro Yamada --- Changes in v2: - Do not double "*~" -

[U-Boot] [PATCH v2 09/35] Makefile: move BFD_ROOT_DIR to tools/gdb/Makefile

2013-12-17 Thread Masahiro Yamada
BFD_ROOT_DIR is used only in tools/gdb/Makefile Signed-off-by: Masahiro Yamada --- Changes in v2: None config.mk | 23 --- tools/gdb/Makefile | 21 + 2 files changed, 21 insertions(+), 23 deletions(-) diff --git a/config.mk b/config.mk index 74

[U-Boot] [PATCH v7] spi: Add support SH Quad SPI driver

2013-12-17 Thread Nobuhiro Iwamatsu
This patch adds a driver for Renesas SoC's Quad SPI bus. This supports with 8 bits per transfer to use with SPI flash. Signed-off-by: Kouei Abe Signed-off-by: Nobuhiro Iwamatsu Signed-off-by: Jagannadha Sutradharudu Teki --- Changes for v7: - Add comments on each initialization steps and oth

Re: [U-Boot] [PATCH v2 0/35] Switch over to real Kbuild

2013-12-17 Thread Masahiro Yamada
Hello Simon > Prerequisite > > > You need to apply some patches beforehand to use this series. > This series uses the followings as prerequisites: > > [1] sandbox: Use system headers first for sandbox's os.c in a different way > http://patchwork.ozlabs.org/patch/294233/ > > [2]

[U-Boot] [PATCH 1/3 v2] sh: add support for sh7753evb board

2013-12-17 Thread Shimoda, Yoshihiro
The SH7753 EVB board has SH7753, 512MB DDR3-SDRAM, SPI ROM, Gigabit Ethernet, and eMMC. This patch support the following functions: - 512MB DDR3-SDRAM, SCIF4, SPI ROM, Gigabit Ethernet, eMMC Signed-off-by: Yoshihiro Shimoda --- about v2: - The patch doesn't remove the sh7752evb source codes.

[U-Boot] [PATCH 3/3 v2] serial_sh: add support for SH7753

2013-12-17 Thread Shimoda, Yoshihiro
Signed-off-by: Yoshihiro Shimoda --- about v2: - The patch doesn't remove the CONFIG_CPU_SH7752. drivers/serial/serial_sh.h |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/serial/serial_sh.h b/drivers/serial/serial_sh.h index 556b868..f5e9854 100644 --- a/d

[U-Boot] [PATCH 2/3 v2] net: sh-eth: add support for SH7753

2013-12-17 Thread Shimoda, Yoshihiro
SH7753 has two fast ethernet controllers and two gigabit ethernet controllers. It is similar to SH7757. Signed-off-by: Yoshihiro Shimoda --- about v2: - The patch doesn't remove the CONFIG_CPU_SH7752. drivers/net/sh_eth.h |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) dif

  1   2   >