[U-Boot] [PATCH V2 2/3] tt01: add video support

2012-02-16 Thread Helmut Raiger
The video setup for the Epson display is provided. Addtionally some extra info is displayed next to the Linux logo. Make get_cpu_rev() publicly available (added to sys_proto.h). Signed-off-by: Helmut Raiger helmut.rai...@hale.at --- V2: added prototype for get_cpu_rev().

[U-Boot] [PATCH] mx31: add ARM11P power gating to get_reset_cause

2012-02-16 Thread Helmut Raiger
Add missing reset reason 7 to get_reset_cause(). Signed-off-by: Helmut Raiger helmut.rai...@hale.at --- arch/arm/cpu/arm1136/mx31/generic.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/arm1136/mx31/generic.c b/arch/arm/cpu/arm1136/mx31/generic.c index

Re: [U-Boot] [PATCH v4 1/8] sandbox: fdt: Add support for CONFIG_OF_CONTROL

2012-02-16 Thread Marek Vasut
This adds support for a controlling fdt, mirroring the ARM implementation. This is offtopic, but CONFIG OF CONTROL sounds interesting ;-) btw. aren't you missing this part from ARM implementation? /* Allow the early environment to override the fdt address */ gd-fdt_blob = (void

[U-Boot] [PATCH] command, log: print with log show a full logbuffer

2012-02-16 Thread Heiko Schocher
If the logbuffer contains LOGBUFF_LEN chars, they never got printed with the log show command, because chars get printed with the following for loop: for (i = 0; i (size LOGBUFF_MASK); i++) { with size = LOGBUFF_LEN and LOGBUFF_MASK = (LOGBUFF_LEN-1) for loop never executed ... Fix this.

[U-Boot] [PATCH] SPEAr: Add ARM relocation support

2012-02-16 Thread Amit Virdi
Signed-off-by: Amit Virdi amit.vi...@st.com --- board/spear/common/spr_misc.c | 20 +--- 1 files changed, 1 insertions(+), 19 deletions(-) diff --git a/board/spear/common/spr_misc.c b/board/spear/common/spr_misc.c index 0812c20..3ab278f 100644 ---

[U-Boot] [PATCH 2/4] USB:gadget:designware Device controller bugfixes

2012-02-16 Thread Amit Virdi
From: Vipin KUMAR vipin.ku...@st.com This patch fixes a few bugs in USB device controller driver. The fixes are as follows 1. Adding error condition checks eg. NULL return 2. Endpoint other than endpoint 0 (control endpoint) are initialized only if usb state machine reaches STATE_ADDRESSED or

[U-Boot] [PATCH 3/4] USB:gadget:designware Support high speed

2012-02-16 Thread Amit Virdi
From: Vipin KUMAR vipin.ku...@st.com This patch adds the support for usb device high speed for designware peripheral. Signed-off-by: Vipin Kumar vipin.ku...@st.com Signed-off-by: Amit Virdi amit.vi...@st.com --- drivers/usb/gadget/designware_udc.c | 13 +

[U-Boot] [PATCH 1/4] USB:gadget:designware USB device controller (UDC) implementation

2012-02-16 Thread Amit Virdi
From: Vipin KUMAR vipin.ku...@st.com The earlier usb device controller driver was specific to spear platforms. This patch implements the usb device controller driver as a generic controller which can be reused by other platforms using this peripheral. Signed-off-by: Vipin Kumar

[U-Boot] [PATCH 4/4] USB:gadget:designware Fix memory nonalignment issue

2012-02-16 Thread Amit Virdi
From: Shiraz Hashim shiraz.has...@st.com While receiving packets from FIFO sometimes the buffer provided was nonaligned. Fix this by taking a temporary aligned buffer and then copying the content to nonaligned buffer. Signed-off-by: Shiraz Hashim shiraz.has...@st.com Signed-off-by: Amit Virdi

[U-Boot] [PATCH 0/4] USB: Add support for designware UDC

2012-02-16 Thread Amit Virdi
Support for designware USB device controller (UDC) exists in the u-boot for SPEAr platform. This patchset makes the driver more generic so that it can be used across multiple platforms. Shiraz Hashim (1): USB:gadget:designware Fix memory nonalignment issue Vipin KUMAR (3):

[U-Boot] [PATCH] armv7: omap3: leave outer cache enabled

2012-02-16 Thread Aneesh V
Mainline kernel for OMAP3 doesn't enable L2 cache It expects L2$ to be enabled by ROM-code/bootloader. Leaving L2$ enabled can be troublesome in cases where the L2 cache is not under CP15 control, such as in Cortex-A9. This problem is explained in detail in the commit

[U-Boot] [PATCH v3 0/28] Create generic board init for ARM, x86, PPC

2012-02-16 Thread Simon Glass
This series creates a generic board.c implementation which contains the essential functions of the major arch/xxx/lib/board.c files. What is the motivation for this change? 1. There is a lot of repeated code in the board.c files. Any change to things like setting up the baud rate requires a

[U-Boot] [PATCH v3 04/28] x86: Remove compiler warning in sc520_timer.c

2012-02-16 Thread Simon Glass
Removes 'set but not used' warning. Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/cpu/sc520/sc520_timer.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/cpu/sc520/sc520_timer.c b/arch/x86/cpu/sc520/sc520_timer.c index 495a694..7f812dc 100644 ---

[U-Boot] [PATCH v3 10/28] Introduce generic link symbol file

2012-02-16 Thread Simon Glass
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 Linux already has a similar file, we bring this in even though many of the symbols there are not relevant to us.

[U-Boot] [PATCH v3 02/28] x86: Change board baud_rate to ulong

2012-02-16 Thread Simon Glass
This is a ulong for some architectures and just unsigned for others. Change x86 to be consistent. Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/include/asm/u-boot.h |2 +- common/cmd_bdinfo.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v3 01/28] arm: Change board baud_rate to ulong

