[U-Boot] [PATCH] atngw100: convert to generic board

2015-05-23 Thread Andreas Bießmann
Signed-off-by: Andreas Bießmann andreas.de...@googlemail.com --- Tested on an atngw100 thankfully provided by Waldemar. Thus http://patchwork.ozlabs.org/patch/470705/ is not required. include/configs/atngw100.h |4 1 file changed, 4 insertions(+) diff --git a/include/configs/atngw100.h

Re: [U-Boot] drivers/elbc:Memory leak fix

2015-05-23 Thread Scott Wood
On Fri, 2015-05-22 at 21:55 -0500, Kushwaha Prabhakar-B32579 wrote: -Original Message- From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Scott Wood Sent: Saturday, May 23, 2015 1:57 AM To: Dogra Raghav-B46184 Cc: u-boot@lists.denx.de; Sun York-R58495 Subject:

[U-Boot] [PATCH 2/2] pwm: imx: Remove unreachable code

2015-05-23 Thread Axel Lin
The break after return is unreachable code, remove it. Signed-off-by: Axel Lin axel@ingics.com --- drivers/pwm/pwm-imx-util.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/pwm/pwm-imx-util.c b/drivers/pwm/pwm-imx-util.c index 79d86028..f92c370 100644 ---

[U-Boot] [PATCH 1/2] pwm: imx: Prevent NULL pointer dereference

2015-05-23 Thread Axel Lin
pwm_id_to_reg() can return NULL, so add NULL testing to prevent NULL pointer dereference. Signed-off-by: Axel Lin axel@ingics.com --- drivers/pwm/pwm-imx.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c index 40bf027..47799fc

Re: [U-Boot] u-boot compilation error for altera socfpga cyclon 5 if gpio included

2015-05-23 Thread Masahiro Yamada
Hi Altunbas, 2015-05-21 19:51 GMT+09:00 Altunbas Sabri (DC-IA/EAH2) sabri.altun...@boschrexroth.de: Hi, Thanks for response I don't find this path in my u-boot. Perhaps I use u-boot-2013-01-01. I crated it and gpio.h in it. But it doesn't work. Best regards If you are using v2013.01,

Re: [U-Boot] Marvell Armada XP u-boot from uart

2015-05-23 Thread Stefan Roese
On 22.05.2015 16:12, Peter Robinson wrote: Is it possible to load and boot Marvell Armada XP u-boot completely from uart without spi or nand flash? I have custom board with MV78460 and clean flash memory. You can use kwboot I believe. Correct. kwboot can be used to upload and execute a

Re: [U-Boot] [PATCH v5 19/26] test: dm: Don't bail on all tests if one test fails

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:32PM -0500, Joe Hershberger wrote: There's not much point in having a failure count if we always give up on the first failure. Also stop clearing the entire state between tests. Make sure that any failures are still passed out to the command line.

Re: [U-Boot] [PATCH v5 25/26] test: env: Add a test of the new regex behavior for attrs

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:38PM -0500, Joe Hershberger wrote: The behavior of the env attrs depends on CONFIG_REGEX. Add an additional test if that variable is set. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Reviewed-by: Simon Glass s...@chromium.org Applied to u-boot/master,

Re: [U-Boot] [PATCH v5 24/26] test: env: Add test for verifying env attrs

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:37PM -0500, Joe Hershberger wrote: Add a test of the env_attr_lookup() function. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Reviewed-by: Simon Glass s...@chromium.org Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital

Re: [U-Boot] [PATCH v5 23/26] test: env: Add test framework for env

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:36PM -0500, Joe Hershberger wrote: Add a new env subcommand to the ut command. This will run unit tests on the env code. This should be targetable to any device that supports the env features needed for the tests. Signed-off-by: Joe Hershberger

Re: [U-Boot] [PATCH v5 18/26] test: Move the unit tests to their own menu

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:31PM -0500, Joe Hershberger wrote: Make all unit tests selectable as a menu of test suites instead of just sitting in the top-level menu individually. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Acked-by: Simon Glass s...@chromium.org Applied to

