Re: [U-Boot] [PATCH] i.mx6q: mx6qarm2: Enable the usboh3 clock

2011-12-26 Thread Jason Liu
2011/12/26 Dirk Behme dirk.be...@googlemail.com: From: Eric Nelson eric.nel...@boundarydevices.com Bits 0 and 1 of CCM_CCGR7 are the usboh3 clock enable bits. Enabling this clock is necessary for the USB download. Signed-off-by: Eric Nelson eric.nel...@boundarydevices.com CC: Jason Hui

[U-Boot] [PATCH] env: factor out the env_get_char_spec() function

2011-12-26 Thread Igor Grinberg
env_get_char_spec() function is duplicated across multiple environment files. Remove the duplication by providing a default implementation. Add weak declaration, so the default implementation can be overridden. Signed-off-by: Igor Grinberg grinb...@compulab.co.il --- common/env_common.c |7

Re: [U-Boot] [PATCH] [trivial] env: remove value from boolean defines

2011-12-26 Thread Marek Vasut
On 12/26/11 01:34, Marek Vasut wrote: Several boolean defines have a value assigned. Remove the value as defining the symbol is enough. Signed-off-by: Igor Grinberg grinb...@compulab.co.il I'm fine with this. How did you find it ? Occasionally... I told you (at the KS) I'm

Re: [U-Boot] [PATCH] [trivial] env: remove value from boolean defines

2011-12-26 Thread Igor Grinberg
On 12/26/11 16:17, Marek Vasut wrote: On 12/26/11 01:34, Marek Vasut wrote: Several boolean defines have a value assigned. Remove the value as defining the symbol is enough. Signed-off-by: Igor Grinberg grinb...@compulab.co.il I'm fine with this. How did you find it ? Occasionally... I

Re: [U-Boot] [PATCH] [trivial] env: remove value from boolean defines

2011-12-26 Thread Marek Vasut
On 12/26/11 16:17, Marek Vasut wrote: On 12/26/11 01:34, Marek Vasut wrote: Several boolean defines have a value assigned. Remove the value as defining the symbol is enough. Signed-off-by: Igor Grinberg grinb...@compulab.co.il I'm fine with this. How did you find it ?

[U-Boot] [PATCH 0/7] tegra: Add I2C driver and associated parts

2011-12-26 Thread Simon Glass
This series brings in an I2C driver for Tegra which can be configured by a flat device tree. It supports 8- and 16-bit addresses and both the normal I2C ports and the DVC port (for controlling the power management unit (PMU)). Simon Glass (6): tegra: Rename NV_PA_PMC_BASE to TEGRA2_PMC_BASE

[U-Boot] [PATCH 3/7] tegra: Add I2C support to funcmux

2011-12-26 Thread Simon Glass
Add support to funcmux for selecting I2C functions and programming the pinmux appropriately. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/cpu/armv7/tegra2/funcmux.c| 75 +++- arch/arm/include/asm/arch-tegra2/funcmux.h |3 + 2 files changed, 65

[U-Boot] [PATCH 1/7] tegra: Rename NV_PA_PMC_BASE to TEGRA2_PMC_BASE

2011-12-26 Thread Simon Glass
Change this name to fit with the current convention in the Tegra header file. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/cpu/armv7/tegra2/ap20.c | 10 +- arch/arm/cpu/armv7/tegra2/board.c |2 +- arch/arm/include/asm/arch-tegra2/tegra2.h |4 ++--

[U-Boot] [PATCH 4/7] tegra: Add I2C driver

2011-12-26 Thread Simon Glass
From: Yen Lin ye...@nvidia.com Add basic i2c driver for Tegra2 with 8- and 16-bit address support. The driver supports building both with and without CONFIG_OF_CONTROL. Without CONFIG_OF_CONTROL a number of CONFIG options must be supplied in the board config header file: I2CSPEED_KHZ - speed to

[U-Boot] [PATCH 2/7] tegra: fdt: Add extra I2C definitions for U-Boot

2011-12-26 Thread Simon Glass
Add U-Boot's peripheral ID and pinmux selection to the Tegra20 device tree file. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/dts/tegra20.dtsi | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/tegra20.dtsi b/arch/arm/dts/tegra20.dtsi

[U-Boot] [PATCH 6/7] tegra: Select I2C ordering for Seaboard

2011-12-26 Thread Simon Glass
Select the port ordering for I2C on Seaboard. Signed-off-by: Simon Glass s...@chromium.org --- board/nvidia/dts/tegra2-seaboard.dts |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/board/nvidia/dts/tegra2-seaboard.dts b/board/nvidia/dts/tegra2-seaboard.dts index

