Re: [U-Boot] [PATCH 6/8] config: don't define CONFIG_ARCH_DEVICE_TREE

2013-06-11 Thread Jagan Teki
Hi, I think we can wait some more time to mature the fdt support on u-boot, as not many boards were using this future. may be I am also incorrect. And need to remove the CONFIG_ARCH_DEVICE_TREE references in dts/Makefile to for working this. -- Thanks, Jagan. On Tue, Jun 11, 2013 at 4:47 AM,

Re: [U-Boot] bootm does not work if netconsole is enabled

2013-06-11 Thread Michael Walle
Am 2013-04-10 18:13, schrieb Joe Hershberger: Hi Michael, On Wed, Apr 10, 2013 at 5:07 AM, Michael Walle mich...@walle.cc wrote: On Wed, April 10, 2013 03:51, Joe Hershberger wrote: Hi Michael, I just tested this on my Zynq target and it worked. However, you make a good point that it is

Re: [U-Boot] [Patch] fsl_esdhc: Fix DMA transfer completion waiting loop

2013-06-11 Thread Dirk Behme
On 10.06.2013 16:51, Gabbasov, Andrew wrote: Hi Dirk, From: Behme, Dirk - Bosch Sent: Monday, June 10, 2013 16:06 To: Gabbasov, Andrew Cc: u-boot@lists.denx.de; Stefano Babic; Fleming Andy-AFLEMING Subject: Re: [U-Boot] [Patch] fsl_esdhc: Fix DMA

Re: [U-Boot] [PATCH v2] ARM: highbank: compile misc_init_r only if CONFIG_MISC_INIT_R

2013-06-11 Thread Albert ARIBAUD
Hi Rob, On Tue, 21 May 2013 16:33:44 -0500, Rob Herring robherri...@gmail.com wrote: From: Rob Herring rob.herr...@calxeda.com Compile misc_init_r only if CONFIG_MISC_INIT_R is enabled. Signed-off-by: Rob Herring rob.herr...@calxeda.com --- board/highbank/highbank.c | 2 ++ 1 file

Re: [U-Boot] [PATCH] OpenRD: relocate environment to 640kB