2012-02-16 Thread Simon Glass
This is a ulong for some architectures and just unsigned for others. Change ARM to be consistent. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/include/asm/u-boot.h |2 +- common/cmd_bdinfo.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v3 05/28] x86: Remove dead code in eNET

2012-02-16 Thread Simon Glass
This avoids a compiler warning about unused variables. Signed-off-by: Simon Glass s...@chromium.org --- board/eNET/eNET.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/board/eNET/eNET.c b/board/eNET/eNET.c index 429fe1b..2f26470 100644 --- a/board/eNET/eNET.c +++

[U-Boot] [PATCH v3 25/28] Adjust board_r.c for PowerPC

2012-02-16 Thread Simon Glass
This adds ppc features to the generic post-relocation board init. Signed-off-by: Simon Glass s...@chromium.org --- common/board_r.c | 463 +- 1 files changed, 460 insertions(+), 3 deletions(-) diff --git a/common/board_r.c b/common/board_r.c

[U-Boot] [PATCH v3 03/28] arm: Only display frame buffer info if there is LCD/video support

2012-02-16 Thread Simon Glass
This value has no meaning otherwise. Signed-off-by: Simon Glass s...@chromium.org --- common/cmd_bdinfo.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index 54a56f4..80c100c 100644 --- a/common/cmd_bdinfo.c +++

[U-Boot] [PATCH v3 18/28] arm: Enable generic board support

2012-02-16 Thread Simon Glass
This enables generic board support so that ARM boards can define CONFIG_SYS_GENERIC_BOARD. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/config.mk |3 --- arch/arm/include/asm/global_data.h |7 +++ arch/arm/include/asm/u-boot.h |9 +

[U-Boot] [PATCH v3 06/28] x86: Add initial memory barrier macros

2012-02-16 Thread Simon Glass
These are available on other architectures, so add them on x86. Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/include/asm/io.h |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h index 9b757d4..b12bdd8

[U-Boot] [PATCH v3 16/28] Introduce generic post-relocation board_r.c