[U-Boot] [PATCH 5/7] tegra: Initialise I2C on Nvidia boards

2011-12-26 Thread Simon Glass
This enables I2C on all Nvidia boards including Seaboard and Harmony. Signed-off-by: Simon Glass s...@chromium.org --- board/nvidia/common/board.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index

[U-Boot] [PATCH 7/7] tegra: Enable I2C on Seaboard

2011-12-26 Thread Simon Glass
This enables I2C on Seaboard. Signed-off-by: Simon Glass s...@chromium.org --- include/configs/seaboard.h |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/include/configs/seaboard.h b/include/configs/seaboard.h index 1dc775a..6e04278 100644 ---

[U-Boot] [PATCH v3 0/6] Introduce generic relocation feature

2011-12-26 Thread Simon Glass
(I am resending this rebased so I can continue with this board-unification work and allow people to review patches. There were some comments on the v2 series but my questions have been sitting on the list for 2 weeks so it is probably time for a new series.) This is the second patch series aiming

[U-Boot] [PATCH v3 2/6] define CONFIG_SYS_SKIP_RELOC for all archs

2011-12-26 Thread Simon Glass
We are introducing a new generic relocation features and we want this to be the default. So we need to opt all architectures out first. Some may never have relocation, but those that do will eventually move over to this generic relocation framework. This is part of the unified board effort, but

[U-Boot] [PATCH v3 4/6] arm: Add processor function library

2011-12-26 Thread Simon Glass
Add a library to hold ARM assembler code which is generic across all ARM CPUs. At first it just holds some basic relocation code. The plan is to move more start.S code here. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Invalidate I-cache when we jump to relocated code

[U-Boot] [PATCH v3 1/6] Create reloc.h and include it where needed

2011-12-26 Thread Simon Glass
Before adding new relocation functions, move this prototype out of common.h where things are pretty crowded. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/cpu/arm926ejs/davinci/spl.c |1 + arch/arm/cpu/armv7/omap-common/spl.c |1 +

[U-Boot] [PATCH v3 3/6] Add generic relocation feature

2011-12-26 Thread Simon Glass
Add a relocation implementation as the first thing in the generic board library. This library is needed by SPL also. We create a separate header file for link symbols defined by the link scripts. It is helpful to have these all in one place and try to make them common across architectures. Since

[U-Boot] [PATCH v3 5/6] arm: Move over to generic relocation

2011-12-26 Thread Simon Glass
Add a function to process a single ELF relocation and switch ARM over to use generic relocation. Unfortunately a few boards need to be modified to make this work (mostly adding link symbols to the .lds files). Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Use an inline

Re: [U-Boot] [PATCH 2/7] tegra: fdt: Add extra I2C definitions for U-Boot

2011-12-26 Thread Marek Vasut
Add U-Boot's peripheral ID and pinmux selection to the Tegra20 device tree file. Isn't this supposed to go to Linux kernel ? M Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/dts/tegra20.dtsi | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git

Re: [U-Boot] [PATCH 1/7] tegra: Rename NV_PA_PMC_BASE to TEGRA2_PMC_BASE

2011-12-26 Thread Marek Vasut
Change this name to fit with the current convention in the Tegra header file. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/cpu/armv7/tegra2/ap20.c | 10 +- arch/arm/cpu/armv7/tegra2/board.c |2 +- arch/arm/include/asm/arch-tegra2/tegra2.h |

Re: [U-Boot] [PATCH 4/7] tegra: Add I2C driver

2011-12-26 Thread Marek Vasut
From: Yen Lin ye...@nvidia.com Add basic i2c driver for Tegra2 with 8- and 16-bit address support. The driver supports building both with and without CONFIG_OF_CONTROL. Without CONFIG_OF_CONTROL a number of CONFIG options must be supplied in the board config header file: I2CSPEED_KHZ -

[U-Boot] [PATCH 0/14] tegra: warmboot (suspend / resume) support

2011-12-26 Thread Simon Glass
This series adds support for warm boot, allowing the device to suspend and resume. U-Boot sets up some 'warm boot' code in a special area such that the SOC can find it on a resume. This code is responsible for setting up memory and clocked and then allowing the OS to continue where it left off.

[U-Boot] [PATCH 12/14] tegra: Set vdd_core and vdd_cpu to high

