[U-Boot] [PATCH v2 08/19] env: Distinguish finer between source of env change

2015-04-28 Thread Joe Hershberger
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 command line) and programmatic (i.e. when u-boot source calls any variant

[U-Boot] [PATCH v2 06/19] env: Allow env_attr_walk to pass a priv * to callback

2015-04-28 Thread Joe Hershberger
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 Reviewed-by: Simon Glass --- Changes in v2: None common/cmd_nvedit.c | 10 ++ common/env_attr.c | 5 +++-- common/en

[U-Boot] [PATCH v2 12/19] test: Generalize the unit test framework

2015-04-28 Thread Joe Hershberger
Separate the ability to define tests and assert status of test functions from the dm tests so they can be used more consistenly throughout all tests. Signed-off-by: Joe Hershberger --- Changes in v2: -New for version 2 include/dm/test.h | 35 +- include/test/test.h

[U-Boot] [PATCH v2 07/19] env: Add regex support to env_attrs

2015-04-28 Thread Joe Hershberger
Allow the features that use env_attrs to specify regexs for the name Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v2: -Added description to README README | 8 + common/env_attr.c | 85 ++ inclu

[U-Boot] [PATCH v2 14/19] test: Return values from the asserts compatible with cmds

2015-04-28 Thread Joe Hershberger
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 ignored. Signed-off-by: Joe Hershberger --- Changes in v2: -New for

[U-Boot] [PATCH v2 15/19] test: env: Add test framework for env

2015-04-28 Thread Joe Hershberger
Add a new "test" subcommand to the env 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 --- Changes in v2: -New for version 2 Makefile| 1 + common/cm

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

2015-04-28 Thread Joe Hershberger
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. Signed-off-by: Joe Hershberger --- Changes in v2: -New for version 2 test/dm/tes

[U-Boot] [PATCH v2 11/19] net: Add default flags for common net env vars

2015-04-28 Thread Joe Hershberger
Check that the common network stack's env vars conform to the proper format for IP addresses. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v2: None include/env_flags.h | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/include/env_flags.

[U-Boot] [PATCH v2 16/19] test: env: Add test for verifying env attrs

2015-04-28 Thread Joe Hershberger
Add a test of the env_attr_lookup() function. Signed-off-by: Joe Hershberger --- Changes in v2: -New for version 2 test/env/Makefile | 1 + test/env/attr.c | 62 +++ 2 files changed, 63 insertions(+) create mode 100644 test/env/attr.c di

[U-Boot] [PATCH v2 04/19] env: Fix return values in env_attr_lookup()

2015-04-28 Thread Joe Hershberger
This function returned numbers for error codes. Change them to error codes. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v2: None common/env_attr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/env_attr.c b/common/env_attr.c index 6

[U-Boot] [PATCH v2 05/19] env: Simplify the reverse_strstr() interface

2015-04-28 Thread Joe Hershberger
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 --- Changes in v2: -Fix bisectability issue -Fix corner case in reverse_name_s

[U-Boot] [PATCH v2 19/19] sandbox: Enable env unit tests

2015-04-28 Thread Joe Hershberger
Enable the new env unit tests on sandbox. Signed-off-by: Joe Hershberger --- Changes in v2: -New for version 2 configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 2bf3799..ff05c95 100644 --- a/configs/sandbox

[U-Boot] [PATCH v2 03/19] sandbox: Enable regex support

2015-04-28 Thread Joe Hershberger
Enable regex support on sandbox. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v2: None configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 5de7fbe..340f5eb 100644 --- a/configs/sand

[U-Boot] [PATCH v2 17/19] test: env: Add a test of the new regex behavior for attrs

2015-04-28 Thread Joe Hershberger
The behavior of the env attrs depends on CONFIG_REGEX. Add an additional test if that variable is set. Signed-off-by: Joe Hershberger --- Changes in v2: -New for version 2 test/env/attr.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/test/env/attr.c b/test/en

[U-Boot] [PATCH v2 09/19] net: Apply default format rules to all ethaddr

2015-04-28 Thread Joe Hershberger
Use a regular expression to apply the default formatting flags for all ethaddr env vars. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v2: -Added comments about the use of .flags in the dm eth test include/env_flags.h | 11 --- test/dm/eth.c | 3 +++ 2

[U-Boot] [PATCH v2 10/19] net: Use env callbacks for net variables

2015-04-28 Thread Joe Hershberger
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 source of the new value. Signed-off-by: Joe Hershberger Reviewed-by: S

[U-Boot] [PATCH v2 18/19] sandbox: Cleanup order and extra defines in defconfig

2015-04-28 Thread Joe Hershberger
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 for sandbox here with no actual changes. Signed-off-by: Joe Hershberger

[U-Boot] [PATCH v2 01/19] sandbox: Enable some ENV commands

2015-04-28 Thread Joe Hershberger
Enable some additional ENV commands in sandbox to aid in build testing and run testing. Signed-off-by: Joe Hershberger Reviewed-by: Simon Glass --- Changes in v2: None include/configs/sandbox.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/sandbox.h b/include/config

Re: [U-Boot] switching to single .config configuration issues

2015-04-28 Thread Yehuda Yitschak
Hey Simon, Masahiro May I suggest an alternative solution to this issue. What if each Kconfigs option could be set as "y" (compile for u-boot only )or "s" (compile for u-boot and SPL) Just as the kernel can set Kconfig to "y" or "m". With minor modifications to the Makefile, SPL target will com

Re: [U-Boot] [PATCH v2 14/20] x86: Provide access to the IDT

2015-04-28 Thread Bin Meng
On Wed, Apr 29, 2015 at 10:25 AM, Simon Glass wrote: > Add a function to return the address of the Interrupt Descriptor Table. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > arch/x86/cpu/interrupts.c| 5 + > arch/x86/include/asm/interrupt.h | 2 ++ > 2 files changed

Re: [U-Boot] [PATCH 14/20] x86: Provide access to the IDT

2015-04-28 Thread Bin Meng
Hi Simon, On Wed, Apr 29, 2015 at 10:08 AM, Simon Glass wrote: > Hi Bin, > > On 28 April 2015 at 02:16, Bin Meng wrote: >> Hi Simon, >> >> On Tue, Apr 28, 2015 at 6:48 AM, Simon Glass wrote: >>> Add a function to return the address of the Interrupt Descriptor Table. >>> >>> Signed-off-by: Simon

Re: [U-Boot] [PATCH v2 12/20] x86: Add an mfence macro

2015-04-28 Thread Bin Meng
On Wed, Apr 29, 2015 at 10:25 AM, Simon Glass wrote: > Provide access to this x86 instruction from C code. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Remove unnecessary \t\n after mfence assembler instruction > > arch/x86/include/asm/cpu.h | 5 + > 1 file changed, 5 insertio

Re: [U-Boot] [PATCH v2 08/20] x86: Add support for the Simple Firmware Interface (SFI)

2015-04-28 Thread Bin Meng
Hi Simon, On Wed, Apr 29, 2015 at 10:25 AM, Simon Glass wrote: > This provides a way of passing information to Linux without requiring the > full ACPI horror. Provide a rudimentary implementation sufficient to be > recognised and parsed by Linux. > > Signed-off-by: Simon Glass > --- Looks good,

[U-Boot] [UBOOT PATCH v2] ci_udc: Update the ci_udc driver to support bulk transfers

2015-04-28 Thread Siva Durga Prasad Paladugu
Update the ci_udc driver to support bulk transfer and also added capability of having multiple dtds if requested data is more than 16K. These changes are tested for both the DFU and lthor. Signed-off-by: Siva Durga Prasad Paladugu --- Changes for v2: - Rebase it to u-boot-usb/master --- drivers/

Re: [U-Boot] [PATCH v2 07/20] dm: Implement a CPU uclass

2015-04-28 Thread Bin Meng
Hi Simon, On Wed, Apr 29, 2015 at 10:25 AM, Simon Glass wrote: > It is useful to be able to keep track of the available CPUs in a multi-CPU > system. This uclass is mostly intended for use with SMP systems. > > The uclass provides methods for getting basic information about each CPU. > > Signed-o

Re: [U-Boot] [PATCH v2 06/20] Add print_freq() to display frequencies nicely

2015-04-28 Thread Bin Meng
Hi Simon, On Wed, Apr 29, 2015 at 10:25 AM, Simon Glass wrote: > Add a function similar to print_size() that works for frequencies. It can > handle from Hz to GHz. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Correct bugs in number output > > include/display_options.h | 11 ++

Re: [U-Boot] [PATCH v2 05/20] Move display_options functions to their own header

2015-04-28 Thread Bin Meng
On Wed, Apr 29, 2015 at 10:25 AM, Simon Glass wrote: > Before adding one more function, create a separate header to help reduce > the size of common.h. Add the missing function comments and tidy up. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Use capitals for the header guard > -

[U-Boot] [PATCH] dm: core: Fix regression caused by c1d6f91

2015-04-28 Thread Joe Hershberger
The change to refactor these functions created a regression. commit c1d6f91952d0761f61b0f0f96e4c7aa32eee2788 Author: Przemyslaw Marczak Date: Wed Apr 15 13:07:17 2015 +0200 dm: core: add internal functions for getting the device without probe With this change, the dm unit tests started failing

Re: [U-Boot] [PATCH v2 3/4] x86: quark: Use reset_cpu()

2015-04-28 Thread Bin Meng
On Wed, Apr 29, 2015 at 10:11 AM, Simon Glass wrote: > Now that reset_cpu() functions correctly, use it instead of directly > accessing the port. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v2: None > > arch/x86/cpu/quark/quark.c | 2 +- > 1 file changed, 1 inser

Re: [U-Boot] [PATCH v2 2/4] x86: ivybridge: Use reset_cpu()

2015-04-28 Thread Bin Meng
On Wed, Apr 29, 2015 at 10:11 AM, Simon Glass wrote: > Now that reset_cpu() functions correctly, use it instead of directly > accessing the port. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Correct call to reset_cpu() which was missing a parameter! > - Tidy up reset calls to do th

Re: [U-Boot] [PATCH v2 1/4] x86: Implement reset_cpu() correctly for modern CPUs

2015-04-28 Thread Bin Meng
On Wed, Apr 29, 2015 at 10:11 AM, Simon Glass wrote: > The existing code is pretty ancient and is unreliable on modern hardware. > Generally it will hang. > > We can use port 0xcf9 to initiate reset on more modern hardware (say in the > last 10 years). Update the reset_cpu() function to do this, a

Re: [U-Boot] [PATCH v2 00/20] x86: Add CPU uclass and multi-core support for Minnowboard MAX

2015-04-28 Thread Bin Meng
Hi Simon, On Wed, Apr 29, 2015 at 10:25 AM, Simon Glass wrote: > This series adds a new CPU uclass which is intended to be useful on any > architecture. So far it has a very simple interface and a command to show > CPU details. > > This series also introduces multi-core init for x86. It is implem

Re: [U-Boot] switching to single .config configuration issues

2015-04-28 Thread Simon Glass
+Masahiro (new address) Hi Hanna, On 27 April 2015 at 07:43, Hanna Hawa wrote: > Hi everyone, > > > > I’m working on the latest u-boot 2015.04 trying to rebase my repository to > latest code. I would suggest going with upstream/master (targeting 2015.07) since there are several driver model cha

[U-Boot] [PATCH v2 07/20] dm: Implement a CPU uclass

2015-04-28 Thread Simon Glass
It is useful to be able to keep track of the available CPUs in a multi-CPU system. This uclass is mostly intended for use with SMP systems. The uclass provides methods for getting basic information about each CPU. Signed-off-by: Simon Glass --- Changes in v2: - Change header guard to capital le

[U-Boot] [PATCH v2 14/20] x86: Provide access to the IDT

2015-04-28 Thread Simon Glass
Add a function to return the address of the Interrupt Descriptor Table. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/interrupts.c| 5 + arch/x86/include/asm/interrupt.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/arch/x86/cpu/interrupts.c b/arch/x86/cp

[U-Boot] [PATCH v2 16/20] x86: Add functions to set and clear bits on MSRs

2015-04-28 Thread Simon Glass
Since we do these sorts of operations a lot, it is useful to have a simpler API, similar to clrsetbits_le32(). Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/include/asm/msr.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/x86/include/asm/msr.h b/arc

[U-Boot] [PATCH v2 18/20] x86: Add a CPU driver for baytrail

2015-04-28 Thread Simon Glass
This driver supports multi-core init and sets up the CPU frequencies correctly. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/baytrail/Makefile | 1 + arch/x86/cpu/baytrail/cpu.c | 206 +++ arch/x86/include/asm/arch-baytrai

[U-Boot] [PATCH v2 19/20] x86: Tidy up the LAPIC init code

2015-04-28 Thread Simon Glass
We don't need to support really old x86 CPUs, so drop this code. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/lapic.c | 20 arch/x86/include/asm/lapic.h | 7 --- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/arch/x86/cpu/l

[U-Boot] [PATCH v2 12/20] x86: Add an mfence macro

2015-04-28 Thread Simon Glass
Provide access to this x86 instruction from C code. Signed-off-by: Simon Glass --- Changes in v2: - Remove unnecessary \t\n after mfence assembler instruction arch/x86/include/asm/cpu.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/x86/include/asm/cpu.h b/arch/x86/include/asm/c

[U-Boot] [PATCH v2 09/20] Add a 'cpu' command to print CPU information

2015-04-28 Thread Simon Glass
Add a simple command which provides access to a list of available CPUs along with descriptions and basic information. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None common/Kconfig | 8 common/Makefile | 1 + common/cmd_cpu.c | 113

[U-Boot] [PATCH v2 11/20] x86: Add defines for fixed MTRRs

2015-04-28 Thread Simon Glass
Add MSR numbers for the fixed MTRRs. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/x86/include/asm/mtrr.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/x86/include/asm/mtrr.h b/arch/x86/include/asm/mtrr.h index fda4eae..3841593 100644

[U-Boot] [PATCH v2 10/20] x86: Add atomic operations

2015-04-28 Thread Simon Glass
Add a subset of this header file from Linux 4.0 to support atomic operations in U-Boot. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/x86/include/asm/atomic.h | 115 ++ 1 file changed, 115 insertions(+) create mode 10064

[U-Boot] [PATCH v2 17/20] x86: Allow CPUs to be set up after relocation

2015-04-28 Thread Simon Glass
This permits init of additional CPU cores after relocation and when driver model is ready. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/cpu/cpu.c| 37 + arch/x86/include/asm/cpu.h| 14 ++ arch/x86/include/as

[U-Boot] [PATCH v2 15/20] x86: Add multi-processor init

2015-04-28 Thread Simon Glass
Most modern x86 CPUs include more than one CPU core. The OS normally requires that these 'Application Processors' (APs) be brought up by the boot loader. Add the required support to U-Boot to init additional APs. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/Kconfig

[U-Boot] [PATCH v2 13/20] x86: Store the GDT pointer in global_data

2015-04-28 Thread Simon Glass
When we start up additional CPUs we want them to use the same Global Descriptor Table. Store the address of this in global_data so we can reference it later. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/x86/cpu/cpu.c | 1 + arch/x86/include/asm

[U-Boot] [PATCH v2 02/20] dm: core: Add a function to bind a driver for a device tree node

2015-04-28 Thread Simon Glass
Some device tree nodes do not have compatible strings but do require drivers. This is pretty rare, and somewhat unfortunate. Add a function to permit creation of a driver for any device tree node. Signed-off-by: Simon Glass --- Changes in v2: None drivers/core/lists.c | 9 - include/d

[U-Boot] [PATCH v2 03/20] x86: Remove unwanted MMC debugging

2015-04-28 Thread Simon Glass
This printf() should not have made it into the code. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/x86/cpu/baytrail/valleyview.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/cpu/baytrail/valleyview.c b/arch/x86/cpu/baytrail/valleyview.c index a3

[U-Boot] [PATCH v2 01/20] Fix comment nits in board_f.c

2015-04-28 Thread Simon Glass
Try to make it a little clearer. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None common/board_f.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/common/board_f.c b/common/board_f.c index 322e070..fbbad1b 100644 --- a/common/board_f.c +++

[U-Boot] [PATCH v2 20/20] x86: Enable multi-core init for Minnowboard MAX

2015-04-28 Thread Simon Glass
Enable the CPU uclass and Simple Firmware interface for Minnowbaord MAX. This enables multi-core support in Linux. Signed-off-by: Simon Glass --- Changes in v2: None arch/x86/dts/minnowmax.dts | 20 configs/minnowmax_defconfig | 4 2 files changed, 24 insertions(+)

[U-Boot] [PATCH v2 08/20] x86: Add support for the Simple Firmware Interface (SFI)

2015-04-28 Thread Simon Glass
This provides a way of passing information to Linux without requiring the full ACPI horror. Provide a rudimentary implementation sufficient to be recognised and parsed by Linux. Signed-off-by: Simon Glass --- Changes in v2: - Rename CONFIG_SFI to CONFIG_GENERATE_SFI_TABLE and move within Kconfig

[U-Boot] [PATCH v2 05/20] Move display_options functions to their own header

2015-04-28 Thread Simon Glass
Before adding one more function, create a separate header to help reduce the size of common.h. Add the missing function comments and tidy up. Signed-off-by: Simon Glass --- Changes in v2: - Use capitals for the header guard - Change 'print' to 'Print' in comment include/common.h | 16

[U-Boot] [PATCH v2 06/20] Add print_freq() to display frequencies nicely

2015-04-28 Thread Simon Glass
Add a function similar to print_size() that works for frequencies. It can handle from Hz to GHz. Signed-off-by: Simon Glass --- Changes in v2: - Correct bugs in number output include/display_options.h | 11 +++ lib/display_options.c | 38 ++ 2 fi

[U-Boot] [PATCH v2 04/20] x86: Disable -Werror

2015-04-28 Thread Simon Glass
This is annoying during development and serves no useful purpose since warnings are clearly displayed now that we are using Kbuild. Remove this option. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/x86/cpu/config.mk | 2 +- 1 file changed, 1 insertion(+), 1 del

[U-Boot] [PATCH v2 00/20] x86: Add CPU uclass and multi-core support for Minnowboard MAX

2015-04-28 Thread Simon Glass
This series adds a new CPU uclass which is intended to be useful on any architecture. So far it has a very simple interface and a command to show CPU details. This series also introduces multi-core init for x86. It is implemented and enabled on Minnowboard MAX, a single/dual-core Atom board. The C

[U-Boot] [PATCH v2 2/4] x86: ivybridge: Use reset_cpu()

2015-04-28 Thread Simon Glass
Now that reset_cpu() functions correctly, use it instead of directly accessing the port. Signed-off-by: Simon Glass --- Changes in v2: - Correct call to reset_cpu() which was missing a parameter! - Tidy up reset calls to do the correct reset type arch/x86/cpu/ivybridge/cpu.c | 5 ++--- a

[U-Boot] [PATCH v2 4/4] x86: fsp: Use reset_cpu()

2015-04-28 Thread Simon Glass
Now that reset_cpu() functions correctly, use it instead of directly accessing the port on boards that use a Firmware Support Package (FSP). Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/x86/lib/fsp/fsp_common.c | 7 --- 1 file changed, 7 deletions(-) diff

[U-Boot] [PATCH v2 3/4] x86: quark: Use reset_cpu()

2015-04-28 Thread Simon Glass
Now that reset_cpu() functions correctly, use it instead of directly accessing the port. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/x86/cpu/quark/quark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/cpu/quark/quark.c b/arch/x8

[U-Boot] [PATCH v2 1/4] x86: Implement reset_cpu() correctly for modern CPUs

2015-04-28 Thread Simon Glass
The existing code is pretty ancient and is unreliable on modern hardware. Generally it will hang. We can use port 0xcf9 to initiate reset on more modern hardware (say in the last 10 years). Update the reset_cpu() function to do this, and add a new 'full reset' function to perform a full power cycl

Re: [U-Boot] [PATCH 14/20] x86: Provide access to the IDT

2015-04-28 Thread Simon Glass
Hi Bin, On 28 April 2015 at 02:16, Bin Meng wrote: > Hi Simon, > > On Tue, Apr 28, 2015 at 6:48 AM, Simon Glass wrote: >> Add a function to return the address of the Interrupt Descriptor Table. >> >> Signed-off-by: Simon Glass >> --- >> >> arch/x86/cpu/interrupts.c| 5 + >> arch/x8

Re: [U-Boot] [PATCH 2/4] x86: ivybridge: Use reset_cpu()

2015-04-28 Thread Simon Glass
Hi Bin, On 26 April 2015 at 22:58, Bin Meng wrote: > Hi Simon, > > On Sat, Apr 25, 2015 at 11:04 PM, Simon Glass wrote: >> Now that reset_cpu() functions correctly, use it instead of directly >> accessing the port. >> >> Signed-off-by: Simon Glass >> --- >> >> arch/x86/cpu/ivybridge/cpu.c

Re: [U-Boot] [PATCH 1/4] x86: Implement reset_cpu() correctly for modern CPUs

2015-04-28 Thread Simon Glass
Hi Bin, On 26 April 2015 at 22:56, Bin Meng wrote: > Hi Simon, > > On Sat, Apr 25, 2015 at 11:04 PM, Simon Glass wrote: >> The existing code is pretty ancient and is unreliable on modern hardware. >> Generally it will hang. >> >> We can use port 0xcf9 to initiate reset on more modern hardware (s

Re: [U-Boot] [PATCH] pepper: Add support for DDR3 variants

2015-04-28 Thread Ash Charles
Hi Tom, There is actually an EEPROM on new boards that we'd like to use in the future in order to detect that we should use DDR3 (and frankly, everything will be DDR3 going forward). We still don't have everything sorted in hardware and at the factories for programming the eeprom though. This pa

[U-Boot] [PULL] u-boot-socfpga/master

2015-04-28 Thread Marek Vasut
The following changes since commit 1733259d25015c28c47990ec11af99b3f62f811c: Merge branch 'master' of git://git.denx.de/u-boot-video (2015-04-20 09:13:52 -0400) are available in the git repository at: git://git.denx.de/u-boot-socfpga.git HEAD for you to fetch changes up to e5c57eea4f4ac8c2

Re: [U-Boot] [PATCH] pepper: Add support for DDR3 variants

2015-04-28 Thread Tom Rini
On Tue, Apr 28, 2015 at 04:25:44PM -0700, Ash Charles wrote: > Some variants of the Gumstix Pepper board use DDR3 memory instead of > DDR2. This adds a machine variant to support these DDR3-based boards > which can be built as 'pepper_ddr3_defconfig' rather than the normal > 'pepper_defconfig'. >

Re: [U-Boot] [PATCH] x86: Correct Minnowboard instructions to use the right descriptor

2015-04-28 Thread Tom Rini
On Mon, Apr 27, 2015 at 02:52:49PM -0600, Simon Glass wrote: > Hi Tom, > > On 25 April 2015 at 11:54, Tom Rini wrote: > > On Sat, Apr 25, 2015 at 11:46:43AM -0600, Simon Glass wrote: > >> The descriptor provided with the FSP does not seem to work. Update the > >> instructions to use the descripto

[U-Boot] [PATCH 2/2] u-boot breaks for the Overo boards since the following commit: a6b541b09022acb6f7c2754100ae26bd44eed1d9

2015-04-28 Thread Arun Bharadwaj
This is because the gd pointer is not set early enough anymore, such that the i2c_set_bus_num in get_board_revision can safely execute. This results in a console hang at SPL and the boot does not proceed. This piece of code is anyway necessary only for really old Overo boards with revision numbers

[U-Boot] [PATCH 1/2] This separates the SPL-specific code from the u-boot-specific code for the Overo board following the discussion at http://lists.denx.de/pipermail/u-boot/2015-April/211622.html

2015-04-28 Thread Arun Bharadwaj
The code is split up into spl.c, overo.c and common.c (which has the code common to both) Signed-off-by: Arun Bharadwaj --- board/overo/Makefile | 6 +- board/overo/common.c | 355 +++ board/overo/overo.c | 117 + board/overo/ove

[U-Boot] [v2 PATCH 0/2] omap3-overo: Code cleanup and reduce the size of MLO binary.

2015-04-28 Thread Arun Bharadwaj
This is the v2 of the two-patch series. v1 can be found here: http://lists.denx.de/pipermail/u-boot/2015-April/211651.html The only change in this version is that the earlier version missed printing the board revision, so fixed that. Arun Bharadwaj (2): This separates the SPL-specific code from

Re: [U-Boot] [PATCH] fdt: Fix handling of paths with options in them

2015-04-28 Thread Simon Glass
On 24 April 2015 at 07:34, Hans de Goede wrote: > Hi, > > > On 24-04-15 14:42, Simon Glass wrote: >> >> Hi Hans, >> >> On 23 April 2015 at 10:15, Simon Glass wrote: >>> >>> Hi Hans, >>> >>> On 23 April 2015 at 00:55, Hans de Goede wrote: Hi, On 22-04-15 19:20, Simon Glas

Re: [U-Boot] [PATCH] x86: link: Add PCH driver to support SPI Flash

2015-04-28 Thread Simon Glass
On 20 April 2015 at 07:07, Simon Glass wrote: > U-Boot on coreboot does not have a driver for the PCH so cannot see the > SPI peripheral now that it has moved inside the PCH. Add a simple driver so > that SPI flash works again. > > Signed-off-by: Simon Glass > --- > > arch/x86/cpu/coreboot/pci.c

[U-Boot] [PATCH] pepper: Add support for DDR3 variants

2015-04-28 Thread Ash Charles
Some variants of the Gumstix Pepper board use DDR3 memory instead of DDR2. This adds a machine variant to support these DDR3-based boards which can be built as 'pepper_ddr3_defconfig' rather than the normal 'pepper_defconfig'. Signed-off-by: Ash Charles --- board/gumstix/pepper/MAINTAINERS | 1

Re: [U-Boot] [PATCH 2/2] x86: Update chromebook_link instructions for binary blob

2015-04-28 Thread Simon Glass
On 19 April 2015 at 22:05, Simon Glass wrote: > The MRC image is incorrect, or at least this one now does not seem to > work. Fix it. > > Signed-off-by: Simon Glass > --- > > doc/README.x86 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied to u-boot-x86. __

Re: [U-Boot] [PATCH] davinci: restore CONFIG_SPL=y to configs/omapl138_lcdk_defconfig

2015-04-28 Thread Tom Rini
On Wed, Apr 29, 2015 at 09:05:57AM +1000, Peter Howard wrote: > Signed-off-by: Peter Howard > --- > configs/omapl138_lcdk_defconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig > index 8f19721..4445c38 100644 > --- a/

[U-Boot] [PATCH 5/6] omap3: overo: Allow boot with kernel in UBI rootfs

2015-04-28 Thread Ash Charles
If regular NAND booting fails to find a valid uImage in the kernel partition in NAND, try to boot using a zImage and dtb found in a UBI volume in the rootfs partition. This is the NAND analog of mmc zImage booting for device-tree based kernels. Signed-off-by: Ash Charles Signed-off-by: Arun Bhar

[U-Boot] [PATCH 4/6] omap3: overo: Use software BCH8 ECC for NAND

2015-04-28 Thread Ash Charles
Overo COMs have NAND flash that requires 4-bit ECC or better except for the first sector which can use 1-bit ECC. The boot ROM expects to load a payload from NAND written using 1-bit hardware-based ECC. In short, write SPL to NAND something like this (4 times for redundancy): #> nandecc hw #> n

[U-Boot] [PATCH 3/6] overo: Add support for Palo35 expansion board

2015-04-28 Thread Ash Charles
Signed-off-by: Ash Charles --- board/overo/overo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/overo/overo.c b/board/overo/overo.c index 3f14b03..d5ac1ad 100644 --- a/board/overo/overo.c +++ b/board/overo/overo.c @@ -193,6 +193,7 @@ int misc_init_r(void) expa

[U-Boot] [PATCH 6/6] overo: Override RAM setup for rev. 0 boards

2015-04-28 Thread Ash Charles
From: Arun Bharadwaj Overo boards with board revision 0 use a 256MB RAM + 256MB NAND chip. For an unknown reason, these boards fail to boot a 3.17.8 kernel based on the RAM size configuration in u-boot. As a workaround, fake out the RAM setting in u-boot (discussion [1]). [1] http://gumstix.8.x

[U-Boot] [PATCH 1/6] omap3: overo: Set the Arbor43C 'expansionname'

2015-04-28 Thread Ash Charles
The Gumstix Arbor43C expansion board [1] uses a customized device tree file. When this expansion board is detected, load this file. [1] https://store.gumstix.com/index.php/products/635/ Signed-off-by: Ash Charles --- board/overo/overo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board

[U-Boot] [PATCH 0/6] omap3: overo: collected fixes

2015-04-28 Thread Ash Charles
This series collects several board-enablement fixes for the Gumstix Overo as well as switching to BCH8 for NAND ECC, updating the UBI boot sequence for DTB-based boots, and correcting a RAM configuration for Overo COMs of Revision 0. This series follows after the series previously submitted: http:

[U-Boot] [PATCH 2/6] omap3: overo: Add DTS support for TobiDuo expansion

2015-04-28 Thread Ash Charles
From: Arun Bharadwaj Signed-off-by: Arun Bharadwaj Signed-off-by: Ash Charles --- board/overo/overo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/overo/overo.c b/board/overo/overo.c index 2845e7c..3f14b03 100644 --- a/board/overo/overo.c +++ b/board/overo/overo.c @@ -185,6 +185,7

[U-Boot] [PATCH] davinci: restore CONFIG_SPL=y to configs/omapl138_lcdk_defconfig

2015-04-28 Thread Peter Howard
Signed-off-by: Peter Howard --- configs/omapl138_lcdk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index 8f19721..4445c38 100644 --- a/configs/omapl138_lcdk_defconfig +++ b/configs/omapl138_lcdk_defconfig @@ -1,3 +

Re: [U-Boot] HUSH logical AND/OR expressions

2015-04-28 Thread Wolfgang Denk
Dear Joe, In message you wrote: > > > I noticed you asked for a reference to the original hush code that is the > > origin for U-Boot's adaptation. I couldn't find a reply to that question. I > > also haven't been able to find anything with a quick we search. Do you know > > where it did come f

[U-Boot] Please pull u-boot-dm

2015-04-28 Thread Simon Glass
Hi Tom, A few bug fixes. The following changes since commit cc555bd4f40a652471df4a3621d45ee57df0ca11: Merge branch 'master' of git://git.denx.de/u-boot-spi (2015-04-28 07:28:43 -0400) are available in the git repository at: http://git.denx.de/u-boot-dm.git for you to fetch changes up to

Re: [U-Boot] fastboot boot base address behaviour

2015-04-28 Thread Rob Herring
On Wed, Apr 22, 2015 at 8:04 AM, Maxime Ripard wrote: > Hi, > > I've been trying to use fastboot (and especially the boot command) on > sunxi recently, and got it to work pretty fine (apart from PSCI, but > that's another story). > > The only thing that worries me a bit is that by default, both th

[U-Boot] [PATCH] driver/ddr/fsl: Remove deskew_cntrl register

2015-04-28 Thread York Sun
This register is reserved and shouldn't have been exposed. Accessing it may have unexpected result on different SoCs. Signed-off-by: York Sun --- include/fsl_immap.h |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/fsl_immap.h b/include/fsl_immap.h index d63cc19.

Re: [U-Boot] HUSH logical AND/OR expressions

2015-04-28 Thread Joe Hershberger
Hi James, On Tue, Apr 28, 2015 at 2:13 PM, James Chargin wrote: > Dear Joe, > > On 04/28/2015 11:35 AM, Joe Hershberger wrote: >> >> Hi James, >> >> On Tue, Apr 28, 2015 at 1:19 PM, James Chargin >> wrote: >>> >>> Dear Joe Hershberger, >>> >>> On 04/28/2015 11:00 AM, Joe Hershberger wrote:

Re: [U-Boot] HUSH logical AND/OR expressions

2015-04-28 Thread James Chargin
Dear Joe, On 04/28/2015 11:35 AM, Joe Hershberger wrote: Hi James, On Tue, Apr 28, 2015 at 1:19 PM, James Chargin wrote: Dear Joe Hershberger, On 04/28/2015 11:00 AM, Joe Hershberger wrote: Hi Joakim, On Mon, Apr 27, 2015 at 8:39 AM, Joakim Tjernlund wrote: Trying to get a better handl

Re: [U-Boot] [PATCH 2/4] mx6cuboxi: Add USB host support

2015-04-28 Thread Fabio Estevam
On Tue, Apr 28, 2015 at 1:52 PM, Tom Rini wrote: >> Is CONFIG_SYS_USB_EVENT_POLL defined in the config? I found that without >> that usb input was not reliable. Even with it enabled some wireless >> keyboards behaved poorly. > > Just checked and yes it's set. I think I also had these not worki

Re: [U-Boot] HUSH logical AND/OR expressions

2015-04-28 Thread Joe Hershberger
Hi James, On Tue, Apr 28, 2015 at 1:19 PM, James Chargin wrote: > Dear Joe Hershberger, > > On 04/28/2015 11:00 AM, Joe Hershberger wrote: >> >> Hi Joakim, >> >> On Mon, Apr 27, 2015 at 8:39 AM, Joakim Tjernlund >> wrote: >>> >>> Trying to get a better handle of HUSH shell expressions, this does

Re: [U-Boot] HUSH logical AND/OR expressions

2015-04-28 Thread James Chargin
Dear Joe Hershberger, On 04/28/2015 11:00 AM, Joe Hershberger wrote: Hi Joakim, On Mon, Apr 27, 2015 at 8:39 AM, Joakim Tjernlund wrote: Trying to get a better handle of HUSH shell expressions, this does not work as I expect: => false && true || echo ECHO => false && false || echo ECHO none

Re: [U-Boot] HUSH logical AND/OR expressions

2015-04-28 Thread Joe Hershberger
Hi Joakim, On Mon, Apr 27, 2015 at 8:39 AM, Joakim Tjernlund wrote: > Trying to get a better handle of HUSH shell expressions, this does not work > as I expect: > => false && true || echo ECHO > => false && false || echo ECHO > > none prints ECHO, seems like a bug? I think it works as it should

[U-Boot] [PATCH] powerpc/mpc85xx: Fix compiling error for common/cmd_gpio.c

2015-04-28 Thread Oleksandr G Zhadan
To replicate: 1. add to include/configs/p1_p2_rdb_pc.h "#define CONFIG_CMD_GPIO" 2. run `make P1020RDB-PC_defconfig` 3. run CROSS_COMPILE=powerpc-linux- make and you will get: common/built-in.o: In function `do_gpio': u-boot/common/cmd_gpio.c:186: undefined reference to `gpio_request' u-boot/commo

Re: [U-Boot] [PATCH 0/4]: imx: mx6: use OTP for temperature grade and freq grade

2015-04-28 Thread Tim Harvey
On Tue, Apr 28, 2015 at 10:11 AM, Stefan Roese wrote: > Hi Tim, > > On 28.04.2015 17:44, Tim Harvey wrote: >> >> The MX6 has OTP bits specifying the processor speed grade as well as >> temperature grade. >> >> This series adds functions to return this information as well as adds the >> details to

Re: [U-Boot] [PATCH 0/4]: imx: mx6: use OTP for temperature grade and freq grade

2015-04-28 Thread Stefan Roese
Hi Tim, On 28.04.2015 17:44, Tim Harvey wrote: The MX6 has OTP bits specifying the processor speed grade as well as temperature grade. This series adds functions to return this information as well as adds the details to the CPU info displayed. Additionally we use the temperature grade to repla

Re: [U-Boot] [PATCH 2/4] mx6cuboxi: Add USB host support

2015-04-28 Thread Otavio Salvador
On Tue, Apr 28, 2015 at 1:52 PM, Tom Rini wrote: > On Tue, Apr 28, 2015 at 06:45:43PM +0200, Jon Nettleton wrote: >> On Tue, Apr 28, 2015 at 6:39 PM, Tom Rini wrote: >> >> > On Tue, Apr 28, 2015 at 12:20:46PM -0300, Fabio Estevam wrote: >> > > On Tue, Apr 28, 2015 at 12:11 PM, Fabio Estevam >> >

Re: [U-Boot] [PATCH 2/4] mx6cuboxi: Add USB host support

2015-04-28 Thread Tom Rini
On Tue, Apr 28, 2015 at 06:45:43PM +0200, Jon Nettleton wrote: > On Tue, Apr 28, 2015 at 6:39 PM, Tom Rini wrote: > > > On Tue, Apr 28, 2015 at 12:20:46PM -0300, Fabio Estevam wrote: > > > On Tue, Apr 28, 2015 at 12:11 PM, Fabio Estevam > > wrote: > > > > Hi Tom, > > > > > > > > On Tue, Apr 28,

Re: [U-Boot] [PATCH 2/4] mx6cuboxi: Add USB host support

2015-04-28 Thread Otavio Salvador
On Tue, Apr 28, 2015 at 1:45 PM, Jon Nettleton wrote: ... > Is CONFIG_SYS_USB_EVENT_POLL defined in the config? I found that without > that usb input was not reliable. Even with it enabled some wireless > keyboards behaved poorly. For the keyboard it may indeed help but what about the USB pendr

Re: [U-Boot] [PATCH 2/4] mx6cuboxi: Add USB host support

2015-04-28 Thread Jon Nettleton
On Tue, Apr 28, 2015 at 6:39 PM, Tom Rini wrote: > On Tue, Apr 28, 2015 at 12:20:46PM -0300, Fabio Estevam wrote: > > On Tue, Apr 28, 2015 at 12:11 PM, Fabio Estevam > wrote: > > > Hi Tom, > > > > > > On Tue, Apr 28, 2015 at 11:48 AM, Tom Rini wrote: > > > > > >> Since we have FEC do we really

Re: [U-Boot] [PATCH 2/4] mx6cuboxi: Add USB host support

2015-04-28 Thread Tom Rini
On Tue, Apr 28, 2015 at 12:39:41PM -0400, Tom Rini wrote: > On Tue, Apr 28, 2015 at 12:20:46PM -0300, Fabio Estevam wrote: > > On Tue, Apr 28, 2015 at 12:11 PM, Fabio Estevam wrote: > > > Hi Tom, > > > > > > On Tue, Apr 28, 2015 at 11:48 AM, Tom Rini wrote: > > > > > >> Since we have FEC do we re

Re: [U-Boot] [RFC PATCH v2] arm: mx6: Clamp MMDC and DDR3 clocks for timing calculations

2015-04-28 Thread Stefano Babic
On 22/04/2015 17:37, Nikolay Dimitrov wrote: > This is proposal for clamping the MMDC/DDR3 clocks to the maximum supported > frequencies as per imx6 SOC models, and for dynamically calculating valid > clock value based on mem_speed. > > Currently the code uses impossible values for mem_speed (1333

  1   2   >