[U-Boot] [PATCH] libfdt: Drop -FDT_ERR_TOODEEP

2017-07-09 Thread Simon Glass
This error code has not been upstreamed and is not really needed since it is unlikely to be triggered. Drop it to maintain compatability with upstream. Reported-by: Peter Robinson Signed-off-by: Simon Glass --- lib/libfdt/fdt_region.c | 2 +-

Re: [U-Boot] [ANN] U-Boot v2017.07-rc2 released

2017-07-09 Thread Simon Glass
Hi Tom, On 9 July 2017 at 16:36, Tom Rini wrote: > On Sun, Jul 09, 2017 at 12:38:19PM -0600, Simon Glass wrote: >> Hi, >> >> On 9 July 2017 at 06:49, Tom Rini wrote: >> > On Sun, Jul 09, 2017 at 10:45:52AM +0100, Peter Robinson wrote: >> >> On Sat, Jul 8,

[U-Boot] [PATCH 28/30] env: Drop saveenv() in favour of env_save()

2017-07-09 Thread Simon Glass
Use the env_save() function directly now that there is only one implementation of saveenv(). Signed-off-by: Simon Glass --- arch/arm/mach-omap2/boot-common.c | 3 ++- board/siemens/taurus/taurus.c | 5 +++-- board/toradex/apalis_imx6/apalis_imx6.c | 3 ++-

[U-Boot] [PATCH 30/30] env: Adjust the load() method to return an error

2017-07-09 Thread Simon Glass
The load() methods have inconsistent behaviour on error. Some of them load an empty default environment. Some load an environment containing an error message. Others do nothing. As a step in the right direction, have the method return an error code. Then the caller could handle this itself in a

[U-Boot] [PATCH 23/30] env: Drop the env_name_spec global

2017-07-09 Thread Simon Glass
Add a name to the driver and use that instead of the global variable declared by each driver. Signed-off-by: Simon Glass --- cmd/nvedit.c | 4 +++- env/dataflash.c | 3 +-- env/eeprom.c | 3 +-- env/env.c | 2 +- env/ext4.c

[U-Boot] [PATCH 29/30] env: Adjust the get_char() method to return an int

2017-07-09 Thread Simon Glass
In principle this can fail, e.g. if the index is out of range. Adjust the driver signature to allow returning an error code. Signed-off-by: Simon Glass --- env/dataflash.c | 2 +- env/eeprom.c | 2 +- env/nvram.c | 2 +- include/environment.h | 4

[U-Boot] [PATCH 26/30] env: Drop env_get_char_spec()

2017-07-09 Thread Simon Glass
We only have a single implementation of this function now and it is called env_get_char(). Drop the old function and the weak version. Signed-off-by: Simon Glass --- env/common.c | 14 -- env/env.c | 15 +++ include/environment.h

[U-Boot] [PATCH 25/30] env: Drop env_init_new()

2017-07-09 Thread Simon Glass
Now that env_init() is only defined once we can drop the env_init_new() name and just use env_init(). Signed-off-by: Simon Glass --- env/env.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/env/env.c b/env/env.c index a649457270..70ce2857c3 100644

[U-Boot] [PATCH 21/30] env: Switch over to use environment location drivers

2017-07-09 Thread Simon Glass
Move over to use a the master implementation of the location drivers, with each method calling out to the appropriate driver. Signed-off-by: Simon Glass --- env/dataflash.c | 16 env/eeprom.c| 16 env/env.c | 26

[U-Boot] [PATCH 20/30] env: Add a new implementation of environment access

2017-07-09 Thread Simon Glass
We plan to move to a environment access via drivers for each location where the environment can be stored. Add an implementation for this. So far it is not used, but will be pressed into service in a future patch. Signed-off-by: Simon Glass --- env/Makefile | 2 +-

[U-Boot] [PATCH 15/30] env: common: Drop env_get_char_init()

2017-07-09 Thread Simon Glass
This function does nothing but call env_get_char_spec(). Drop it and adjust its only caller. Signed-off-by: Simon Glass --- env/common.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/env/common.c b/env/common.c index 10c4e134f4..e919269c7f 100644

[U-Boot] [PATCH 18/30] env: Rename nand env_location to nand_env_location

2017-07-09 Thread Simon Glass
We want to use this name for all environment drivers. Update the nand driver to use a more specific name. Signed-off-by: Simon Glass --- env/nand.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/env/nand.c b/env/nand.c index a67b5ad1ab..e9188539ca

[U-Boot] [PATCH 17/30] env: Add an enum for environment state