2012-02-16 Thread Simon Glass
This file handles common post-relocation init for boards which use the generic framework. Signed-off-by: Simon Glass s...@chromium.org --- common/Makefile |1 + common/board_r.c | 401 ++ 2 files changed, 402 insertions(+), 0

[U-Boot] [PATCH v3 12/28] x86: Change stub example to use asm-generic/sections.h

2012-02-16 Thread Simon Glass
We can use the declarations of __bss_start and _end from this header instead of declaring them locally. Signed-off-by: Simon Glass s...@chromium.org --- examples/standalone/stubs.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/standalone/stubs.c

[U-Boot] [PATCH v3 08/28] Introduce generic global_data

2012-02-16 Thread Simon Glass
We want to unify the global_data structure. Most fields are common across architectures, but there are a fair number of SOC-specific additions. It isn't clear how best to deal with these, but for now we just use #ifdef. Checkpatch warnings here might be unavoidable: warning:

[U-Boot] [PATCH v3 11/28] arm: Use sections header to obtain link symbols

2012-02-16 Thread Simon Glass
Include this header to get access to link symbols, which are otherwise removed. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/include/asm/u-boot-arm.h |4 arch/arm/lib/board.c |1 + board/cm4008/flash.c |1 + board/cm41xx/flash.c

[U-Boot] [PATCH v3 21/28] Add x86 fields to generic global_data

2012-02-16 Thread Simon Glass
These fields are needed for x86. Signed-off-by: Simon Glass s...@chromium.org --- include/asm-generic/global_data.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index 6199926..fb976f9 100644 ---

[U-Boot] [PATCH v3 09/28] Introduce generic u-boot.h file

2012-02-16 Thread Simon Glass
This file holds the board info structure. We need this to be generic for the unified board series, so create a structure which contains the basic fields required by the main architectures. Signed-off-by: Simon Glass s...@chromium.org --- include/asm-generic/u-boot.h | 155

[U-Boot] [PATCH v3 22/28] x86: Enable generic board support

2012-02-16 Thread Simon Glass
This enables generic board support so that x86 boards can define CONFIG_SYS_GENERIC_BOARD. Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/config.mk |3 --- arch/x86/include/asm/global_data.h |7 +++ arch/x86/include/asm/u-boot.h | 11 +++

[U-Boot] [PATCH v3 15/28] Introduce generic pre-relocation board_f.c

2012-02-16 Thread Simon Glass
This file handles common pre-relocation init for boards which use the generic framework. It starts up the console, DRAM, performs relocation and then jumps to post-relocation init. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Cast away the volatile on gd for memcpy()

[U-Boot] [PATCH v3 07/28] ppc: Add initial memory barrier macros

2012-02-16 Thread Simon Glass
These are available on other architectures, so add them on ppc. Signed-off-by: Simon Glass s...@chromium.org --- arch/powerpc/include/asm/io.h |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/include/asm/io.h b/arch/powerpc/include/asm/io.h index

[U-Boot] [PATCH v3 24/28] Adjust board_f for ppc

2012-02-16 Thread Simon Glass
This adds ppc features to the generic pre-relocation board init. This is a separate commit so that these features are clearly shown. Signed-off-by: Simon Glass s...@chromium.org --- common/board_f.c | 373 +- include/common.h | 16 +++ 2

[U-Boot] [PATCH v3 27/28] tegra: Mark board init files for ARMv4t

2012-02-16 Thread Simon Glass
Since Tegra executes early code on an ARMv4T (but the rest on ARMv7) we must mark the new board init files for compilation with ARMv4t architecture. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/cpu/armv7/tegra2/config.mk |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)

[U-Boot] [PATCH v3 14/28] Define CONFIG_SYS_LEGACY_BOARD everywhere

2012-02-16 Thread Simon Glass
We are introducing a new unified board setup and we want this to be the default. So we need to opt all architectures out first. Signed-off-by: Simon Glass s...@chromium.org --- README| 11 +++ arch/arm/config.mk|3 +++ arch/avr32/config.mk |3

[U-Boot] [PATCH v3 17/28] Add spl load feature