Re: [U-Boot] [PATCH v5 22/26] test: dm: Recover the driver model tree after tests

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:35PM -0500, Joe Hershberger wrote: Put the driver model for the system back into a good state after completing the DM testing. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Acked-by: Simon Glass s...@chromium.org Applied to u-boot/master, thanks! --

Re: [U-Boot] [PATCH v5 08/26] env: Distinguish finer between source of env change

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:21PM -0500, Joe Hershberger wrote: We already could tell the difference in the callback between an import and other which we called interactive. Now add further distinction between interactive (i.e. running env set / env edit / env ask / etc. from the U-Boot

Re: [U-Boot] [PATCH v5 17/26] test: dm: Move the time test over to the ut command

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:30PM -0500, Joe Hershberger wrote: Unify the command for running unit tests further by moving the ut_time command over to ut time. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [U-Boot] [PATCH v5 20/26] test: dm: eth: Handle failed test env cleanup

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:33PM -0500, Joe Hershberger wrote: Make sure that the env gets cleaned up after a test fails so that other tests aren't affected. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: [U-Boot] [PATCH v5 06/26] env: Allow env_attr_walk to pass a priv * to callback

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:19PM -0500, Joe Hershberger wrote: In some cases it can be helpful to have context in the callback about the calling situation. This is needed for following patches. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH v5 05/26] env: Simplify the reverse_strstr() interface

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:18PM -0500, Joe Hershberger wrote: The logic to find the whole matching name was split needlessly between the reverse_strstr function and its caller. Fully contain it to make the interface for calling it more consistent. Signed-off-by: Joe Hershberger

Re: [U-Boot] [PATCH v5 10/26] net: Use env callbacks for net variables

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:23PM -0500, Joe Hershberger wrote: Instead of checking for changes to the env each time we enter the net_loop, use the env callbacks to update the values of the variables. Don't update the variables when the source was programmatic, since the variables were the

Re: [U-Boot] [PATCH v5 12/26] net: Remove duplicate bootfile syncing functionality

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:25PM -0500, Joe Hershberger wrote: The bootfile env var is already kept up to date by the callback in net.c so there is no need to poll it too. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] [PATCH v5 09/26] net: Apply default format rules to all ethaddr

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:22PM -0500, Joe Hershberger wrote: Use a regular expression to apply the default formatting flags for all ethaddr env vars. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Reviewed-by: Simon Glass s...@chromium.org Applied to u-boot/master, thanks! --

Re: [U-Boot] [PATCH v5 04/26] env: Fix return values in env_attr_lookup()

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:17PM -0500, Joe Hershberger wrote: This function returned numbers for error codes. Change them to error codes. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Reviewed-by: Simon Glass s...@chromium.org Applied to u-boot/master, thanks! -- Tom

Re: [U-Boot] [PATCH v5 02/26] sandbox: Use defconfig to enable features

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:15PM -0500, Joe Hershberger wrote: Stop using the sandbox arch Kconfig to override defaults for config options. This is a bit of abuse and may be causing build problems. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Applied to u-boot/master, thanks! --

Re: [U-Boot] [PATCH v5 01/26] sandbox: Cleanup order and extra defines in defconfig

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:14PM -0500, Joe Hershberger wrote: The defconfigs should not be edited directly. They should be generated by editing the .config (through menuconfig or whatever) and then run make savedefconfig to have the Kconfig system generate a clean defconfig I did this

Re: [U-Boot] [PATCH v5 03/26] sandbox: Enable some ENV commands

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:16PM -0500, Joe Hershberger wrote: Enable some additional ENV commands in sandbox to aid in build testing and run testing. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Reviewed-by: Simon Glass s...@chromium.org Applied to u-boot/master, thanks! --

Re: [U-Boot] [PATCH v5 21/26] test: Return values from the asserts compatible with cmds

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:34PM -0500, Joe Hershberger wrote: The asserts are sometimes called from the context of the test command itself so make sure that a return that happens as a result of a failure is compatible with that command return. When called within a test, the return value is