2017-07-09 Thread Simon Glass
At present we have three states for the environment, numbered 0, 1 and 2. Add an enum to record this to avoid open-coded values. Signed-off-by: Simon Glass --- board/Arcturus/ucp1020/spl.c | 3 ++- board/freescale/b4860qds/spl.c | 3 ++-

[U-Boot] [PATCH 13/30] env: common: Drop env_get_addr()

2017-07-09 Thread Simon Glass
This function is not used anywhere other than env_get_char(). Move the code into that function. Signed-off-by: Simon Glass --- env/common.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/env/common.c b/env/common.c index

[U-Boot] [PATCH 14/30] env: common: Factor out the common env_valid check

2017-07-09 Thread Simon Glass
The check for gd->env_valid is used in both the 'if' and 'else' part of env_get_char(). Move it into that function instead for simplicity. Drop that code from the two leaf functions. Signed-off-by: Simon Glass --- env/common.c | 17 ++--- 1 file changed, 6

[U-Boot] [PATCH 16/30] env: common: Drop env_get_char_memory()

2017-07-09 Thread Simon Glass
This function is the same as env_get_char_spec() apart from dropping the brackets. Drop the brackets from env_get_char_spec() and use that instead of env_get_char_memory(). Signed-off-by: Simon Glass --- env/common.c | 7 --- 1 file changed, 7 deletions(-) diff --git

[U-Boot] [PATCH 12/30] env: common: Make env_get_addr/get_char_memory() static

2017-07-09 Thread Simon Glass
These functions are not used outside this file. Make them static and order them to avoid forward declarations. Signed-off-by: Simon Glass --- env/common.c | 18 +- include/environment.h | 4 2 files changed, 9 insertions(+), 13 deletions(-)

[U-Boot] [PATCH 11/30] Convert CONFIG_ENV_IS_IN_FAT to Kconfig

2017-07-09 Thread Simon Glass
This converts the following to Kconfig: CONFIG_ENV_IS_IN_FAT Signed-off-by: Simon Glass --- README | 44 arch/arm/Kconfig | 1 + configs/am335x_evm_defconfig

[U-Boot] [PATCH 08/30] Convert CONFIG_ENV_IS_IN_DATAFLASH to Kconfig

2017-07-09 Thread Simon Glass
This converts the following to Kconfig: CONFIG_ENV_IS_IN_DATAFLASH Signed-off-by: Simon Glass --- README| 13 - configs/at91sam9260ek_dataflash_cs0_defconfig | 1 + configs/at91sam9260ek_dataflash_cs1_defconfig | 1 +

[U-Boot] [PATCH 10/30] Convert CONFIG_ENV_IS_IN_REMOTE to Kconfig

2017-07-09 Thread Simon Glass
This converts the following to Kconfig: CONFIG_ENV_IS_IN_REMOTE Signed-off-by: Simon Glass --- configs/B4860QDS_SRIO_PCIE_BOOT_defconfig | 1 + configs/P2041RDB_SRIO_PCIE_BOOT_defconfig | 1 + configs/P3041DS_SRIO_PCIE_BOOT_defconfig | 1 +

[U-Boot] [PATCH 07/30] Convert CONFIG_ENV_IS_IN_EEPROM to Kconfig

2017-07-09 Thread Simon Glass
This converts the following to Kconfig: CONFIG_ENV_IS_IN_EEPROM Signed-off-by: Simon Glass --- README | 60 configs/imx31_phycore_defconfig | 1 + configs/imx31_phycore_eet_defconfig | 1 +

[U-Boot] [PATCH 06/30] Convert CONFIG_ENV_IS_IN_NVRAM to Kconfig

2017-07-09 Thread Simon Glass
This converts the following to Kconfig: CONFIG_ENV_IS_IN_NVRAM Signed-off-by: Simon Glass --- README | 14 -- configs/highbank_defconfig | 3 ++- env/Kconfig | 15 +++ include/configs/highbank.h | 1 -

[U-Boot] [PATCH 02/30] Move environment files from common/ to env/

2017-07-09 Thread Simon Glass
About a quarter of the files in common/ relate to the environment. It seems better to put these into their own subdirectory and remove the prefix. Signed-off-by: Simon Glass --- Kconfig | 2 + Makefile | 1

[U-Boot] [PATCH 04/30] env: Move help from README to Kconfig

2017-07-09 Thread Simon Glass
The CONFIG_ENV_IS_IN_... options which have already been converted to Kconfig only have a small amount of help. Move the rest of it over from the README. Signed-off-by: Simon Glass --- README | 114

[U-Boot] [PATCH 01/30] Makefile: Rename 'env' target to 'environ'

2017-07-09 Thread Simon Glass
This target stops us using 'env' as a subdirectory. It is not mentioned in the help so seems to be an internal target. Rename it. Signed-off-by: Simon Glass --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index