2012-02-16 Thread Simon Glass
This adds secondary program loader support to the generic board. Signed-off-by: Simon Glass s...@chromium.org --- common/board_f.c | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/common/board_f.c b/common/board_f.c index 054eda5..ebc0868 100644 ---

[U-Boot] [PATCH v3 13/28] Introduce a basic initcall implementation

2012-02-16 Thread Simon Glass
This library supports calling a list of functions one after the other. It is intended that we move to a more powerful initcall implementation as proposed by Graeme Russ graeme.r...@gmail.com. For now, this allows us to do the basics. Signed-off-by: Simon Glass s...@chromium.org ---

[U-Boot] [PATCH v3 26/28] ppc: Enable generic board board

2012-02-16 Thread Simon Glass
This enables generic board support so that ppc boards can define CONFIG_SYS_GENERIC_BOARD. Signed-off-by: Simon Glass s...@chromium.org --- arch/powerpc/config.mk |3 --- arch/powerpc/include/asm/global_data.h |7 +++ arch/powerpc/include/asm/u-boot.h |7

[U-Boot] [PATCH v3 19/28] Add CONFIG_SYS_SYM_OFFSETS to support offset symbols

2012-02-16 Thread Simon Glass
Link symbols as created by the link script can either be absolute or relative to the text start. This option switches between the two options so that we can support both. As we convert architectures over to generic board, we can see if this option is actually needed, or whether it is possible to

[U-Boot] [PATCH v3 23/28] Add ppc fields to generic global data

2012-02-16 Thread Simon Glass
This adds fields required by PowerPC to the global data. Signed-off-by: Simon Glass s...@chromium.org --- include/asm-generic/global_data.h | 124 + 1 files changed, 124 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/global_data.h

[U-Boot] [PATCH v3 28/28] tegra: Enable generic board for Seaboard.

2012-02-16 Thread Simon Glass
Enable CONFIG_SYS_GENERIC_BOARD for Tegra 2 Seaboard. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add CONFIG_SYS_GENERIC_BOARD to allow board to select generic board - Add PowerPC support - Change generic board to an opt-in system on a per-board basic - Rebase to master

Re: [U-Boot] [RFC PATCH v2 0/28] Create generic board init for ARM, x86, PPC

2012-02-16 Thread Wolfgang Denk
Dear Graeme Russ, In message calbutck062nsvsv0oq4evybxhv1hj7zorgxkclmpk-jfx3y...@mail.gmail.com you wrote: Pull request was sent a while ago and assigned to Wolfgang http://patchwork.ozlabs.org/patch/139891 Maybe Wolgang missed it or it is low on his priorities I haven't seen it...

Re: [U-Boot] [PATCH v4 1/8] sandbox: fdt: Add support for CONFIG_OF_CONTROL

2012-02-16 Thread Simon Glass
Hi Marek, On Feb 16, 2012 2:50 AM, Marek Vasut marek.va...@gmail.com wrote: This adds support for a controlling fdt, mirroring the ARM implementation. This is offtopic, but CONFIG OF CONTROL sounds interesting ;-) Yes I hope it will be before end of year. btw. aren't you missing this

Re: [U-Boot] Q: Bad bits in Nand Write

2012-02-16 Thread Scott Wood
On 02/14/2012 09:05 AM, Ran Shalit wrote: Hello, I am using Micron Nand MT29F1G08ABC , with OMAP-L138 board, and I write the Nand with the following sequence in U-Boot: 1. erase block 2, read complete page change the first byte and then write back the complete page (2048 bytes) 3, read

Re: [U-Boot] [PATCH v3 1/3] ARM: I2C: I2C Multi byte address support

2012-02-16 Thread Thomas Weber
Hello Rachna, On 01/23/2012 10:44 AM, Patil, Rachna wrote: Existing OMAP I2C driver does not support address length greater than one. Hence this patch is to add support for 2 byte address read/write. Signed-off-by: Philip, Avinashavinashphi...@ti.com Signed-off-by: Hebbar,

Re: [U-Boot] [PATCH] SPEAr: Add ARM relocation support