2011-12-26 Thread Simon Glass
From: Jimmy Zhang jimmzh...@nvidia.com At cold boot, the default voltage supplied by pmu is not high enough to support emc to run at its highest clock frequency. The code added here is to update the default vdd_core and vdd_cpu to higher values. (Sorry if I have mangled this comment)

[U-Boot] [PATCH 02/14] tegra: Move ap20.h header into arch location

2011-12-26 Thread Simon Glass
We want to include this from board code, so move the header into an easily-accessible location. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/cpu/armv7/tegra2/ap20.c |2 +- arch/arm/cpu/armv7/tegra2/board.c |4 ++-- .../tegra2 =

[U-Boot] [PATCH 10/14] tegra: Setup PMC scratch info from ap20 setup

2011-12-26 Thread Simon Glass
From: Yen Lin ye...@nvidia.com Save SDRAM parameters into the warmboot scratch registers Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/cpu/armv7/tegra2/ap20.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/armv7/tegra2/ap20.c

[U-Boot] [PATCH 14/14] tegra: Enable LP0 on Seaboard

2011-12-26 Thread Simon Glass
This enables LP0 to support suspend / resume on Seaboard. Signed-off-by: Simon Glass s...@chromium.org --- include/configs/seaboard.h |7 +++ include/configs/tegra2-common.h | 17 + 2 files changed, 24 insertions(+), 0 deletions(-) diff --git

[U-Boot] [PATCH 11/14] tegra: Set up warmboot code on Nvidia boards

2011-12-26 Thread Simon Glass
Call the function to put warmboot boot in a suitable place for resume. Signed-off-by: Simon Glass s...@chromium.org --- board/nvidia/common/board.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index

[U-Boot] [PATCH 05/14] tegra: Add tegra_get_chip_type() to detect SKU

2011-12-26 Thread Simon Glass
We want to know which type of chip we are running on - the Tegra family has several SKUs. This can be determined by reading a fuse register, so add this function to ap20. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/cpu/armv7/tegra2/ap20.c | 24

[U-Boot] [PATCH 04/14] tegra: Add flow, gp_padctl, fuse, sdram headers

2011-12-26 Thread Simon Glass
From: Yen Lin ye...@nvidia.com These headers provide access to additional Tegra features. flow - start/stop CPUs sdram - parameters for SDRAM fuse - access to on-chip fuses / security settings gp_padctl - pad control and general purpose registers Signed-off-by: Simon Glass s...@chromium.org ---

[U-Boot] [PATCH 01/14] Add AES crypto library

2011-12-26 Thread Simon Glass
From: Yen Lin ye...@nvidia.com Add support for AES using an implementation form Karl Malbrain. This offers small code size (around 5KB on ARM) and supports 128-bit AES only. Signed-off-by: Simon Glass s...@chromium.org --- include/aes.h | 70 +++ lib/Makefile |1 + lib/aes.c |

[U-Boot] [PATCH 13/14] tegra: Add EMC settings for Seaboard, Harmony

2011-12-26 Thread Simon Glass
From: Jimmy Zhang jimmzh...@nvidia.com Set Seaboard and Harmony to optimal memory settings based on the SOC in use (T20 or T25). Signed-off-by: Simon Glass s...@chromium.org --- board/nvidia/common/Makefile |1 + board/nvidia/common/board.c |4 + board/nvidia/common/emc.c| 295

[U-Boot] [PATCH 08/14] tegra: Set up PMU for Nvidia boards

2011-12-26 Thread Simon Glass
Adjust PMU to permit maximum frequency operation. Signed-off-by: Simon Glass s...@chromium.org --- board/nvidia/common/board.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index 63edfdb..10c0a67

[U-Boot] [PATCH 07/14] tegra: Add PMU to manage power supplies

2011-12-26 Thread Simon Glass
From: Jimmy Zhang jimmzh...@nvidia.com Power supplies must be adjusted in line with clock frequency. This code provides a simple routine to set the voltage to allow operation at maximum frequency. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/cpu/armv7/tegra2/Makefile |1 +

[U-Boot] [PATCH 06/14] tegra: Add EMC support for optimal memory timings

2011-12-26 Thread Simon Glass
From: Jimmy Zhang jimmzh...@nvidia.com Add support for setting up the memory controller parameters. Boards can call tegra_set_emc() with a table containing the required parameters. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/cpu/armv7/tegra2/Makefile|1 +

[U-Boot] [PATCH 03/14] tegra: Add crypto library for warmboot code