[U-Boot] [PATCH 00/30] env: Move environment code to use location drivers

2017-07-09 Thread Simon Glass
The environment code is ripe for improvement in various ways. It has lots of duplication and inconsistencies between how things work with different environment locations. It does not properly use Kconfig. Error checking and handling is patchy. This series makes a start at improving things: -

[U-Boot] [PATCH 6/8] armv7: Add workaround for USB erratum A-009798

2017-07-09 Thread Ran Wang
The default setting for USB High Speed Squelch Threshold results in a threshold close to or lower than 100mV. This leads to Receive Compliance test failure for a 100mV threshold. The changes shift the threshold from ~100mV towards ~130mV resulting in passing of USB High Speed Receiver Sensitivity

[U-Boot] [PATCH 5/8] armv7: Add workaround for USB erratum A-009008

2017-07-09 Thread Ran Wang
USB High Speed (HS) EYE Height Adjustment USB HS speed eye diagram fails with the default value at many corners, particularly at a high temperature Optimal eye at TXVREFTUNE value to 1001 is ovserved, change set the same value. Signed-off-by: Sriram Dash Signed-off-by:

[U-Boot] [PATCH 7/8] armv7: Add workaround for USB erratum A-008997

2017-07-09 Thread Ran Wang
Low Frequency Periodic Singaling (LFPS) Peak-to-Peak Differential Output Voltage Test Compliance fails using default transmitter settings Change settings required for transmitter signal swings to pass compliance tests. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat

[U-Boot] [PATCH 3/8] armv8: Add workaround for USB erratum A-008997

2017-07-09 Thread Ran Wang
Low Frequency Periodic Signaling(LFPS) Peak-to-Peak Differential Output Voltage Test Compliance fails using default transmitter settings Change setting required for transmitter signal swings to pass compliance tests. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat

[U-Boot] [PATCH 8/8] armv7: Add workaround for USB erratum A-009007

2017-07-09 Thread Ran Wang
Rx Compliance tests may fail intermittently at high jitter frequencies using default register values Changes identified in test setup makes the Rx compliance test pass Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat Signed-off-by: Suresh

[U-Boot] [PATCH 4/8] armv8: Add workaround for USB erratum A-009007

2017-07-09 Thread Ran Wang
Rx Compliance tests may fail intermittently at high jitter frequencies using default register values. Changes identified in setup makes the Rx compliance test pass. Signed-off-by: Sriram Dash Signed-off-by: Rajesh Bhagat Signed-off-by: Suresh Gupta

[U-Boot] [PATCH 2/8] armv8: Add workaround for USB erratum A-009798

2017-07-09 Thread Ran Wang
The default setting for USB High Speed Squelch Threshold results in a threshold close to or lower than 100mV. This leads to Receiver Compliance test failure for a 100mV threshold. The changes shift the threshold from ~100mV woards ~130mV resulting in passing of USB High Speed Receiver Sensitivity

[U-Boot] [PATCH 1/8] armv8: Add workaround for USB erratum A-009008

2017-07-09 Thread Ran Wang
USB High Speed (HS) EYE Height Adjustment USB HS speed eye diagram fails with the default value at many corners, particularly at a high temperature Optimal eye at TXREFTUNE value to 1001 is observed, change set the same value. Signed-off-by: Ran Wang ---

[U-Boot] u-boot for loading RTOS instead of Linux

2017-07-09 Thread BOULAMAIL Nihad
Hello, I wishb to run this RTOS: https://github.com/trampolinertos/trampoline, on Zedboard having these files on SD card. SD_ROOT/ boot.bin devicetree.dtb uImage uramdisk.image.gz How can I build u-boot and dtb for this RTOS and make u-boot load the rtos instead of Linux ? Thank you ᐧ

Re: [U-Boot] [PATCH v1] arch/x86: Select USB before selecting host driver

2017-07-09 Thread Bin Meng
+Simon, Hi Andy, On Wed, Jul 5, 2017 at 9:09 PM, Tom Rini wrote: > On Wed, Jul 05, 2017 at 08:19:27PM +0800, Bin Meng wrote: >> +Marek, >> >> Hi Andy, >> >> On Wed, Jul 5, 2017 at 5:36 PM, Andy Shevchenko >> wrote: >> > On Wed, Jul 5, 2017 at

Re: [U-Boot] [ANN] U-Boot v2017.07-rc2 released

2017-07-09 Thread Tom Rini
On Sun, Jul 09, 2017 at 12:38:19PM -0600, Simon Glass wrote: > Hi, > > On 9 July 2017 at 06:49, Tom Rini wrote: > > On Sun, Jul 09, 2017 at 10:45:52AM +0100, Peter Robinson wrote: > >> On Sat, Jul 8, 2017 at 1:21 PM, Tom Rini wrote: > >> > On Sat, Jul 08,