2012-02-16 Thread Marek Vasut
Signed-off-by: Amit Virdi amit.vi...@st.com Uh, are you sure the Subject correlates with the patch ? M --- board/spear/common/spr_misc.c | 20 +--- 1 files changed, 1 insertions(+), 19 deletions(-) diff --git a/board/spear/common/spr_misc.c

[U-Boot] [PATCH] arm: Tegra2: Fix ELDK42 gcc failure with inline asm stack pointer load

2012-02-16 Thread Tom Warren
The 4.2.2 gcc in the ELDK42 release doesn't like the direct SP load using a constant in tegra2_start. Break it up into 4 loads using mov orr. Tested on my Seaboard T20-A03, U-Boot loads and runs OK. Also compiled all tegra2 builds with both gcc 4.2.2 and 4.4.1 OK. Signed-off-by: Tom Warren

Re: [U-Boot] [PATCH] arm: Tegra2: Fix ELDK42 gcc failure with inline asm stack pointer load

2012-02-16 Thread Tom Warren
Albert, -Original Message- From: Tom Warren [mailto:twarren.nvi...@gmail.com] Sent: Thursday, February 16, 2012 12:46 PM To: u-boot@lists.denx.de Cc: twarren.nvi...@gmail.com; albert.u.b...@aribaud.net; w...@denx.de; s...@chromium.org; Stephen Warren; Tom Warren Subject: [PATCH]

Re: [U-Boot] [PATCH] arm: Tegra2: Fix ELDK42 gcc failure with inline asm stack pointer load

2012-02-16 Thread Simon Glass
Hi Tom, On Feb 16, 2012 11:45 AM, Tom Warren twarren.nvi...@gmail.com wrote: The 4.2.2 gcc in the ELDK42 release doesn't like the direct SP load using a constant in tegra2_start. Break it up into 4 loads using mov orr. Tested on my Seaboard T20-A03, U-Boot loads and runs OK. Also compiled

Re: [U-Boot] [PATCH] arm: Tegra2: Fix ELDK42 gcc failure with inline asm stack pointer load

2012-02-16 Thread Marek Vasut
The 4.2.2 gcc in the ELDK42 release doesn't like the direct SP load using a constant in tegra2_start. Break it up into 4 loads using mov orr. Tested on my Seaboard T20-A03, U-Boot loads and runs OK. Also compiled all tegra2 builds with both gcc 4.2.2 and 4.4.1 OK. Signed-off-by: Tom

Re: [U-Boot] [PATCH] arm: Tegra2: Fix ELDK42 gcc failure with inline asm stack pointer load

2012-02-16 Thread Tom Warren
Marek, -Original Message- From: Marek Vasut [mailto:marek.va...@gmail.com] Sent: Thursday, February 16, 2012 3:47 PM To: u-boot@lists.denx.de Cc: Tom Warren; Tom Warren Subject: Re: [U-Boot] [PATCH] arm: Tegra2: Fix ELDK42 gcc failure with inline asm stack pointer load The

Re: [U-Boot] [PATCH] SPEAr: Add ARM relocation support

2012-02-16 Thread Amit Virdi
On 2/17/2012 1:13 AM, Marek Vasut wrote: Signed-off-by: Amit Virdiamit.vi...@st.com Uh, are you sure the Subject correlates with the patch ? M Yeah. The fix is a part of the Relocation feature. For relocation, it is essential that dram_init stores RAM size and do nothing more i.e. no

Re: [U-Boot] [PATCH v3 1/3] ARM: I2C: I2C Multi byte address support

2012-02-16 Thread T Krishnamoorthy, Balaji
On Mon, Jan 23, 2012 at 3:14 PM, Patil, Rachna rac...@ti.com wrote: commit 2faa76196af4b3e93bcb9e38ed9090cbd3b06db3 Author: Patil, Rachna rac...@ti.com Date: Sun Jan 22 23:44:12 2012 + ARM: I2C: I2C Multi byte address support Existing OMAP I2C driver does not support address