2013-06-11 Thread Albert ARIBAUD
Hi Sascha, On Mon, 27 May 2013 11:42:26 +0200, Sascha Silbe t-ub...@infra-silbe.de wrote: U-Boot has become slightly larger than where the environment sector was previously located. Saving the environment would brick the device. Relocate the environment to where it is with the stock (i.e.

[U-Boot] [PATCH v3 1/6] arm: ensure u-boot only uses relative relocations

2013-06-11 Thread Albert ARIBAUD
Add a Makefile target ('checkarmreloc') which fails if the ELF binary contains relocation records of types other than R_ARM_RELATIVE. Signed-off-by: Albert ARIBAUD albert.u.b...@aribaud.net --- Changes in v3: - fix commit message typo (of - if) Changes in v2: - use $ instead of $(obj)u-boot

[U-Boot] [PATCH v3 0/6] Optimize ARM relocation

2013-06-11 Thread Albert ARIBAUD
This series optimizes relocation by ensuring ARM binaries only use one type of relocation record, R_ARM_RELATIVE., then optimizing relocation code accordingly. 1. A Makefile rule is added that checks that no other relocation record types are generated except R_ARM_RELATIVE; build fails if this is

[U-Boot] [PATCH v3 3/6] arm: generalize lib/bss.c into lib/sections.c

2013-06-11 Thread Albert ARIBAUD
File arch/arm/lib/bss.c was initially defined for BSS only, but is now going to also contain definitions for other section-boundary-related symbols, so rename it for better accuracy. Also, remove useless 'used' attributes. Signed-off-by: Albert ARIBAUD albert.u.b...@aribaud.net --- Changes in

[U-Boot] [PATCH v3 6/6] arm: optimize relocate_code routine

2013-06-11 Thread Albert ARIBAUD
Use section symbols directly Drop support for R_ARM_ABS32 record types Eliminate unneeded intermediate registers Optimize relocation table iteration Signed-off-by: Albert ARIBAUD albert.u.b...@aribaud.net --- Changes in v3: None Changes in v2: None arch/arm/lib/relocate.S | 32

[U-Boot] [PATCH v3 2/6] remove all references to .dynsym

2013-06-11 Thread Albert ARIBAUD
Discard all .dynsym sections from linker scripts Remove all __dynsym_start definitions from linker scripts Remove all __dynsym_start references from the codebase Note: this touches include/asm-generic/sections.h, which is not ARM-specific, but actual uses of __dynsym_start are only in ARM, so

[U-Boot] [PATCH v3 5/6] arm: make __rel_dyn_{start, end} compiler-generated

2013-06-11 Thread Albert ARIBAUD
This change is only done where needed: some linker scripts may contain relocation symbols yet remain unchanged. __rel_dyn_start and __rel_dyn_end each requires its own output section; putting them in relocation sections changes their flags and breaks relocation. Signed-off-by: Albert ARIBAUD

[U-Boot] [PATCH v3 4/6] arm: make __image_copy_{start, end} compiler-generated

2013-06-11 Thread Albert ARIBAUD
This change is only done where needed: some linker scripts may contain __image_copy_{start,end} yet remain unchanged. Also, __image_copy_end needs its own section; putting it in relocation sections changes their flags and makes relocation break. Signed-off-by: Albert ARIBAUD

Re: [U-Boot] [PATCH v3 0/6] Optimize ARM relocation

2013-06-11 Thread Albert ARIBAUD
Hi Albert, On Tue, 11 Jun 2013 14:17:29 +0200, Albert ARIBAUD albert.u.b...@aribaud.net wrote: This series optimizes relocation by ensuring ARM binaries only use one type of relocation record, R_ARM_RELATIVE., then optimizing relocation code accordingly. This is a cosmetic version only; if

[U-Boot] [PATCH v3 6/6] powerpc/ppc4xx: Remove CONFIG_SYS_FLASH_PROTECTION from gdsys boards

2013-06-11 Thread dirk . eibach
From: Dirk Eibach eib...@gdsys.de CONFIG_SYS_FLASH_PROTECTION was active on most gdsys boards by default, while hardware flash protection was not implemented. Hardware support was added recently and we get into trouble because backward compatibility is broken (u-boot can't unprotect the protected

[U-Boot] [PATCH v3 4/6] powerpc/ppc4xx: Support gdsys multichannel iocon hardware

2013-06-11 Thread dirk . eibach
From: Dirk Eibach dirk.eib...@gdsys.cc Signed-off-by: Dirk Eibach dirk.eib...@gdsys.cc Signed-off-by: Dirk Eibach dirk.eib...@gdsys.cc --- Changes in v3: - adapt to powerpc/ppc4xx: Use generic accessor functions for gdsys FPGA - squashed with powerpc/ppc4xx: Fixup phy erratum on gdsys iocon

[U-Boot] [PATCH v3 3/6] powerpc/ppc4xx: Add fpgad command for dumping gdsys fpga registers

2013-06-11 Thread dirk . eibach
From: Dirk Eibach dirk.eib...@gdsys.cc Signed-off-by: Dirk Eibach dirk.eib...@gdsys.cc Signed-off-by: Dirk Eibach dirk.eib...@gdsys.cc --- Changes in v3: - adapt to powerpc/ppc4xx: Use generic accessor functions for gdsys FPGA Changes in v2: - move cmd_fpgad to common and fix whitespace issues

[U-Boot] [PATCH v3 5/6] powerpc/ppc4xx: Consider gdsys FPGA OSD size

2013-06-11 Thread dirk . eibach
From: Dirk Eibach eib...@gdsys.de OSD size was constant 32x16 characters. Now the size is set as announced by the FPGA. Signed-off-by: Dirk Eibach dirk.eib...@gdsys.cc --- Changes in v3: None Changes in v2: None board/gdsys/common/osd.c | 34 ++ 1 file changed,

[U-Boot] [PATCH v3 1/6] powerpc/ppc4xx: Use generic accessor functions for gdsys FPGA

2013-06-11 Thread dirk . eibach
From: Dirk Eibach eib...@gdsys.de A set of accessor functions was added to be able to access not only memory mapped FPGA in a generic way. Thanks to Wolfgang Denk for getting this sorted properly. Signed-off-by: Dirk Eibach dirk.eib...@gdsys.cc Signed-off-by: Dirk Eibach dirk.eib...@gdsys.cc

[U-Boot] [PATCH v3 2/6] powerpc/ppc4xx: Add gdsys mclink interface

2013-06-11 Thread dirk . eibach
From: Dirk Eibach eib...@gdsys.de mclink is a serial interface for communication between gdsys FPGA. Signed-off-by: Dirk Eibach dirk.eib...@gdsys.cc Signed-off-by: Dirk Eibach dirk.eib...@gdsys.cc --- Changes in v3: - adapt to powerpc/ppc4xx: Use generic accessor functions for gdsys FPGA -

[U-Boot] [PATCH v3 0/6] Update gdsys ppc4xx-based boards

2013-06-11 Thread dirk . eibach
From: Dirk Eibach dirk.eib...@gdsys.cc This series depends on the Bring in new I2C framework series by Heiko Schocher. Patch powerpc/ppc4xx: Add bitbang i2c interface for gdsys boards was dropped in favor of using the new framework. Changes in v3: - adapt to powerpc/ppc4xx: Use generic

Re: [U-Boot] [PATCH v3 0/6] Optimize ARM relocation

2013-06-11 Thread Lubomir Popov
Hi Albert, On 11/06/13 15:47, Albert ARIBAUD wrote: Hi Albert, On Tue, 11 Jun 2013 14:17:29 +0200, Albert ARIBAUD albert.u.b...@aribaud.net wrote: This series optimizes relocation by ensuring ARM binaries only use one type of relocation record, R_ARM_RELATIVE., then optimizing

Re: [U-Boot] [PATCH v2] exynos5250: move board specific configs to board specific config file

2013-06-11 Thread Simon Glass
Hi, On Fri, Jun 7, 2013 at 4:56 AM, Inderpal Singh inderpal.si...@linaro.orgwrote: Not all boards based on exynos5250 have SPI flash, same serial port and might not require display and the same lds script. Hence move them to board specific config file. At least for the serial port this

Re: [U-Boot] [GIT PULL] u-boot-mips/fixes

2013-06-11 Thread Tom Rini
On Sat, Jun 08, 2013 at 11:21:19PM +0200, Daniel Schwierzeck wrote: Hi Tom, please pull two fixes for MIPS. These patches and [1] are required to cleanly run 'MAKEALL -a mips' again on master. [1] http://patchwork.ozlabs.org/patch/249980/ The following changes since commit

Re: [U-Boot] [PATCH] spi: armada100_spi: Remove unnecessary NULL test for dout and din

2013-06-11 Thread Simon Glass
On Tue, Jun 11, 2013 at 6:57 AM, Axel Lin axel@ingics.com wrote: Signed-off-by: Axel Lin axel@ingics.com Reviewed-by: Simon Glass s...@chromium.org --- drivers/spi/armada100_spi.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git

[U-Boot] [PATCH] spi: armada100_spi: Remove unnecessary NULL test for dout and din

2013-06-11 Thread Axel Lin
Signed-off-by: Axel Lin axel@ingics.com --- drivers/spi/armada100_spi.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/spi/armada100_spi.c b/drivers/spi/armada100_spi.c index afdbe05..b237c7c 100644 --- a/drivers/spi/armada100_spi.c +++

Re: [U-Boot] [Patch] fsl_esdhc: Fix DMA transfer completion waiting loop

2013-06-11 Thread Gabbasov, Andrew
Hi Dirk, From: Behme, Dirk - Bosch Sent: Tuesday, June 11, 2013 12:16 To: Gabbasov, Andrew Cc: u-boot@lists.denx.de; Stefano Babic; Fleming Andy-AFLEMING Subject: Re: [U-Boot] [Patch] fsl_esdhc: Fix DMA transfer completion waiting loop On

Re: [U-Boot] [PATCH v3 0/6] Optimize ARM relocation

2013-06-11 Thread Albert ARIBAUD
Hi Lubomir, On Tue, 11 Jun 2013 17:22:17 +0300, Lubomir Popov lpo...@mm-sol.com wrote: Hi Albert, Applied the series to a relatively fresh (yesterday's) u-boot-ti/master and tested on a custom OMAP5430 board. Boots normally. USB storage and Ethernet (dhcp ping), SD/MMC, I2C are all

Re: [U-Boot] [PATCH v2 06/16] sf: Update sf to support all sizes of flashes

2013-06-11 Thread Jagan Teki
Hi Simon, On Tue, Jun 11, 2013 at 3:19 AM, Simon Glass s...@chromium.org wrote: On Mon, Jun 10, 2013 at 9:05 AM, Jagan Teki jagannadh.t...@gmail.com wrote: Hi Tom, On Sat, Jun 8, 2013 at 8:24 PM, Jagan Teki jagannadh.t...@gmail.com wrote: Hi Simon, On Sat, Jun 8, 2013 at 8:11 PM,

[U-Boot] [PATCH] fsl_esdhc: Do not clear interrupt status bits until data processed

2013-06-11 Thread Andrew Gabbasov
After waiting for the command completion event, the interrupt status bits, that occured to be set by that time, are cleared by writing them back. It is supposed, that it should be command related bits (command complete and may be command errors). However, in some cases the DMA already completes

Re: [U-Boot] [PATCH v4 1/7] arm: add MMU/D-Cache support for Faraday cores

2013-06-11 Thread Albert ARIBAUD
Hi Kuo-Jung, On Tue, 11 Jun 2013 11:09:57 +0800, Kuo-Jung Su dant...@gmail.com wrote: 2013/6/11 Albert ARIBAUD albert.u.b...@aribaud.net: Hi Kuo-Jung, On Tue, 7 May 2013 14:25:07 +0800, Kuo-Jung Su dant...@gmail.com wrote: diff --git a/arch/arm/include/asm/dma-mapping.h

Re: [U-Boot] [PATCH v4] arm: dra7xx: Update the EXTRA_ENV_SETTINGS

2013-06-11 Thread Tom Rini
On Thu, Jun 06, 2013 at 01:30:05PM -0500, Dan Murphy wrote: Update the EXTRA_ENV_SETTING for the dra7xx. The console needs to be set to ttyO0 and the findfdt needs to be updated to load the dra7xx-evm.dtb file. Signed-off-by: Dan Murphy dmur...@ti.com [snip] - setenv

Re: [U-Boot] [PATCH] arm: omap: Add check for fdtfile in the findfdt macro

2013-06-11 Thread Tom Rini
On Thu, Jun 06, 2013 at 01:27:06PM -0500, Dan Murphy wrote: In the omap4, omap5 and am335x common files add a check to ensure that the fdtfile is defined after the findfdt macro has run. If the file is not defined then warn the user that the dtb file is not defined. Signed-off-by: Dan

Re: [U-Boot] [PATCH] arm: omap5_uevm: Correct the console sys prompt for 5432

2013-06-11 Thread Tom Rini
On Thu, Jun 06, 2013 at 04:30:38PM -0500, Dan Murphy wrote: Correct the console sys prompt to display the correct processor and the corrent board Signed-off-by: Dan Murphy dmur...@ti.com Reported-by: Lubomir Popov lpo...@mm-sol.com Reviewed-by: Tom Rini tr...@ti.com But personally, this

Re: [U-Boot] [PATCH v2 06/16] sf: Update sf to support all sizes of flashes

2013-06-11 Thread Simon Glass
Hi Jagan, On Tue, Jun 11, 2013 at 8:31 AM, Jagan Teki jagannadh.t...@gmail.comwrote: Hi Simon, On Tue, Jun 11, 2013 at 3:19 AM, Simon Glass s...@chromium.org wrote: On Mon, Jun 10, 2013 at 9:05 AM, Jagan Teki jagannadh.t...@gmail.com wrote: Hi Tom, On Sat, Jun 8, 2013 at 8:24 PM,

Re: [U-Boot] [PATCH 6/8] config: don't define CONFIG_ARCH_DEVICE_TREE

2013-06-11 Thread Stephen Warren
On 06/11/2013 12:52 AM, Jagan Teki wrote: Hi, I think we can wait some more time to mature the fdt support on u-boot, as not many boards were using this future. may be I am also incorrect. Sorry, I don't understand what this means. And need to remove the CONFIG_ARCH_DEVICE_TREE references

[U-Boot] [PATCH] MIPS: mips64: fix typos in copyright text of start.S

2013-06-11 Thread Gabor Juhos
Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/cpu/mips64/start.S |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/cpu/mips64/start.S b/arch/mips/cpu/mips64/start.S index dc7ce07..1ece6c2 100644

Re: [U-Boot] [PATCH v2 06/16] sf: Update sf to support all sizes of flashes

2013-06-11 Thread Tom Rini
On Mon, Jun 10, 2013 at 02:49:35PM -0700, Simon Glass wrote: On Mon, Jun 10, 2013 at 9:05 AM, Jagan Teki jagannadh.t...@gmail.comwrote: Hi Tom, On Sat, Jun 8, 2013 at 8:24 PM, Jagan Teki jagannadh.t...@gmail.com wrote: Hi Simon, On Sat, Jun 8, 2013 at 8:11 PM, Simon Glass

Re: [U-Boot] [PATCH v4] arm: dra7xx: Update the EXTRA_ENV_SETTINGS

2013-06-11 Thread Dan Murphy
On 06/11/2013 10:50 AM, Tom Rini wrote: On Thu, Jun 06, 2013 at 01:30:05PM -0500, Dan Murphy wrote: Update the EXTRA_ENV_SETTING for the dra7xx. The console needs to be set to ttyO0 and the findfdt needs to be updated to load the dra7xx-evm.dtb file. Signed-off-by: Dan Murphy

Re: [U-Boot] [PATCH v2 06/16] sf: Update sf to support all sizes of flashes

2013-06-11 Thread Jagan Teki
Hi Simon, On Tue, Jun 11, 2013 at 9:26 PM, Simon Glass s...@chromium.org wrote: Hi Jagan, On Tue, Jun 11, 2013 at 8:31 AM, Jagan Teki jagannadh.t...@gmail.com wrote: Hi Simon, On Tue, Jun 11, 2013 at 3:19 AM, Simon Glass s...@chromium.org wrote: On Mon, Jun 10, 2013 at 9:05 AM, Jagan

Re: [U-Boot] [PATCH 0/8] rely on latest dtc, simplify

2013-06-11 Thread Tom Rini
On Mon, Jun 10, 2013 at 05:16:56PM -0600, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com This is a series of patches which simplifies the rules to build *.dts in U-Boot by relying on features in the latest dtc. The include rules are made more consistent between cpp (when

[U-Boot] [PATCH v5] arm: dra7xx: Update the EXTRA_ENV_SETTINGS

2013-06-11 Thread Dan Murphy
Update the EXTRA_ENV_SETTING for the dra7xx. The console needs to be set to ttyO0 and the findfdt needs to be updated to load the dra7xx-evm.dtb file. Signed-off-by: Dan Murphy dmur...@ti.com --- v5 - Fixed by adding the \0 to terminate the macro - http://patchwork.ozlabs.org/patch/249528/ v4 -

Re: [U-Boot] [PATCH 0/8] rely on latest dtc, simplify

2013-06-11 Thread Stephen Warren
On 06/11/2013 10:19 AM, Tom Rini wrote: On Mon, Jun 10, 2013 at 05:16:56PM -0600, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com This is a series of patches which simplifies the rules to build *.dts in U-Boot by relying on features in the latest dtc. The include rules are

Re: [U-Boot] [PATCH v2 06/16] sf: Update sf to support all sizes of flashes

2013-06-11 Thread Simon Glass
Hi, On Tue, Jun 11, 2013 at 9:19 AM, Jagan Teki jagannadh.t...@gmail.comwrote: Hi Simon, On Tue, Jun 11, 2013 at 9:26 PM, Simon Glass s...@chromium.org wrote: Hi Jagan, On Tue, Jun 11, 2013 at 8:31 AM, Jagan Teki jagannadh.t...@gmail.com wrote: Hi Simon, On Tue, Jun 11, 2013

Re: [U-Boot] [PATCH] MIPS: mips64: fix typos in copyright text of start.S

2013-06-11 Thread Daniel Schwierzeck
2013/6/11 Gabor Juhos juh...@openwrt.org: Signed-off-by: Gabor Juhos juh...@openwrt.org Cc: Daniel Schwierzeck daniel.schwierz...@gmail.com --- arch/mips/cpu/mips64/start.S |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/cpu/mips64/start.S

Re: [U-Boot] [PATCH v2 06/16] sf: Update sf to support all sizes of flashes

2013-06-11 Thread Jagan Teki
Hi Tom, On Tue, Jun 11, 2013 at 9:46 PM, Tom Rini tr...@ti.com wrote: On Mon, Jun 10, 2013 at 02:49:35PM -0700, Simon Glass wrote: On Mon, Jun 10, 2013 at 9:05 AM, Jagan Teki jagannadh.t...@gmail.comwrote: Hi Tom, On Sat, Jun 8, 2013 at 8:24 PM, Jagan Teki jagannadh.t...@gmail.com

Re: [U-Boot] [PATCH v2] powerpc/85xx: Add P1023RDB board support

2013-06-11 Thread Scott Wood
On 06/09/2013 05:24:05 AM, Chunhe Lan wrote: + /* W**G* - Flash, localbus */ + /* This will be changed to *I*G* after relocation to RAM. */ + SET_TLB_ENTRY(1, CONFIG_SYS_FLASH_BASE, CONFIG_SYS_FLASH_BASE_PHYS, + MAS3_SX|MAS3_SW|MAS3_SR, MAS2_W|MAS2_G, +

[U-Boot] [PATCH v2 0/21] Add tracing functionality to U-Boot

2013-06-11 Thread Simon Glass
This series adds a tracing feature to U-Boot which is useful for profiling boot time and other purposes. The core trace library relies on standard gcc function instrumentation and a microsecond timer which should work correctly on almost any architecture. Generic board is used to avoid the need

[U-Boot] [PATCH v2 02/21] x86: Correct missing local variable in bootm

2013-06-11 Thread Simon Glass
Enabling FIT produces a compile error. Fix this. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add new patch to fix FIT compile error for x86 arch/x86/lib/bootm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/lib/bootm.c b/arch/x86/lib/bootm.c index

[U-Boot] [PATCH v2 13/21] Add a simple test for sandbox trace

2013-06-11 Thread Simon Glass
It is difficult to automatically test tracing on most architectures, but with sandbox it is easy enough to do a simple sanity check. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add notification that the trace test has passed test/trace/test-trace.sh | 89

[U-Boot] [PATCH v2 01/21] pci: Convert extern inline functions to static inline

2013-06-11 Thread Simon Glass
I am not sure of the meaning of extern inline, but this gives errors when building with function instrumenting enabled. Change these functions to static inline. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add new patch to convert PCI inline functions to static inline

[U-Boot] [PATCH v2 07/21] Add trace library

2013-06-11 Thread Simon Glass
Add a library which supports tracing of execution using built-in gcc features and a microsecond timer. This can be used to record a list of function which are executed, along with a timestamp for each. Later this information can be sent to the host for processing. Signed-off-by: Simon Glass

[U-Boot] [PATCH v2 03/21] Fix missing return in do_mem_loop()

2013-06-11 Thread Simon Glass
For some reason this does not normally cause a compiler warning, but the code seems to be incorrect. Add the missing return. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add new patch to fix compiler warning in do_mem_loop() common/cmd_mem.c | 2 ++ 1 file changed, 2

[U-Boot] [PATCH v2 08/21] Add a trace command

2013-06-11 Thread Simon Glass
Add a trace command with sub-commands to start/stop tracing, print out statistics and dump trace information to memory for later upload to a host. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add cast to clarfy argument type on sandbox and x86 common/Makefile| 1 +

[U-Boot] [PATCH v2 21/21] x86: config: Add tracing options

2013-06-11 Thread Simon Glass
Add configs to enable tracing when it is needed. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add new patch to enable tracing on coreboot include/configs/coreboot.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/configs/coreboot.h

[U-Boot] [PATCH v2 04/21] Show stdout on error in fit-test

2013-06-11 Thread Simon Glass
When this test fails it is useful to see the output from U-Boot. Add printing of this information on failure. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None test/image/test-fit.py | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git

[U-Boot] [PATCH v2 05/21] bootstage: Correct printf types

2013-06-11 Thread Simon Glass
The unstash code is a bit loose with its printf() types, which gives warnings on sandbox. Correct this. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Fix tag to use : instead of ; common/bootstage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v2 15/21] Refactor the bootm command to reduce code duplication

2013-06-11 Thread Simon Glass
At present the bootm code is mostly duplicated for the plain 'bootm' command and its sub-command variant. This makes the code harder to maintain and means that changes must be made to several places. Introduce do_bootm_states() which performs selected portions of the bootm work, so that both

[U-Boot] [PATCH v2 17/21] arm: Implement the 'fake' go command

2013-06-11 Thread Simon Glass
Implement this feature on ARM for tracing. It would be nice to have generic bootm support so that it is easily implemented on any arch. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None arch/arm/lib/bootm.c | 33 + 1 file changed, 21

[U-Boot] [PATCH v2 18/21] exynos: Avoid function instrumentation for microsecond timer

2013-06-11 Thread Simon Glass
For tracing to work it has to be able to access the microsecond timer without causing a recursive call to the function entry/exit handlers. Add attributes to the relevant functions to support this. Signed-off-by: Simon Glass s...@chromium.org Signed-off-by: Simon Glass s...@chromium.org ---

[U-Boot] [PATCH v2 06/21] Add function to print a number with grouped digits

2013-06-11 Thread Simon Glass
Move bootstage's numbering printing code into a generic place so that it can be used by tracing also. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None common/bootstage.c | 22 -- include/vsprintf.h | 11 +++ lib/vsprintf.c | 16

[U-Boot] [PATCH v2 12/21] sandbox: Support trace feature

2013-06-11 Thread Simon Glass
Support tracing on sandbox by adding suitable CONFIG options. To enable it, compile U-Boot with FTRACE=1. The timer functions are marked to skip tracing, since these are called from the tracing code itself, and we want to avoid an infinite loop. Signed-off-by: Simon Glass s...@chromium.org ---

[U-Boot] [PATCH v2 11/21] Add proftool to decode profile data

2013-06-11 Thread Simon Glass
This tool provides the facility to decode U-Boot trace data and write out a text file in Linux ftrace format for use with pytimechart. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: None Makefile | 3 +- tools/.gitignore | 1 + tools/Makefile | 6 +

[U-Boot] [PATCH v2 16/21] Add a 'fake' go command to the bootm command

2013-06-11 Thread Simon Glass
For tracing it is useful to run as much of U-Boot as possible so as to get a complete picture. Quite a bit of work happens in bootm, and we don't want to have to stop tracing before bootm starts. Add a way of doing a 'fake' boot of the OS - which does everything up to the point where U-Boot is

[U-Boot] [PATCH v2 19/21] exynos: config: Add tracing options

2013-06-11 Thread Simon Glass
Add tracing to Exynos5 boards, so that tracing can be enabled when building with 'make FTRACE=1'. We use a 16MB trace buffer. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add new patch to enable tracing on Exynos5 include/configs/exynos5250-dt.h | 8 1 file

[U-Boot] [PATCH v2 20/21] x86: Support tracing function

2013-06-11 Thread Simon Glass
Some changes are needed to x86 timer functions to support tracing. Add these so that the feature works correctly. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add new patch to support tracing on x86 arch/x86/include/asm/global_data.h | 2 +- arch/x86/include/asm/msr.h

[U-Boot] [PATCH v2 10/21] Add trace support to generic board

2013-06-11 Thread Simon Glass
Add hooks for tracing to generic board, including: - allow early tracing to start early as possible in U-Boot - reserve memory for trace buffer - copy early trace buffer to main trace buffer after relocation - setup full tracing support after relocation Signed-off-by: Simon Glass

[U-Boot] [PATCH v2 09/21] Support tracing in config.mk when enabled

2013-06-11 Thread Simon Glass
Use -finstrument-functions when tracing is enabled (make FTRACE=1). Tracing is not currently supported by SPL even if sufficient memory is available. When tracing is enabled, we #define FTRACE. This can be used by board config files to conditionally enable the tracing options. Signed-off-by:

[U-Boot] [PATCH v2 14/21] Clarify bootm OS arguments

2013-06-11 Thread Simon Glass
At present the arguments to bootm are processed in a somewhat confusing way. Sub-functions must know how many arguments their calling functions have processed, and the OS boot function must also have this information. Also it isn't obvious that 'bootm' and 'bootm start' provide arguments in the

[U-Boot] [PATCH v3 14/17] sf: stmicro: Add support for N25Q1024A

2013-06-11 Thread Jagannadha Sutradharudu Teki
Add support for Numonyx N25Q1024A SPI flash. Signed-off-by: Jagannadha Sutradharudu Teki jaga...@xilinx.com --- Changes for v3: - none Changes for v2: - none drivers/mtd/spi/stmicro.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/mtd/spi/stmicro.c

[U-Boot] [PATCH v3 08/17] sf: Add bank addr code in CONFIG_SPI_FLASH_BAR

2013-06-11 Thread Jagannadha Sutradharudu Teki
Defined bank addr code on CONFIG_SPI_FLASH_BAR macro, to reduce the size for existing boards which has 16Mbytes SPI flashes. It's upto user which has provision to use the bank addr code for flashes which has 16Mbytes. Signed-off-by: Jagannadha Sutradharudu Teki jaga...@xilinx.com --- Changes

[U-Boot] [PATCH v3 05/17] sf: read flash bank addr register at probe time

2013-06-11 Thread Jagannadha Sutradharudu Teki
Read the flash bank addr register to get the state of bank in a perticular flash. and also bank write happens only when there is a change in bank selection from user. bank read only valid for flashes which has 16Mbytes those are opearted in 3-byte addr mode, each bank occupies 16Mytes. Suppose

[U-Boot] [PATCH v3 04/17] sf: Add extended addr read support for winbond|stmicro

2013-06-11 Thread Jagannadha Sutradharudu Teki
This patch provides support to read a flash extended address register for winbond and stmicro SPI flashes. Signed-off-by: Jagannadha Sutradharudu Teki jaga...@xilinx.com --- Changes for v3: - none Changes for v2: - none drivers/mtd/spi/spi_flash.c | 2 ++

[U-Boot] [PATCH v3 07/17] sf: Update sf read to support all sizes of flashes

2013-06-11 Thread Jagannadha Sutradharudu Teki
This patch updated the spi_flash read func to support all sizes of flashes using bank reg addr facility. The same support has been added in below patch for erase/write spi_flash functions: sf: Support all sizes of flashes using bank addr reg facility (sha1:

[U-Boot] [PATCH v3 02/17] sf: Add bank address register reading support

2013-06-11 Thread Jagannadha Sutradharudu Teki
This patch provides support to read a flash bank address register. reading extended/bank address register will give whether the flash is operated on extended/bank addressing or normal addressing in 3-byte address mode. Currently added an extended/bank address register reading support for

[U-Boot] [PATCH v3 06/17] sf: Update sf to support all sizes of flashes

2013-06-11 Thread Jagannadha Sutradharudu Teki
Updated the spi_flash framework to handle all sizes of flashes using bank/extd addr reg facility The current implementation in spi_flash supports 3-byte address mode due to this up to 16Mbytes amount of flash is able to access for those flashes which has an actual size of 16MB. As most of the

[U-Boot] [PATCH v3 13/17] sf: stmicro: Add support for N25Q1024

2013-06-11 Thread Jagannadha Sutradharudu Teki
Add support for Numonyx N25Q1024 SPI flash. Signed-off-by: Jagannadha Sutradharudu Teki jaga...@xilinx.com --- Changes for v3: - none Changes for v2: - none drivers/mtd/spi/stmicro.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/mtd/spi/stmicro.c

[U-Boot] [PATCH v3 01/17] sf: Add bank address register writing support

2013-06-11 Thread Jagannadha Sutradharudu Teki
This patch provides support to program a flash bank address register. extended/bank address register contains an information to access the 4th byte addressing in 3-byte address mode. Currently added an bank address register writing support for spansion flashes. reff' the spec for more details

[U-Boot] [PATCH v3 16/17] sf: Remove spi_flash_cmd_poll_bit()

2013-06-11 Thread Jagannadha Sutradharudu Teki
There is no other call other than spi_flash_cmd_wait_ready(), hence removed spi_flash_cmd_poll_bit and use the poll status code spi_flash_cmd_wait_ready() itself. Signed-off-by: Jagannadha Sutradharudu Teki jaga...@xilinx.com --- Changes for v3: - none Changes for v2: - none

[U-Boot] [PATCH v3 12/17] sf: stmicro: Add support for N25Q512A

2013-06-11 Thread Jagannadha Sutradharudu Teki
Add support for Numonyx N25Q512A SPI flash. Signed-off-by: Jagannadha Sutradharudu Teki jaga...@xilinx.com --- Changes for v3: - none Changes for v2: - none drivers/mtd/spi/stmicro.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/mtd/spi/stmicro.c

[U-Boot] [PATCH v3 00/17] sf: Update sf framework to support all sizes of flashes

2013-06-11 Thread Jagannadha Sutradharudu Teki
This series is v3 for the patch series sent few weeks back with a head sf: Update sf framework to support all sizes of flashes All patch are looks same for v2 and v3 but placed the bank addr code on CONFIG_SPI_FLASH_BAR to reduce the sizes. The current implementation in sf supports 3-byte

[U-Boot] [PATCH v3 09/17] sf: Initialize bank_sel to zero for read ops

2013-06-11 Thread Jagannadha Sutradharudu Teki
Initialized bank_sel variable to 0 to support the updated read ops for flashes which has 16Mbytes. Signed-off-by: Jagannadha Sutradharudu Teki jaga...@xilinx.com --- Changes for v3: - none Changes for v2: - none drivers/mtd/spi/spi_flash.c | 2 +- 1 file changed, 1

[U-Boot] [PATCH v3 10/17] sf: Use spi_flash_addr() in write call

2013-06-11 Thread Jagannadha Sutradharudu Teki
Use the existing spi_flash_addr() for 3-byte addressing cmd filling in write call. Signed-off-by: Jagannadha Sutradharudu Teki jaga...@xilinx.com --- Changes for v3: - none Changes for v2: - none drivers/mtd/spi/spi_flash.c | 7 ++- 1 file changed, 2 insertions(+), 5

[U-Boot] [PATCH v3 15/17] sf: spansion: Add support for S25FL512S_64K

2013-06-11 Thread Jagannadha Sutradharudu Teki
Add support for Spansion S25FL512S_64K SPI flash. Signed-off-by: Jagannadha Sutradharudu Teki jaga...@xilinx.com --- Changes for v3: - Added 64K sector part Changes for v2: - none drivers/mtd/spi/spansion.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

[U-Boot] [PATCH v3 11/17] sf: stmicro: Add support for N25Q512

2013-06-11 Thread Jagannadha Sutradharudu Teki
Add support for Numonyx N25Q512 SPI flash. Signed-off-by: Jagannadha Sutradharudu Teki jaga...@xilinx.com --- Changes for v3: - none Changes for v2: - none drivers/mtd/spi/stmicro.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/mtd/spi/stmicro.c

[U-Boot] [PATCH v3 03/17] sf: Add extended addr write support for winbond|stmicro

2013-06-11 Thread Jagannadha Sutradharudu Teki
This patch provides support to program a flash extended address register for winbond and stmicro SPI flashes. Signed-off-by: Jagannadha Sutradharudu Teki jaga...@xilinx.com --- Changes for v3: - none Changes for v2: - none drivers/mtd/spi/spi_flash.c | 2 ++

[U-Boot] [PATCH v3 17/17] sf: Add Flag status register polling support

2013-06-11 Thread Jagannadha Sutradharudu Teki
Flag status register polling is required for micron 512Mb flash devices onwards, for performing erase/program operations. Like polling for WIP(Write-In-Progress) bit in read status register, spi_flash_cmd_wait_ready will poll for PEC(Program-Erase-Control) bit in flag status register.

Re: [U-Boot] [PATCH v3 1/6] powerpc/ppc4xx: Use generic accessor functions for gdsys FPGA

2013-06-11 Thread Wolfgang Denk
Dear dirk.eib...@gdsys.cc, In message 1370959364-28943-2-git-send-email-dirk.eib...@gdsys.cc you wrote: From: Dirk Eibach eib...@gdsys.de A set of accessor functions was added to be able to access not only memory mapped FPGA in a generic way. Thanks to Wolfgang Denk for getting this

Re: [U-Boot] [PATCH v2 17/21] arm: Implement the 'fake' go command

2013-06-11 Thread Albert ARIBAUD
Hi Simon, On Tue, 11 Jun 2013 11:14:49 -0700, Simon Glass s...@chromium.org wrote: Implement this feature on ARM for tracing. It would be nice to have generic bootm support so that it is easily implemented on any arch. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2:

Re: [U-Boot] [PATCH v2 17/21] arm: Implement the 'fake' go command

2013-06-11 Thread Simon Glass
Hi Albert, On Tue, Jun 11, 2013 at 12:59 PM, Albert ARIBAUD albert.u.b...@aribaud.netwrote: Hi Simon, On Tue, 11 Jun 2013 11:14:49 -0700, Simon Glass s...@chromium.org wrote: Implement this feature on ARM for tracing. It would be nice to have generic bootm support so that it is easily

Re: [U-Boot] [PATCH] ppc: ppmc7xx: Fix possible out-of-bound access

2013-06-11 Thread Wolfgang Denk
Dear Marek Vasut, In message 1369018900-11198-1-git-send-email-ma...@denx.de you wrote: The flash_info_t-start[] field is limited in size by CONFIG_SYS_MAX_FLASH_SECT macro, which is set to 19 for this board in the board config file. If we inspect the board/ppmc7xx/flash.c closely,

Re: [U-Boot] [PATCH v2 17/21] arm: Implement the 'fake' go command

2013-06-11 Thread Albert ARIBAUD
Hi Simon, On Tue, 11 Jun 2013 13:02:56 -0700, Simon Glass s...@chromium.org wrote: Hi Albert, On Tue, Jun 11, 2013 at 12:59 PM, Albert ARIBAUD albert.u.b...@aribaud.netwrote: Hi Simon, On Tue, 11 Jun 2013 11:14:49 -0700, Simon Glass s...@chromium.org wrote: Implement this

[U-Boot] [PATCH V3 REPOST 2/4] mmc: report capacity for the selected partition

2013-06-11 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com Enhance the MMC core to calculate the size of each MMC partition, and update mmc-capacity whenever a partition is selected. This causes: mmc dev 0 1 ; mmcinfo ... to report the size of the currently selected partition, rather than always reporting the

[U-Boot] [PATCH V3 REPOST 1/4] README: document CONFIG_ENV_IS_IN_MMC

2013-06-11 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com Describe the meaning of CONFIG_ENV_IS_IN_MMC, and all related defines that must or can be set when using that option. Signed-off-by: Stephen Warren swar...@nvidia.com Reviewed-by: Peter Korsgaard jac...@sunsite.dk Acked-by: Tom Rini tr...@ti.com --- v3: *

[U-Boot] [PATCH V3 REPOST 3/4] env_mmc: allow negative CONFIG_ENV_OFFSET

2013-06-11 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com A negative value of CONFIG_ENV_OFFSET is treated as a backwards offset from the end of the eMMC device/partition, rather than a forwards offset from the start. This is useful when a single board may be stuffed with different eMMC devices, each of which has

[U-Boot] [PATCH V3 REPOST 4/4] ARM: tegra: make use of negative ENV_OFFSET on NVIDIA boards

2013-06-11 Thread Stephen Warren
From: Stephen Warren swar...@nvidia.com Use a negative value of CONFIG_ENV_OFFSET for all NVIDIA reference boards that store the U-Boot environment in the 2nd eMMC boot partition. This makes U-Boot agnostic to the size of the eMMC boot partition, which can vary depending on which eMMC device was

Re: [U-Boot] [PATCH v2 17/21] arm: Implement the 'fake' go command

2013-06-11 Thread Simon Glass
Hi Albert, On Tue, Jun 11, 2013 at 1:21 PM, Albert ARIBAUD albert.u.b...@aribaud.netwrote: Hi Simon, On Tue, 11 Jun 2013 13:02:56 -0700, Simon Glass s...@chromium.org wrote: Hi Albert, On Tue, Jun 11, 2013 at 12:59 PM, Albert ARIBAUD albert.u.b...@aribaud.netwrote: Hi Simon,

[U-Boot] PPC: 74xx/7xx: Pull request

2013-06-11 Thread Wolfgang Denk
Dear Tom, The following changes since commit e1208c2fe5e07f9a248cfbf9bbb212aa34ad2806: MIPS: asm/errno.h: switch to asm-generic/errno.h (2013-06-08 23:10:10 +0200) are available in the git repository at: git://git.denx.de/u-boot-74xx-7xx master for you to fetch changes up to

[U-Boot] PPC: MPC8xx / MPC82xx: Pull request

2013-06-11 Thread Wolfgang Denk
Dear Tom, The following changes since commit e1208c2fe5e07f9a248cfbf9bbb212aa34ad2806: MIPS: asm/errno.h: switch to asm-generic/errno.h (2013-06-08 23:10:10 +0200) are available in the git repository at: git://git.denx.de/u-boot-mpc82xx master for you to fetch changes up to

Re: [U-Boot] [PATCH v2 17/21] arm: Implement the 'fake' go command

2013-06-11 Thread Albert ARIBAUD
Hi Simon, On Tue, 11 Jun 2013 14:17:42 -0700, Simon Glass s...@chromium.org wrote: Hi Albert, On Tue, Jun 11, 2013 at 1:21 PM, Albert ARIBAUD albert.u.b...@aribaud.netwrote: Hi Simon, On Tue, 11 Jun 2013 13:02:56 -0700, Simon Glass s...@chromium.org wrote: Hi Albert,

Re: [U-Boot] [PATCH 0/8] rely on latest dtc, simplify

2013-06-11 Thread Tom Rini
On Tue, Jun 11, 2013 at 10:36:14AM -0600, Stephen Warren wrote: On 06/11/2013 10:19 AM, Tom Rini wrote: On Mon, Jun 10, 2013 at 05:16:56PM -0600, Stephen Warren wrote: From: Stephen Warren swar...@nvidia.com This is a series of patches which simplifies the rules to build *.dts in

  1   2   >