2011-12-26 Thread Simon Glass
From: Yen Lin ye...@nvidia.com Provides an interface to aes.c for the warmboot code. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/cpu/armv7/tegra2/crypto.c | 234 arch/arm/cpu/armv7/tegra2/crypto.h | 36 ++ 2 files changed, 270

[U-Boot] [PATCH 09/14] tegra: Add warmboot implementation

2011-12-26 Thread Simon Glass
From: Yen Lin ye...@nvidia.com Add code to set up the warm boot area in the Tegra CPU ready for a resume after suspend. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/cpu/armv7/tegra2/Makefile |6 +- arch/arm/cpu/armv7/tegra2/warmboot.c| 444

[U-Boot] U-boot doesn't work on OMAP4430 ES2.0

2011-12-26 Thread Raúl Porcel
Hi, Following with the issue on http://comments.gmane.org/gmane.comp.boot-loaders.u-boot/111922 Looks like the 23e9f0723e48615332119de4f4ec7a833a282628 commit was supposed to fix this, but it doesn't, the problem is still present. Steve Sakoman's git tree has a different patch:

[U-Boot] [RFC PATCH 0/2] fdt: Deal correctly with alias nodes

2011-12-26 Thread Simon Glass
This series proposes a new way to deal with alias nodes and introduces a function to take care of it. It includes an example of converting USB code over to use this new function. Note: At present it does not deal automatically with disabled nodes, but perhaps it should? Or perhaps this is better

[U-Boot] [RFC PATCH 2/2] tegra: Use fdtdec_find_aliases() to find USB ports

2011-12-26 Thread Simon Glass
Use the new fdtdec_find_aliases() function instead of fdtdec_next_alias() to locate our USB nodes. As this example shows, the impact on drivers should be minimal. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/cpu/armv7/tegra2/usb.c | 17 - 1 files changed, 8

[U-Boot] [RFC PATCH 1/2] fdt: Add fdtdec_find_aliases() to deal with alias nodes

2011-12-26 Thread Simon Glass
Stephen Warren pointed out that we should use nodes whether or not they have an alias in the /aliases section. The aliases section specifies the order so far as it can, but is not essential. Operating without alisses is useful when the enumerated order of nodes does not matter (admittedly rare in

Re: [U-Boot] U-boot doesn't work on OMAP4430 ES2.0

2011-12-26 Thread Marek Vasut
Hi, Following with the issue on http://comments.gmane.org/gmane.comp.boot-loaders.u-boot/111922 Looks like the 23e9f0723e48615332119de4f4ec7a833a282628 commit was supposed to fix this, but it doesn't, the problem is still present. Steve Sakoman's git tree has a different patch:

Re: [U-Boot] U-boot doesn't work on OMAP4430 ES2.0

2011-12-26 Thread Tom Rini
On Mon, Dec 26, 2011 at 4:06 PM, Marek Vasut marek.va...@gmail.com wrote: Hi, Following with the issue on http://comments.gmane.org/gmane.comp.boot-loaders.u-boot/111922 Looks like the 23e9f0723e48615332119de4f4ec7a833a282628 commit was supposed to fix this, but it doesn't, the problem is

Re: [U-Boot] [PATCH 2/7] tegra: fdt: Add extra I2C definitions for U-Boot

2011-12-26 Thread Stephen Warren
Simon Glass wrote at Monday, December 26, 2011 11:12 AM: Add U-Boot's peripheral ID and pinmux selection to the Tegra20 device tree file. diff --git a/arch/arm/dts/tegra20.dtsi b/arch/arm/dts/tegra20.dtsi ... compatible = nvidia,tegra20-i2c; reg = 0x7000C000

Re: [U-Boot] [PATCH 2/7] tegra: fdt: Add extra I2C definitions for U-Boot

2011-12-26 Thread Simon Glass
Hi Stephen, On Mon, Dec 26, 2011 at 8:35 PM, Stephen Warren swar...@nvidia.com wrote: Simon Glass wrote at Monday, December 26, 2011 11:12 AM: Add U-Boot's peripheral ID and pinmux selection to the Tegra20 device tree file. diff --git a/arch/arm/dts/tegra20.dtsi b/arch/arm/dts/tegra20.dtsi

Re: [U-Boot] question regarding generic board.c

2011-12-26 Thread Simon Glass
Hi Andreas, On Thu, Dec 15, 2011 at 2:02 AM, Andreas Bießmann andreas.de...@googlemail.com wrote: Hi all, I encountered a compile warning in avr32 which lead me to the fact that every board.c utilizes these three lines: ---8--- #if defined(CONFIG_CMD_NET)        s = getenv(bootfile);