[U-Boot] [PATCH 1/2 V3] arm926: Flush the data cache before disabling it

2012-01-13 Thread Sughosh Ganu
The current implementation invalidates the cache instead of flushing it. This causes problems on platforms where the spl/u-boot is already loaded to the RAM, with caches enabled by a first stage bootloader. The V bit of the cp15's control register c1 is set to the value of VINITHI on reset. Do not

Re: [U-Boot] [PATCH 1/2 V2] arm926: Flush the data cache before disabling it.

2012-01-13 Thread Sughosh Ganu
On Fri Jan 13, 2012 at 11:49:57PM +0530, Aneesh V wrote: > On Friday 13 January 2012 11:08 PM, Sughosh Ganu wrote: > >> > >>Are you sure, the RBL enables the D-Cache on your board? Nevertheless, > >>I think, we must disable the D-Cache here with "cleaning" it (as your > >>patch did) instead only

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

2012-01-13 Thread Yen Lin
On Fri, 2012-01-13 at 15:08 -0800, Stephen Warren wrote: > On 01/13/2012 04:05 PM, Simon Glass wrote: > > On Fri, Jan 13, 2012 at 2:04 PM, Yen Lin wrote: > >> On Fri, 2012-01-13 at 11:34 -0800, Simon Glass wrote: > >>> On Tue, Jan 10, 2012 at 10:30 AM, Stephen Warren > >>> wrote: > On 12/26

[U-Boot] [PATCH v4 9/9] Convert cmd_usage() calls in common to use a return value

2012-01-13 Thread Simon Glass
Change all files in common/ to use CMD_RET_USAGE instead of calling cmd_usage() directly. I'm not completely sure about this patch since the code since impact is small (100 byte or so on ARM) and it might need splitting into smaller patches. But for now here it is. Signed-off-by: Simon Glass ---

[U-Boot] [PATCH v4 5/9] Don't include standard parser if hush is used

2012-01-13 Thread Simon Glass
This saves about 1KB of code space on ARM with CONFIG_SYS_HUSH_PARSER defined. Signed-off-by: Simon Glass --- common/main.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/common/main.c b/common/main.c index 62c2072..f103ede 100644 --- a/common/main.c +++ b/common/main

[U-Boot] [PATCH v4 8/9] Add cmd_process() to process commands in one place

2012-01-13 Thread Simon Glass
We currently have the same code in hush.c and main.c. This brings the code into one place. As an added feature, if the command function returns CMD_RET_USAGE then cmd_process() will print a usage message for the command before returning the standard failure code of 1. ARM code size increases abou

[U-Boot] [PATCH v4 1/9] Remove CMD_PXE's static on run_command()

2012-01-13 Thread Simon Glass
It really isn't clear why this is here and there is no comment, so drop it. Signed-off-by: Simon Glass --- common/main.c|3 --- include/common.h |2 -- 2 files changed, 0 insertions(+), 5 deletions(-) diff --git a/common/main.c b/common/main.c index e96c95a..3ebe9f1 100644 --- a/c

[U-Boot] [PATCH v4 4/9] Stop using builtin_run_command()

2012-01-13 Thread Simon Glass
This function is only one of the parser options, so use run_command() instead. It knows how to use hush if selected. Signed-off-by: Simon Glass --- arch/arm/cpu/arm926ejs/kirkwood/cpu.c |7 + board/esd/common/auto_update.c|2 +- board/esd/common/cmd_loadpci.c|2 +

[U-Boot] [PATCH v4 6/9] Create a single cmd_call() function to handle command execution

2012-01-13 Thread Simon Glass
We should aim for a single point of entry to the commands, whichever parser is used. Signed-off-by: Simon Glass --- common/command.c | 21 + common/hush.c |9 +++-- common/main.c |3 +-- include/command.h |5 + 4 files changed, 30 insertions(+)

[U-Boot] [PATCH v4 3/9] Rename run_command2() to run_command()

2012-01-13 Thread Simon Glass
This is a more sensible name, so rename it. Signed-off-by: Simon Glass --- common/cmd_pxe.c |2 +- common/main.c| 10 +- include/common.h |2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/common/cmd_pxe.c b/common/cmd_pxe.c index 7c0cb66..3f69643 100644

[U-Boot] [PATCH v4 2/9] Rename run_command() to builtin_run_command()

2012-01-13 Thread Simon Glass
The current run_command() is only one of the options, with hush providing the other. It really shouldn't be called directly in case the hush parser is being used, so rename this function to better explain its purpose. Signed-off-by: Simon Glass --- Changes in v4: - Minor comment change for call t

[U-Boot] [PATCH v4 7/9] Remove interleave of non-U-Boot code in hush

2012-01-13 Thread Simon Glass
There is a nasty interleave of #ifdefs in hush.c where the two code paths have different indents. Remove this ickiness. Signed-off-by: Simon Glass --- common/hush.c | 24 +++- 1 files changed, 11 insertions(+), 13 deletions(-) diff --git a/common/hush.c b/common/hush.c in

[U-Boot] [PATCH v4 0/9] Unified command execution in one place