Re: [U-Boot] [PATCH v5 07/26] env: Add regex support to env_attrs

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:20PM -0500, Joe Hershberger wrote: Allow the features that use env_attrs to specify regexs for the name Signed-off-by: Joe Hershberger joe.hershber...@ni.com Reviewed-by: Simon Glass s...@chromium.org Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [U-Boot] Please pull u-boot-fsl-qoriq master

2015-05-23 Thread Tom Rini
On Fri, May 22, 2015 at 01:55:37PM -0700, York Sun wrote: Tom, The following changes since commit 0e6b7a28243175ae0874d53b6e6e4eff8548d71f: Merge git://git.denx.de/u-boot-samsung (2015-05-18 09:15:15 -0400) are available in the git repository at:

Re: [U-Boot] [PATCH v5 13/26] net: Handle ethaddr changes as an env callback

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:26PM -0500, Joe Hershberger wrote: When the ethaddr is changed in the env, update the device pdata at the same time (only if it is probed for the DM case; only if registered for the non-DM case). Again this gets us closer to completely non-polled env needed to

Re: [U-Boot] [PATCH v5 14/26] test: Generalize the unit test framework

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:27PM -0500, Joe Hershberger wrote: Separate the ability to define tests and assert status of test functions from the dm tests so they can be used more consistently throughout all tests. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Reviewed-by: Simon

Re: [U-Boot] [PATCH v5 16/26] test: dm: Move the dm tests over to the ut command

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:29PM -0500, Joe Hershberger wrote: Unify the command for running unit tests further by moving the dm test command over to ut dm. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Acked-by: Simon Glass s...@chromium.org Applied to u-boot/master, thanks! --

Re: [U-Boot] [PATCH v5 15/26] test: Add a common unit test command

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:28PM -0500, Joe Hershberger wrote: Add a command that all other unit tests should be a sub-command of. Also include a command that will run all tests. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Acked-by: Simon Glass s...@chromium.org Applied to

Re: [U-Boot] [PATCH v5 26/26] sandbox: Enable env unit tests

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:39PM -0500, Joe Hershberger wrote: Enable the new env unit tests on sandbox. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Reviewed-by: Simon Glass s...@chromium.org Applied to u-boot/master, thanks! -- Tom signature.asc Description: Digital

Re: [U-Boot] [PATCH v5 11/26] net: Add default flags for common net env vars

2015-05-23 Thread Tom Rini
On Wed, May 20, 2015 at 02:27:24PM -0500, Joe Hershberger wrote: Check that the common network stack's env vars conform to the proper format for IP addresses. Signed-off-by: Joe Hershberger joe.hershber...@ni.com Reviewed-by: Simon Glass s...@chromium.org Applied to u-boot/master, thanks!

Re: [U-Boot] [PATCH 2/2] pwm: imx: Remove unreachable code

2015-05-23 Thread Stefano Babic
On 23/05/2015 09:17, Axel Lin wrote: The break after return is unreachable code, remove it. Signed-off-by: Axel Lin axel@ingics.com --- drivers/pwm/pwm-imx-util.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/pwm/pwm-imx-util.c b/drivers/pwm/pwm-imx-util.c index

Re: [U-Boot] [PATCH 1/2] pwm: imx: Prevent NULL pointer dereference

2015-05-23 Thread Stefano Babic
Hi Axel, On 23/05/2015 09:16, Axel Lin wrote: pwm_id_to_reg() can return NULL, so add NULL testing to prevent NULL pointer dereference. Signed-off-by: Axel Lin axel@ingics.com --- drivers/pwm/pwm-imx.c | 12 1 file changed, 12 insertions(+) diff --git

[U-Boot] soft-i2c and i2c-gpio issues with at91

2015-05-23 Thread Matt Wood
Hi all, I am trying to get a bitbanged i2c port working with u-boot on an Atmel SAMA5D3 platform. I have added DT bindings to support the I2C drivers however when I try to select the bus on the u-boot command line I consistently get an error in gpio-uclass: _gpio_request_by_name_nodev:

[U-Boot] [PATCH] mx6: invalidate D-cache only when booting from USB

2015-05-23 Thread Vincent Stehlé
Add a detection at runtime of the boot from USB on i.MX6, and invalidate the D-cache only in that case. The USB boot detection method is taken from Freescale u-boot commit 1309b1ed78b3 (ENGR00315499-8 Auto check if boot from usb). This repairs u-boot when it is built with

Re: [U-Boot] [PATCH] mx6: invalidate D-cache only when booting from USB

2015-05-23 Thread Vincent Stehlé
On 05/22/2015 05:15 PM, Li Frank-B20596 wrote: .. How about second uboot save in usb mass storage device? Hi Frank, I cannot test but I guess this will behave the same as without the patch, which means that it will probably not boot. Granted, the detection method in is_boot_from_usb() is an

Re: [U-Boot] [PATCH cosmetic] x86: fsp_support: Correct high mem comment typo

2015-05-23 Thread Bin Meng
+Simon. On Sat, May 23, 2015 at 3:11 AM, and...@bradfordembedded.com wrote: From: Andrew Bradford andrew.bradf...@kodakalaris.com High mem starts at 4 GiB. Signed-off-by: Andrew Bradford andrew.bradf...@kodakalaris.com --- arch/x86/lib/fsp/fsp_support.c | 2 +- 1 file changed, 1

[U-Boot] [PATCH v2 2/2] x86: qemu: Turn on legacy segments decode

2015-05-23 Thread Bin Meng
By default the legacy segments C/D/E/F do not decode to system RAM. Turn on the decode via Programmable Attribute Map (PAM) registers so that we can write configuration tables in the F segment. Signed-off-by: Bin Meng bmeng...@gmail.com Acked-by: Simon Glass s...@chromium.org --- Changes in v2:

Re: [U-Boot] [PATCH 1/2] x86: qemu: Make host bridge (b.d.f=0.0.0) visible

2015-05-23 Thread Bin Meng
Hi Simon, On Thu, May 21, 2015 at 1:45 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 20 May 2015 at 03:04, Bin Meng bmeng...@gmail.com wrote: The default weak version of pci_skip_dev() in drivers/pci/pci_common.c skips the host bridge (b.d.f = 0.0.0) which is actually the i440fx/q35

Re: [U-Boot] [PATCH cosmetic] x86: fsp_support: Correct high mem comment typo

2015-05-23 Thread Simon Glass
On 23 May 2015 at 09:44, Bin Meng bmeng...@gmail.com wrote: +Simon. On Sat, May 23, 2015 at 3:11 AM, and...@bradfordembedded.com wrote: From: Andrew Bradford andrew.bradf...@kodakalaris.com High mem starts at 4 GiB. Signed-off-by: Andrew Bradford andrew.bradf...@kodakalaris.com ---

Re: [U-Boot] [PATCH 1/4] x86: Refactor PIRQ routing support

2015-05-23 Thread Simon Glass
Hi Bin, On 23 May 2015 at 10:22, Bin Meng bmeng...@gmail.com wrote: Hi Simon, On Thu, May 21, 2015 at 1:45 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 20 May 2015 at 01:55, Bin Meng bmeng...@gmail.com wrote: PIRQ routing is pretty much common in Intel chipset. It has several PIRQ

Re: [U-Boot] [PATCH v2 1/2] x86: qemu: Make host bridge (b.d.f=0.0.0) visible

2015-05-23 Thread Simon Glass
On 23 May 2015 at 10:12, Bin Meng bmeng...@gmail.com wrote: The default weak version of pci_skip_dev() in drivers/pci/pci_common.c skips the host bridge (b.d.f = 0.0.0) which is actually the i440fx/q35 chipset for QEMU targets. Define CONFIG_PCI_CONFIG_HOST_BRIDGE to make it visible in the PCI

Re: [U-Boot] [PATCH] x86: baytrail: PCI is not always mapped to end of ram