[U-Boot] [PATCH v2 2/4] pinctrl: meson: add GPIO support

2017-07-09 Thread Beniamino Galvani
This commit adds GPIO support to the Amlogic Meson pin controller driver, based on code from Linux kernel. Reviewed-by: Simon Glass Signed-off-by: Beniamino Galvani --- arch/arm/include/asm/arch-meson/gpio.h | 11 ++

[U-Boot] [PATCH v2 4/4] pinctrl: meson: convert to livetree

2017-07-09 Thread Beniamino Galvani
Update the Meson pinctrl/gpio driver to support a live device tree. Signed-off-by: Beniamino Galvani --- drivers/pinctrl/meson/pinctrl-meson.c | 66 +++ 1 file changed, 36 insertions(+), 30 deletions(-) diff --git

[U-Boot] [PATCH v2 3/4] odroid-c2: enable GPIO

2017-07-09 Thread Beniamino Galvani
GPIOs are now supported on Meson GXBB, enable driver and command in the config. Signed-off-by: Beniamino Galvani --- configs/odroid-c2_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/odroid-c2_defconfig b/configs/odroid-c2_defconfig index

[U-Boot] [PATCH v2 0/4] Add support for Meson GXBB GPIOs to U-Boot

2017-07-09 Thread Beniamino Galvani
Hi, this series adds to U-Boot a GPIO driver for Meson GXBB and enables it on Odroid-C2. Changes since v1: - updated dts files from Linux 4.12 - added missing asm/arch/gpio.h - added patch 4 to convert driver to livetree Beniamino Galvani (4): arm: dts: meson: import dts files from Linux

[U-Boot] [PATCH v2 1/4] arm: dts: meson: import dts files from Linux 4.12

2017-07-09 Thread Beniamino Galvani
Import Amlogic Meson DTS files from Linux kernel version 4.12 Signed-off-by: Beniamino Galvani --- arch/arm/dts/meson-gx.dtsi| 97 -- arch/arm/dts/meson-gxbb-odroidc2.dts | 82 ++- arch/arm/dts/meson-gxbb.dtsi | 187

Re: [U-Boot] [ANN] U-Boot v2017.07-rc2 released

2017-07-09 Thread Simon Glass
Hi, On 9 July 2017 at 06:49, Tom Rini wrote: > On Sun, Jul 09, 2017 at 10:45:52AM +0100, Peter Robinson wrote: >> On Sat, Jul 8, 2017 at 1:21 PM, Tom Rini wrote: >> > On Sat, Jul 08, 2017 at 09:27:59AM +0100, Peter Robinson wrote: >> >> On Wed, Jul 5,

Re: [U-Boot] Sinovoip M2+ defconfig

2017-07-09 Thread Chen-Yu Tsai
On Sat, Jul 8, 2017 at 1:35 PM, wrote: > From ad9d562b334dd81ad72656afbb28a723e5d9fc44 Mon Sep 17 00:00:00 2001 > From: Richard Kojedzinszky > Date: Sat, 5 Nov 2016 13:43:13 +0100 > Subject: [PATCH 1/2] Added configs/Sinovoip_BPI_M2_plus_defconfig > > --- >

Re: [U-Boot] [PATCH 00/12] tegra: nyan-big: Support chainloading and add documentation

2017-07-09 Thread Tom Warren
I'm on vacation until Monday, 17 July. I can look at it then. -- nvpublic > -Original Message- > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: Saturday, July 08, 2017 9:09 AM > To: Thomas Hoff > Cc: Stephen Warren

Re: [U-Boot] [ANN] U-Boot v2017.07-rc2 released

2017-07-09 Thread Tom Rini
On Sun, Jul 09, 2017 at 10:45:52AM +0100, Peter Robinson wrote: > On Sat, Jul 8, 2017 at 1:21 PM, Tom Rini wrote: > > On Sat, Jul 08, 2017 at 09:27:59AM +0100, Peter Robinson wrote: > >> On Wed, Jul 5, 2017 at 8:37 AM, Peter Robinson > >> wrote: > >> >>

Re: [U-Boot] [ANN] U-Boot v2017.07-rc2 released

2017-07-09 Thread Peter Robinson
On Sat, Jul 8, 2017 at 1:21 PM, Tom Rini wrote: > On Sat, Jul 08, 2017 at 09:27:59AM +0100, Peter Robinson wrote: >> On Wed, Jul 5, 2017 at 8:37 AM, Peter Robinson wrote: >> >> On 21 June 2017 at 01:07, Peter Robinson wrote: >>