2012-01-13 Thread Simon Glass
At present two parsers have similar code to execute commands. Also cmd_usage() is called all over the place. This series adds a single function which processes commands called cmd_process(). This new function understands return codes, and in particular CMD_RET_USAGE to indicate a usage error. So

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

2012-01-13 Thread Simon Glass
Hi Stephen, On Mon, Jan 9, 2012 at 8:46 AM, Stephen Warren wrote: > On 01/06/2012 05:25 PM, Simon Glass wrote: >> 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 G

Re: [U-Boot] [PATCH v2 4/9] Stop using builtin_run_command()

2012-01-13 Thread Simon Glass
Hi Wolfgang, On Fri, Jan 13, 2012 at 1:33 PM, Simon Glass wrote: > Hi Wolfgang, > > On Fri, Jan 13, 2012 at 1:25 PM, Wolfgang Denk wrote: >> Dear Simon Glass, >> >> In message >> you >> wrote: >>> >>> > run_command2() in "common/main.c" (now renamed into run_command() will >>> > return 0 or 1

[U-Boot] Bug in cfb_console driver

2012-01-13 Thread Pali Rohár
Hello, commit 03d31fcf4c37d90a00e66f06b38742960139f090 break video framebuffer output on Nokia N900. After this commit is video output garbaged and not readable on display. Problem is in function video_invertchar() - when I commented it, video output is OK, but without cursor. Problem is only on r

[U-Boot] [PATCH v2] main: unify command parsing functions

2012-01-13 Thread Michael Walle
Introduce source_commands() which incorporates run_command2() and parts of source(). All command script are now treated the same, that is newlines are accepted within a command script and variable. Signed-off-by: Michael Walle Cc: Wolfgang Denk Cc: Mike Frysinger --- This patch supersedes "cm

[U-Boot] [PATCHv5 3/7] mkenvimage: More error handling

2012-01-13 Thread David Wagner
Verbosly fail if the target environment size or the padding byte are badly formated. Verbosly fail if something bad happens when reading from standard input. Signed-off-by: David Wagner --- tools/mkenvimage.c | 31 +-- 1 files changed, 29 insertions(+), 2 deletions

[U-Boot] [PATCHv5 7/7] mkenvimage: Really set the redundant byte when applicable

2012-01-13 Thread David Wagner
Signed-off-by: David Wagner --- tools/mkenvimage.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/tools/mkenvimage.c b/tools/mkenvimage.c index ddd4515..e148f89 100644 --- a/tools/mkenvimage.c +++ b/tools/mkenvimage.c @@ -285,7 +285,9 @@ int main(int argc, char **argv

[U-Boot] [PATCHv5 6/7] mkenvimage: Don't try to detect comments in the input file

2012-01-13 Thread David Wagner
Remove this feature since it seems impossible to reliably detect them. Signed-off-by: David Wagner --- tools/mkenvimage.c |8 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/tools/mkenvimage.c b/tools/mkenvimage.c index 8ce1be6..ddd4515 100644 --- a/tools/mkenvimage.c

[U-Boot] [PATCHv5 5/7] mkenvimage: Use mmap() when reading from a regular file

2012-01-13 Thread David Wagner
Fall back to read() if it fails. Signed-off-by: David Wagner --- tools/mkenvimage.c | 25 +++-- 1 files changed, 19 insertions(+), 6 deletions(-) diff --git a/tools/mkenvimage.c b/tools/mkenvimage.c index a5676be..8ce1be6 100644 --- a/tools/mkenvimage.c +++ b/tools/mkenvim

[U-Boot] [PATCHv5 4/7] mkenvimage: Read/Write from/to stdin/out by default or if the filename is "-"

2012-01-13 Thread David Wagner
Signed-off-by: David Wagner --- tools/mkenvimage.c | 26 +- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/tools/mkenvimage.c b/tools/mkenvimage.c index cc1deec..a5676be 100644 --- a/tools/mkenvimage.c +++ b/tools/mkenvimage.c @@ -171,15 +171,9 @@ int m

[U-Boot] [PATCHv5 2/7] mkenvimage: Correct an include and add a missing one

2012-01-13 Thread David Wagner
compiler.h needs to be included from U-Boot's headers. Also, group U-Boot-specific includes together stdlib.h was missing. Signed-off-by: David Wagner --- tools/mkenvimage.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/tools/mkenvimage.c b/tools/mkenvimage.c index

[U-Boot] [PATCHv5 1/7] mkenvimage: correct and clarify comments and error messages

2012-01-13 Thread David Wagner
Also, don't split error messages over several lines as per a coding style exception making them easier to grep. Signed-off-by: David Wagner --- tools/mkenvimage.c | 41 +++-- 1 files changed, 15 insertions(+), 26 deletions(-) diff --git a/tools/mkenvimage.c

Re: [U-Boot] Bug of NOR Flash CFI Driver

2012-01-13 Thread Wolfgang Denk
Dear "Robert Ding", In message <6FE7F5133E344F8BB49547A07A987714@DyingPC> you wrote: > > I found a bug on NOR Flash CFI drivers during my development. In the This is not bug. It is a limitation, or you may call it a feature... > To which the address of src point is a RAM address, the code is O

Re: [U-Boot] [PATCH 0/9] mkenvimage: v10/v11 diff split into several patches

2012-01-13 Thread David Wagner
Le 13/01/2012 21:07, Wolfgang Denk a écrit : Sorry, but this patch series has become a mess; we have the original 1-9 series, then a v2 1-10, then v3 1-8, and even a v4 1-8, with htese later series all being sparse ones. Sonce the number of patches changed several times, it's totally unclear to

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

2012-01-13 Thread Yen Lin
Hi Simon, On Fri, 2012-01-13 at 11:34 -0800, Simon Glass wrote: > Hi Stephen, > > [Yen please can you read this also?] > > On Tue, Jan 10, 2012 at 10:30 AM, Stephen Warren wrote: > > On 12/26/2011 12:33 PM, Simon Glass wrote: > >> From: Yen Lin > >> > >> Add code to set up the warm boot area i

Re: [U-Boot] [PATCH 4/5] net: fec_mxc: Nove autonegoatiate restart after mii_postcall

2012-01-13 Thread Troy Kisky
On 1/13/2012 5:44 AM, Marek Vasut wrote: From: Troy Kisky Allow boards to change what is advertised before an autoneg restart happens. Signed-off-by: Troy Kisky CC: Troy Kisky CC: Stefano Babic CC: Marek Vasut --- drivers/net/fec_mxc.c |6 +++--- 1 files changed, 3 insertions(+), 3 delet

Re: [U-Boot] [PATCH 4/5] net: fec_mxc: Nove autonegoatiate restart after mii_postcall

2012-01-13 Thread Troy Kisky
On 1/13/2012 6:54 AM, Stefano Babic wrote: On 13/01/2012 13:10, Dirk Behme wrote: From: Troy Kisky Allow boards to change what is advertised before an autoneg restart happens. Signed-off-by: Troy Kisky CC: Troy Kisky CC: Stefano Babic CC: Marek Vasut --- drivers/net/fec_mxc.c |6 +++---

[U-Boot] Bug of NOR Flash CFI Driver

2012-01-13 Thread Robert Ding
Dear Wolfgang Denk: I found a bug on NOR Flash CFI drivers during my development. In the file of cfi_flash.c, the function of flash_write_cfibuffer() maybe have a problem. The process of NOR Flash write buffer program mode in u-boot code is: flash_unlock_seq(info,0); flash_write_cmd(info, sector,

Re: [U-Boot] [PATCH] post/Makefile: Only build FP post tests if enabled via CONFIG_SYS_POST_FPU

2012-01-13 Thread Wolfgang Denk
Dear Kumar Gala, In message <1326396641-20928-1-git-send-email-ga...@kernel.crashing.org> you wrote: > Signed-off-by: Kumar Gala > --- > post/Makefile |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/post/Makefile b/post/Makefile > index 200e2f1..55b7d21 100644 >

[U-Boot] [PATCH 5/6] tegra: nand: Add Tegra NAND driver

2012-01-13 Thread Simon Glass
From: Jim Lin A device tree is used to configure the NAND, including memory timings and block/pages sizes. If this node is not present or is disabled, then NAND will not be initialized. Signed-off-by: Simon Glass --- arch/arm/include/asm/arch-tegra2/tegra2.h |1 + drivers/mtd/nand/Makefil

[U-Boot] [PATCH 6/6] tegra: Enable NAND on Seaboard

2012-01-13 Thread Simon Glass
This enables NAND support for the Seaboard. Signed-off-by: Simon Glass --- include/configs/seaboard.h |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/include/configs/seaboard.h b/include/configs/seaboard.h index 7b6f92a..b31ac0c 100644 --- a/include/configs/seabo

[U-Boot] [PATCH 4/6] tegra: fdt: Add NAND definitions to fdt

2012-01-13 Thread Simon Glass
Add a flash node to handle the NAND, including memory timings and page / block size information. Signed-off-by: Simon Glass --- board/nvidia/dts/tegra2-seaboard.dts | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/board/nvidia/dts/tegra2-seaboard.dts b/boa

[U-Boot] [PATCH 1/6] fdt: Add debugging to fdtdec_get_int/addr()

2012-01-13 Thread Simon Glass
The new debugging shows the value of integers and addresses read from the device tree. Signed-off-by: Simon Glass --- lib/fdtdec.c | 22 -- 1 files changed, 16 insertions(+), 6 deletions(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c index f08bfca..5d97e2a 100644 --- a/lib/fd

[U-Boot] [PATCH 2/6] tegra: Add NAND support to funcmux

2012-01-13 Thread Simon Glass
Add selection of NAND flash pins to the funcmux. Signed-off-by: Simon Glass --- arch/arm/cpu/armv7/tegra2/funcmux.c|7 +++ arch/arm/include/asm/arch-tegra2/funcmux.h |3 +++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/armv7/tegra2/funcmux.c b

[U-Boot] [PATCH 3/6] tegra: fdt: Add NAND controller binding and definitions

2012-01-13 Thread Simon Glass
Add a NAND controller along with a bindings file for review. Signed-off-by: Simon Glass --- arch/arm/dts/tegra20.dtsi |7 ++- doc/device-tree-bindings/nand/nvidia-nand.txt | 68 + 2 files changed, 74 insertions(+), 1 deletions(-) create mode 100

[U-Boot] [PATCH 0/6] tegra: Add NAND flash support

2012-01-13 Thread Simon Glass
This series adds NAND flash support to Tegra and enables it on Seaboard. Included here is a proposed device tree binding which I'm sure will stretch some eyes. The binding includes information about the NAND controller as well as the connected NAND device. The Seaboard has a Hynix HY27UF4G2B. The

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

2012-01-13 Thread Stephen Warren
On 01/13/2012 04:05 PM, Simon Glass wrote: > On Fri, Jan 13, 2012 at 2:04 PM, Yen Lin wrote: >> On Fri, 2012-01-13 at 11:34 -0800, Simon Glass wrote: >>> On Tue, Jan 10, 2012 at 10:30 AM, Stephen Warren wrote: On 12/26/2011 12:33 PM, Simon Glass wrote: ... >>> But there a few questions here.

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

2012-01-13 Thread Simon Glass
Hi Yen, On Fri, Jan 13, 2012 at 2:04 PM, Yen Lin wrote: > Hi Simon, > > On Fri, 2012-01-13 at 11:34 -0800, Simon Glass wrote: >> Hi Stephen, >> >> [Yen please can you read this also?] >> >> On Tue, Jan 10, 2012 at 10:30 AM, Stephen Warren wrote: >> > On 12/26/2011 12:33 PM, Simon Glass wrote: >>

Re: [U-Boot] [PATCH v2] arm, arm-kirkwood: disable l2c before linux boot

2012-01-13 Thread Michael Walle
[Sorry can't answer to the original message, because it was blocked by spam filter] > Also, I'm missing something: you introduce two functions, for enabling > and disabling the cache, yet the code uses only the one for disabling. > So what enabled it in the first place? The L2C is enabled in ar

[U-Boot] [PATCH v2] arm, arm-kirkwood: disable l2c before linux boot

2012-01-13 Thread Michael Walle
The decompressor expects the L2 cache to be disabled. This fixes booting some kernels, which have CONFIG_ARM_PATCH_PHYS_VIRT enabled. Signed-off-by: Michael Walle Cc: Albert ARIBAUD Cc: Prafulla Wadaskar --- This is a repost, because the former had no version tag nor a history. v2: - replace

Re: [U-Boot] [PATCH v2 19/20] tegra: fdt: Add EMC data for Tegra2 Seaboard

2012-01-13 Thread Simon Glass
On Fri, Jan 13, 2012 at 1:35 PM, Simon Glass wrote: > This adds timings for T20 and T25 Seaboards, using the bindings found here: > > http://patchwork.ozlabs.org/patch/132928/ > > We supply both full speed options for normal running, and half speed options > for testing / development. > > Signed-o

Re: [U-Boot] [PATCH v2 2/2] fdt: Add tests for fdtdec

2012-01-13 Thread Stephen Warren
On 01/11/2012 04:08 PM, Simon Glass wrote: > The fdtdec_find_aliases_for_id() function is complicated enough that > it really should have some tests. This does not necessarily need to be > committed to U-Boot, but it might be useful. > > Signed-off-by: Simon Glass > +static int run_test(const ch

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

2012-01-13 Thread Stephen Warren
On 01/11/2012 04:08 PM, Simon Glass wrote: > 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 o

[U-Boot] [PATCH v2 15/20] Tegra2: Turn off power detect in board init

2012-01-13 Thread Simon Glass
From: Wei Ni Tegra core power rail has leakage voltage around 0.2V while system in suspend mode. The source of the leakage should be coming from PMC power detect logic for IO rails power detection. That can be disabled by writing a '0' to PWR_DET_LATCH followed by writing '0' to PWR_DET (APBDEV_P

[U-Boot] [PATCH v2 12/20] tegra: Add warmboot implementation

2012-01-13 Thread Simon Glass
From: Yen Lin Add code to set up the warm boot area in the Tegra CPU ready for a resume after suspend. Signed-off-by: Simon Glass --- Changes in v2: - Move structs shared between A9 and AVP into warmboot.h header file - Remove unused crypto code - Tidy SDRAM range check in warmboot_prepare_code

[U-Boot] [PATCH v2 17/20] fdt: tegra: Add EMC node to device tree

2012-01-13 Thread Simon Glass
Add a definition of the memory controller node according to the bindings here: http://patchwork.ozlabs.org/patch/132928/ Signed-off-by: Simon Glass --- arch/arm/dts/tegra20.dtsi |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/tegra20.dtsi b/arch/arm/

[U-Boot] [PATCH v2 13/20] tegra: Setup PMC scratch info from ap20 setup

2012-01-13 Thread Simon Glass
From: Yen Lin Save SDRAM parameters into the warmboot scratch registers Signed-off-by: Simon Glass --- 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 b/arch/arm/cpu/armv7/tegra2/ap20.c index fadce

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

2012-01-13 Thread Simon Glass
This enables LP0 to support suspend / resume on Seaboard. Signed-off-by: Simon Glass --- include/configs/seaboard.h |8 include/configs/tegra2-common.h | 17 + 2 files changed, 25 insertions(+), 0 deletions(-) diff --git a/include/configs/seaboard.h b/includ

[U-Boot] [PATCH v2 07/20] tegra: Add flow, gp_padctl, fuse, sdram headers

2012-01-13 Thread Simon Glass
From: Yen Lin 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 --- arch/arm/include/asm/arch-tegra

[U-Boot] [PATCH v2 19/20] tegra: fdt: Add EMC data for Tegra2 Seaboard

2012-01-13 Thread Simon Glass
This adds timings for T20 and T25 Seaboards, using the bindings found here: http://patchwork.ozlabs.org/patch/132928/ We supply both full speed options for normal running, and half speed options for testing / development. Signed-off-by: Simon Glass --- board/nvidia/dts/tegra2-seaboard.dts |

[U-Boot] [PATCH v2 11/20] tegra: Set up PMU for Nvidia boards

2012-01-13 Thread Simon Glass
Adjust PMU to permit maximum frequency operation. Signed-off-by: Simon Glass --- Changes in v2: - Check error return from pmu_set_nominal() in debug mode board/nvidia/common/board.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/board/nvidia/common/board.c b/board

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

2012-01-13 Thread Simon Glass
Call the function to put warmboot boot in a suitable place for resume. Signed-off-by: Simon Glass --- board/nvidia/common/board.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index ea68090..d2eee6e 100644

[U-Boot] [PATCH v2 18/20] tegra: i2c: Add function to find DVC bus

2012-01-13 Thread Simon Glass
Add tegra_i2c_get_dvc_bus_num() to obtain the I2C bus number of DVC bus. This allows us to talk to the PMU. Signed-off-by: Simon Glass --- Changes in v2: - Add patch to find DVC bus number arch/arm/include/asm/arch-tegra2/tegra2_i2c.h |7 +++ drivers/i2c/tegra2_i2c.c

[U-Boot] [PATCH v2 09/20] tegra: Add EMC support for optimal memory timings

2012-01-13 Thread Simon Glass
From: Jimmy Zhang Add support for setting up the memory controller parameters. Boards can set up an appropriate table in the device tree. Signed-off-by: Simon Glass --- Changes in v2: - Add debug() output to EMC - Move EMC tables to device tree arch/arm/cpu/armv7/tegra2/Makefile |1 +

[U-Boot] [PATCH v2 16/20] tegra: Add EMC settings for Seaboard

2012-01-13 Thread Simon Glass
From: Jimmy Zhang Set Seaboard to optimal memory settings based on the SOC in use (T20 or T25). Signed-off-by: Simon Glass --- Changes in v2: - Move EMC tables to device tree - Removed check for nominal voltage (not needed as it is done just before) board/nvidia/common/Makefile |1 + boar

[U-Boot] [PATCH v2 08/20] tegra: Add tegra_get_chip_type() to detect SKU

2012-01-13 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 --- Changes in v2: - Add check of undocumented values in hidrev register arch/arm/cpu/armv7/tegra

[U-Boot] [PATCH v2 03/20] Add AES crypto library

2012-01-13 Thread Simon Glass
From: Yen Lin 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 --- Changes in v2: - Tidy whitespace problems - Use const for sbox arrays include/aes.h | 70 +++ lib/M

[U-Boot] [PATCH v2 04/20] tegra: Move ap20.h header into arch location

2012-01-13 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 --- arch/arm/cpu/armv7/tegra2/ap20.c |2 +- arch/arm/cpu/armv7/tegra2/board.c |4 ++-- .../tegra2 => include/asm/arch-tegra2}/ap2

[U-Boot] [PATCH v2 05/20] tegra: Add functions to access low-level Osc/PLL details

2012-01-13 Thread Simon Glass
Add clock_ll_read_pll() to read PLL parameters and clock_get_osc_bypass() to find out if the Oscillator is bypassed. These are needed by warmboot. Signed-off-by: Simon Glass --- Changes in v2: - New patch to add low-level clock functions arch/arm/cpu/armv7/tegra2/clock.c | 32 +++

[U-Boot] [PATCH v2 10/20] tegra: Add PMU to manage power supplies

2012-01-13 Thread Simon Glass
From: Jimmy Zhang 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. - Split PMU code into separate TPS6586X driver Signed-off-by: Simon Glass --- arch/arm/cpu/armv7/tegra2/Makefile

[U-Boot] [PATCH v2 02/20] i2c: Add TPS6586X driver

2012-01-13 Thread Simon Glass
This power management chip supports battery charging and a large number of power supplies. This initial driver only provides the ability to adjust the two synchronous buck converters SM0 and SM1 in a stepwise manner. Signed-off-by: Simon Glass --- Changes in v2: - Split PMU code into separate TPS

[U-Boot] [PATCH v2 06/20] tegra: Add crypto library for warmboot code

2012-01-13 Thread Simon Glass
From: Yen Lin Provides an interface to aes.c for the warmboot code. Signed-off-by: Simon Glass --- Changes in v2: - Rely on compiler to optimise out debug_print_vector() - Remove unused crypto code from crypto.c arch/arm/cpu/armv7/tegra2/crypto.c | 230 a

[U-Boot] [PATCH v2 01/20] fdt: Add function to locate an array in the device tree

2012-01-13 Thread Simon Glass
fdtdec_locate_array() locates an integer array but does not copy it. This saves the caller having to allocated wasted space. Access to array elements should be through the fdt32_to_cpu() macro. Signed-off-by: Simon Glass --- Changes in v2: - Add new fdtdec_locate_array() function include/fdtde

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

2012-01-13 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. Al

Re: [U-Boot] [PATCH v2 4/9] Stop using builtin_run_command()

2012-01-13 Thread Simon Glass
Hi Wolfgang, On Fri, Jan 13, 2012 at 1:25 PM, Wolfgang Denk wrote: > Dear Simon Glass, > > In message > you > wrote: >> >> > run_command2() in "common/main.c" (now renamed into run_command() will >> > return 0 or 1 when used with the hush shell; it will never return < 0. >> >> Thanks for looki

Re: [U-Boot] [PATCH v2 4/9] Stop using builtin_run_command()

2012-01-13 Thread Wolfgang Denk
Dear Simon Glass, In message you wrote: > > > run_command2() in "common/main.c" (now renamed into run_command() will > > return 0 or 1 when used with the hush shell; it will never return < 0. > > Thanks for looking at this. I will see what I can figure out. I think there is some pre-existing

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

2012-01-13 Thread Simon Glass
Hi Stephen, On Thu, Jan 12, 2012 at 11:48 AM, Stephen Warren wrote: > Simon Glass wrote at Thursday, January 12, 2012 12:36 PM: >> On Mon, Jan 9, 2012 at 3:24 PM, Stephen Warren wrote: >> > On 12/26/2011 12:32 PM, Simon Glass wrote: > ... >> > I think this should read/validate/switch-on the SoC

Re: [U-Boot] [PATCH] [v2] powerpc/85xx: move the Fman microcode from ef000000 to eff40000

2012-01-13 Thread Timur Tabi
Timur Tabi wrote: > Well, I tried that a while back and it didn't work, but I can't remember > why. That was before I implemented a unified approach to Fman ucode > identification, so maybe it will work better now. Ok, I remember now. The problem was that using the environment variable was messy

Re: [U-Boot] Fwd: [PATCH v6 1/2] Introduce generic TPM support in u-boot

2012-01-13 Thread Wolfgang Denk
Dear Vadim Bendebury, In message you wrote: > > Do you mean all newer patch versions are supposed to include logs of > all previous patch versions? Yes, as documented - see http://www.denx.de/wiki/view/U-Boot/Patches#Sending_updated_patch_versions bullet # 2 and example. > I can do that, some

Re: [U-Boot] [PATCH v2] net: allow setting env enetaddr from net device setting

2012-01-13 Thread Wolfgang Denk
Dear Rob Herring, In message <1323199478-21001-1-git-send-email-robherri...@gmail.com> you wrote: > From: Rob Herring > > If the net driver has setup a valid ethernet address and an ethernet > address is not set in the environment already, then set the environment > variables from the net driver

Re: [U-Boot] [PATCH v2 9/9] openrisc: Add MAINTAINERS entry

2012-01-13 Thread Wolfgang Denk
Dear Stefan Kristiansson, In message <1322370297-22892-10-git-send-email-stefan.kristians...@saunalahti.fi> you wrote: > Signed-off-by: Stefan Kristiansson > --- > > Changes in v2: > - None > > MAINTAINERS | 11 +++ > 1 files changed, 11 insertions(+), 0 deletions(-) Applied, tha

Re: [U-Boot] [PATCH v2 8/9] openrisc: Add architecture to MAKEALL

2012-01-13 Thread Wolfgang Denk
Dear Stefan Kristiansson, In message <1322370297-22892-9-git-send-email-stefan.kristians...@saunalahti.fi> you wrote: > Signed-off-by: Stefan Kristiansson > --- > > Changes in v2: > - None > > MAKEALL |5 + > 1 files changed, 5 insertions(+), 0 deletions(-) Applied, thanks. Best re

Re: [U-Boot] [PATCH v2 6/9] openrisc: Add support for standalone programs

2012-01-13 Thread Wolfgang Denk
Dear Stefan Kristiansson, In message <1322370297-22892-7-git-send-email-stefan.kristians...@saunalahti.fi> you wrote: > Signed-off-by: Stefan Kristiansson > --- > > Changes in v2: > - None > > examples/standalone/stubs.c | 14 ++ > 1 files changed, 14 insertions(+), 0 deletions

Re: [U-Boot] [PATCH v2 7/9] openrisc: Add openrisc-generic example board

2012-01-13 Thread Wolfgang Denk
Dear Stefan Kristiansson, In message <1322370297-22892-8-git-send-email-stefan.kristians...@saunalahti.fi> you wrote: > Signed-off-by: Stefan Kristiansson > --- > > Changes in v2: > - Remove references to deprecated CONFIG_NET_MULTI > > board/openrisc/openrisc-generic/Makefile |

Re: [U-Boot] [PATCH v2 5/9] openrisc: Add board info printout to cmd_bdinfo

2012-01-13 Thread Wolfgang Denk
Dear Stefan Kristiansson, In message <1322370297-22892-6-git-send-email-stefan.kristians...@saunalahti.fi> you wrote: > Signed-off-by: Stefan Kristiansson > --- > > Changes in v2: > - None > > common/cmd_bdinfo.c | 22 ++ > 1 files changed, 22 insertions(+), 0 deletions

Re: [U-Boot] [PATCH v2 4/9] openrisc: Add library functions

2012-01-13 Thread Wolfgang Denk
Dear Stefan Kristiansson, In message <1322370297-22892-5-git-send-email-stefan.kristians...@saunalahti.fi> you wrote: > Signed-off-by: Stefan Kristiansson > --- > > Changes in v2: > - Remove superfluous extern statements > - Use ARRAY_SIZE to determine end of function pointer list > - Remove

Re: [U-Boot] [PATCH v2 3/9] openrisc: Add cpu files

2012-01-13 Thread Wolfgang Denk
Dear Stefan Kristiansson, In message <1322370297-22892-4-git-send-email-stefan.kristians...@saunalahti.fi> you wrote: > Signed-off-by: Stefan Kristiansson > --- > > Changes in v2: > - Fix missing newline > - Bugfix for cache line size reading > - Make l.nop asm statements volatile > - Fix i

Re: [U-Boot] [PATCH v2 2/9] openrisc: Add architecture image support

2012-01-13 Thread Wolfgang Denk
Dear Stefan Kristiansson, In message <1322370297-22892-3-git-send-email-stefan.kristians...@saunalahti.fi> you wrote: > Signed-off-by: Stefan Kristiansson > --- > > Changes in v2: > - None > > common/image.c |1 + > include/image.h |1 + > 2 files changed, 2 insertions(+), 0 deletio

Re: [U-Boot] [PATCH v2 1/9] openrisc: Add architecture header files

2012-01-13 Thread Wolfgang Denk
Dear Stefan Kristiansson, In message <1322370297-22892-2-git-send-email-stefan.kristians...@saunalahti.fi> you wrote: > Signed-off-by: Stefan Kristiansson > --- > > Changes in v2: > - Copyright/license information added to headers > - ptrace.h updated from Linux > > arch/openrisc/include/as

Re: [U-Boot] [PATCH 0/9] mkenvimage: v10/v11 diff split into several patches

2012-01-13 Thread Wolfgang Denk
Dear David Wagner, In message <1322080098-3151-1-git-send-email-david.wag...@free-electrons.com> you wrote: > > First, thanks for having mainlined mkenvimage :) > > These patches mainly address Wolfgang's remarks. There are a couple others. > > I first intended to submit a v11 patch but since

Re: [U-Boot] [PATCH 1/9] Strip mkenvimage

2012-01-13 Thread Wolfgang Denk
Dear David Wagner, In message <1322080098-3151-2-git-send-email-david.wag...@free-electrons.com> you wrote: > Signed-off-by: David Wagner > --- > tools/Makefile |1 + > 1 files changed, 1 insertions(+), 0 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engine

Re: [U-Boot] [PATCH v2 4/9] Stop using builtin_run_command()

2012-01-13 Thread Simon Glass
Hi Wolfgang, On Fri, Jan 13, 2012 at 11:27 AM, Wolfgang Denk wrote: > Dear Simon Glass, > > In message <1323542641-14541-5-git-send-email-...@chromium.org> you wrote: >> This function is only one of the parser options, so use run_command() >> instead. It knows how to use hush if selected. > ... >

Re: [U-Boot] [PATCH] post/Makefile: Only build FP post tests if enabled via CONFIG_SYS_POST_FPU

2012-01-13 Thread Wolfgang Denk
Dear Kumar Gala, In message <1326396641-20928-1-git-send-email-ga...@kernel.crashing.org> you wrote: > Signed-off-by: Kumar Gala > --- > post/Makefile |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering Gmb

Re: [U-Boot] [GIT PULL] please pull u-boot-mpc85xx

2012-01-13 Thread Wolfgang Denk
Dear Kumar Gala, In message you wrote: > The following changes since commit 9a4209869bd2c37affd931d627b3c3e72952: > Rob Herring (1): > ARM: highbank: enable networking and pxe > > are available in the git repository at: > > git://git.denx.de/u-boot-mpc85xx.git master > > Kyle

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

2012-01-13 Thread Simon Glass
Hi Stephen, [Yen please can you read this also?] On Tue, Jan 10, 2012 at 10:30 AM, Stephen Warren wrote: > On 12/26/2011 12:33 PM, Simon Glass wrote: >> From: Yen Lin >> >> Add code to set up the warm boot area in the Tegra CPU ready for a >> resume after suspend. >> >> Signed-off-by: Simon Gla

Re: [U-Boot] compile the u-boot

2012-01-13 Thread Wolfgang Denk
Dear Jilin Zhou, In message <65fa52f035a583499cf50319f9e7adbc081...@exmbx1.ott.qnx.com> you wrote: > > Thanks for the reply. My host environment is Mac. Our company has a cross > compiler toolchain for armv7. Meybe it has some problem? > We use this cross compiler every day and it should be f

[U-Boot] Please pull u-boot-ti/master

2012-01-13 Thread Tom Rini
Hi Albert, The following changes since commit 10a4fa9e22b9677819b3901a87eec05875b346ad: Aneesh V (1): omap4: fix boot issue on ES2.0 Panda are available in the git repository at: git://git.denx.de/u-boot-ti.git master Andreas Müller (7): drivers/i2c/omap24xx_i2c.c: replace pri

Re: [U-Boot] Please pull u-boot-staging/s...@denx.de - UPDATE

2012-01-13 Thread Wolfgang Denk
Dear Stefan Roese, In message <201201120857.53052...@denx.de> you wrote: > Hi Wolfgang, > > please pull Simon's "Unified command execution in one place" patch series > plus one patch from Eric Miao: > > The following changes since commit 9a4209869bd2c37affd931d627b3c3e72952: > > ARM: high

Re: [U-Boot] [PATCH v2 4/9] Stop using builtin_run_command()

2012-01-13 Thread Wolfgang Denk
Dear Simon Glass, In message <1323542641-14541-5-git-send-email-...@chromium.org> you wrote: > This function is only one of the parser options, so use run_command() > instead. It knows how to use hush if selected. ... > debug("Starting %s process...\n", __FUNCTION__); > -#if !defined(CONFIG

Re: [U-Boot] [PATCH] net/eth.c: fix eth_write_hwaddr() to use dev->enetaddr as fall back

2012-01-13 Thread Wolfgang Denk
Dear Eric Miao, In message <1313559224-4627-1-git-send-email-eric.m...@linaro.org> you wrote: > Ignore the return value of eth_getenv_enetaddr_by_index(), and if it > fails, fall back to use dev->enetaddr, which could be filled up by > the ethernet device driver. > > Actually, this is the origina

[U-Boot] mx28: bug in mxs_spi driver

2012-01-13 Thread Matthias Fuchs
Hi, I ran into trouble when trying to extend MX28EVK board support for a SPI flash (SST24VF032B). Some code finally runs into spi_flash_cmd_poll_bit() (spi_flash.c). This function is then used to poll the flash's status register: int spi_flash_cmd_poll_bit(struct spi_flash *flash, unsigned long

Re: [U-Boot] [GIT PULL] Pull request: i2c

2012-01-13 Thread Wolfgang Denk
Dear Heiko Schocher, In message <4f0d37aa.4080...@denx.de> you wrote: > Hello Wolfgang, > > The following changes since commit 9a4209869bd2c37affd931d627b3c3e72952: > > ARM: highbank: enable networking and pxe (2012-01-05 20:10:38 +0100) > > are available in the git repository at: > git

Re: [U-Boot] Please pull u-boot-ppc4xx

2012-01-13 Thread Wolfgang Denk
Dear Stefan Roese, In message <201201100842.58840...@denx.de> you wrote: > Hi Wolfgang, > > please pull the following changes: > > The following changes since commit 9a4209869bd2c37affd931d627b3c3e72952: > > ARM: highbank: enable networking and pxe (2012-01-05 20:10:38 +0100) > > are availab

Re: [U-Boot] [GIT PULL] Please pull u-boot-mpc83xx: new 8321 tuge1, GPIO support, fixes

2012-01-13 Thread Wolfgang Denk
Dear Kim Phillips, In message <20120109202052.ae28ccb964402aa7afab5...@freescale.com> you wrote: > > Please pull 8321-based tuge1 board support, GPIO support for the > mpc8313erdb, and other fixes: > > The following changes since commit 9a4209869bd2c37affd931d627b3c3e72952: > > ARM: highb

Re: [U-Boot] Please pull u-boot-mmc.git

2012-01-13 Thread Wolfgang Denk
Dear Andy Fleming, In message <1326080645-5780-1-git-send-email-aflem...@freescale.com> you wrote: > The following changes since commit 9a4209869bd2c37affd931d627b3c3e72952: > > ARM: highbank: enable networking and pxe (2012-01-05 20:10:38 +0100) > > are available in the git repository at:

Re: [U-Boot] [PATCH] fsl_lbc: add printout of LCRR and LBCR to local bus regs

2012-01-13 Thread Kumar Gala
On Dec 15, 2011, at 9:22 AM, Paul Gortmaker wrote: > It can be handy to have these in the output when trying to > debug odd behaviour. > > Signed-off-by: Paul Gortmaker applied to 85xx - k ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.d

Re: [U-Boot] [PATCH 85xx-next 0/8] Updates for Wind River sbc8548 board

2012-01-13 Thread Kumar Gala
On Dec 30, 2011, at 10:53 PM, Paul Gortmaker wrote: > This updates the sbc8548 board support with several improvements > for the end users. > > -ability to use SPD DDR config for easy RAM upgrades > -ability to use alternate SODIMM flash for backup u-boot image > -localbus config settings f

Re: [U-Boot] [PATCH 2/2] eXMeritus HWW-1U-1A: Minor environment variable tweaks

2012-01-13 Thread Kumar Gala
On Dec 15, 2011, at 9:26 PM, Kyle Moffett wrote: > Most of the ethernet connections are internal links with specialized > hardware and are not useful for "dhcp" or general-purpose networking; > U-Boot should not be cycling through them. Force the primary external > network interface in "ethprime

  1   2   >