2015-05-23 Thread Bin Meng
+Simon. Hi Andrew, On Sat, May 23, 2015 at 3:09 AM, and...@bradfordembedded.com wrote: From: Andrew Bradford andrew.bradf...@kodakalaris.com PCI on Intel Baytrail is mapped to 0x8000, which is not always at the end of SDRAM, such as when running with 4 GiB of SDRAM. The PCI bus memory

[U-Boot] [PATCH v2 1/2] x86: qemu: Make host bridge (b.d.f=0.0.0) visible

2015-05-23 Thread Bin Meng
The default weak version of pci_skip_dev() in drivers/pci/pci_common.c skips the host bridge (b.d.f = 0.0.0) which is actually the i440fx/q35 chipset for QEMU targets. Define CONFIG_PCI_CONFIG_HOST_BRIDGE to make it visible in the PCI configuration space. Signed-off-by: Bin Meng

Re: [U-Boot] [PATCH 1/4] x86: Refactor PIRQ routing support

2015-05-23 Thread Bin Meng
Hi Simon, On Thu, May 21, 2015 at 1:45 AM, Simon Glass s...@chromium.org wrote: Hi Bin, On 20 May 2015 at 01:55, Bin Meng bmeng...@gmail.com wrote: PIRQ routing is pretty much common in Intel chipset. It has several PIRQ links (normally 8) and corresponding registers (either in PCI

Re: [U-Boot] [PATCH v2] wandboard: Add board revision detection support

2015-05-23 Thread Alexander Holler
Am 23.05.2015 um 02:38 schrieb Vagrant Cascadian: On 2015-05-21, Fabio Estevam wrote: From: Fabio Estevam fabio.este...@freescale.com There are two revisions of wandboard: version B1 and C1. Add the revision detection support, so that the correct dtb file can be automatically loaded. Based

[U-Boot] soft-i2c and i2c-gpio question with at91

2015-05-23 Thread Matt Wood
Hi all, I am trying to get a bitbanged i2c port working with u-boot on an Atmel SAMA5D3 platform. I have added DT bindings to support the I2C drivers however when I try to select the bus on the u-boot command line I consistently get an error in gpio-uclass: _gpio_request_by_name_nodev:

Re: [U-Boot] U-Boot loads and verifies a second U-Boot on beaglebone

2015-05-23 Thread Simon Glass
Hi, On 23 May 2015 at 11:24, pratap [via U-Boot] ml-node+s10912n21553...@n7.nabble.com wrote: Hi All, Inspired by simon's advice posted on LWN regarding verifying the signature of secondary uboot and thereby loading the kernel + devicetree + ramfs. Did you mean to send this to the

Re: [U-Boot] Regarding learning reference of uboot loading secondary uboot

2015-05-23 Thread Simon Glass
Hi, On 23 May 2015 at 13:02, Maddimsetty Pratap pratapna...@gmail.com wrote: Hi Simon, Thanks for you quick reply and sorry for the confusion over forum,here is my request for help 1) Do you know any repository which had already did it verify second u-boot

[U-Boot] U-Boot loads and verifies a second U-Boot on beaglebone

2015-05-23 Thread pratap
Hi All, Inspired by simon's advice posted on LWN regarding verifying the signature of secondary uboot and thereby loading the kernel + devicetree + ramfs. I would be thankful if i can get reference codebase for beaglebone, as stated below on LWN forum *On a BeagleBone Black (OMAP4),

[U-Boot] [PATCH] sandbox: Compile test device tree when CONFIG_UT_DM is defined

2015-05-23 Thread Simon Glass
A conflict between the PMIC and unit test work means that the sandbox test device tree file is no-longer built. Fix this. Signed-off-by: Simon Glass s...@chromium.org --- arch/sandbox/dts/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sandbox/dts/Makefile

Re: [U-Boot] drivers/elbc:Memory leak fix

2015-05-23 Thread Timur Tabi
On Fri, May 22, 2015 at 9:55 PM, Kushwaha Prabhakar prabha...@freescale.com wrote: It is not getting catch during GCC build. But during static analysis using Klockwork, this is shown as error. Then Klockwork is wrong. ___ U-Boot mailing list