[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 s...@chromium.org --- board/nvidia/dts/tegra2-seaboard.dts | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/board/nvidia/dts/tegra2

[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 s...@chromium.org --- 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

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 s...@chromium.org wrote: Hi Wolfgang, On Fri, Jan 13, 2012 at 1:25 PM, Wolfgang Denk w...@denx.de wrote: Dear Simon Glass, In message CAPnjgZ1=1+xjHoAbJd4WETjC6Bj+6NPgGsXbStoGadieznF1=q...@mail.gmail.com you wrote

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 swar...@nvidia.com 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

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

2012-01-13 Thread Simon Glass
' parameter to cmd_process() - Rationalise return codes to 0, 1 and usage - Make cmd_process() return only success (0) or failure (1) Simon Glass (9): Remove CMD_PXE's static on run_command() Rename run_command() to builtin_run_command() Rename run_command2() to run_command() Stop using

[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 s...@chromium.org --- common/hush.c | 24 +++- 1 files changed, 11 insertions(+), 13 deletions(-) diff --git a/common/hush.c

[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 s...@chromium.org --- Changes in v4: - Minor comment

[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 s...@chromium.org --- common/command.c | 21 + common/hush.c |9 +++-- common/main.c |3 +-- include/command.h |5 + 4 files changed

[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 s...@chromium.org --- arch/arm/cpu/arm926ejs/kirkwood/cpu.c |7 + board/esd/common/auto_update.c|2 +- board/esd/common

[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 s...@chromium.org --- 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

[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 s

[U-Boot] [PATCH 0/17] tegra: Add display driver and LCD support for Seaboard

2012-01-14 Thread Simon Glass
output considerably, particularly commands like 'printenv' which display a lot of output. This requires a new CONFIG and a change to the console_scrollup() function. Mayuresh Kulkarni (1): tegra: Enable display/lcd support on Seaboard Simon Glass (15): fdt: Add function to look up a phandle's

[U-Boot] [PATCH 01/17] fdt: Add function to look up a phandle's register address

2012-01-14 Thread Simon Glass
This is a commonly-used requirement, so add a function to support it easily. Signed-off-by: Simon Glass s...@chromium.org --- include/fdtdec.h | 13 + lib/fdtdec.c | 11 +++ 2 files changed, 24 insertions(+), 0 deletions(-) diff --git a/include/fdtdec.h b/include

[U-Boot] [PATCH 05/17] tegra: fdt: Add LCD definitions for Tegra

2012-01-14 Thread Simon Glass
Add LCD definitions and also a proposed binding for LCD displays. The PWFM is in progress on the device-tree-discuss list, so only a very basic binding is offered here. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/dts/tegra20.dtsi | 25 ++ doc/device

[U-Boot] [PATCH 11/17] lcd: Add CONFIG_ALIGN_LCD_TO_SECTION to align lcd for MMU

2012-01-14 Thread Simon Glass
feature set by the MMU's system.h header. Signed-off-by: Simon Glass s...@chromium.org --- README| 10 ++ common/lcd.c | 25 - include/lcd.h |3 +++ 3 files changed, 33 insertions(+), 5 deletions(-) diff --git a/README b/README index 7adf7c7..d0b891f

[U-Boot] [PATCH 06/17] tegra: Add support for PWFM

2012-01-14 Thread Simon Glass
The pulse width/frequency modulation peripheral supports generating a repeating pulse. It is useful for controlling LCD brightness. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/cpu/armv7/tegra2/Makefile |1 + arch/arm/cpu/armv7/tegra2/pwfm.c| 40

[U-Boot] [PATCH 14/17] tegra: Support control of cache settings for LCD

2012-01-14 Thread Simon Glass
Add support for selecting the required cache mode for the LCD: off, write-through or write-back. Signed-off-by: Simon Glass s...@chromium.org --- drivers/video/tegra.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/video/tegra.c b/drivers/video/tegra.c

[U-Boot] [PATCH 12/17] lcd: Add support for flushing LCD fb from dcache after update

2012-01-14 Thread Simon Glass
This provides an option for the LCD to flush the dcache after each update (puts, scroll or clear). Signed-off-by: Simon Glass s...@chromium.org --- common/cmd_echo.c |3 ++- common/lcd.c | 44 +--- include/lcd.h |8 3 files

[U-Boot] [PATCH 03/17] fdt: Correct GPIO name access in fdtdec

2012-01-14 Thread Simon Glass
This was missing an fdt32_to_cpu() call so got the name pointer wrong. If the GPIO module looks at it, this would cause a problem. Signed-off-by: Simon Glass s...@chromium.org --- lib/fdtdec.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lib/fdtdec.c b/lib/fdtdec.c

[U-Boot] [PATCH 09/17] tegra: Add LCD support to Nvidia boards

2012-01-14 Thread Simon Glass
Add calls to the LCD driver from Nvidia board code. Signed-off-by: Simon Glass s...@chromium.org --- board/nvidia/common/board.c | 21 - 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index 04990bf

[U-Boot] [PATCH 16/17] lcd: Add CONSOLE_SCROLL_LINES option to speed console

2012-01-14 Thread Simon Glass
-by: Simon Glass s...@chromium.org --- README |6 ++ common/lcd.c | 16 +--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/README b/README index d0b891f..c2f6699 100644 --- a/README +++ b/README @@ -1389,6 +1389,12 @@ The following options need

[U-Boot] [PATCH 08/17] tegra: Add LCD driver

2012-01-14 Thread Simon Glass
This driver supports driving a single LCD and providing a U-Boot console on it. Signed-off-by: Simon Glass s...@chromium.org --- drivers/video/Makefile |1 + drivers/video/tegra.c | 379 include/fdtdec.h |1 + lib/fdtdec.c

[U-Boot] [PATCH 15/17] tegra: fdt: Add LCD definitions for Seaboard

2012-01-14 Thread Simon Glass
The Seaboard has a 1366x768 16bpp LCD. The backlight is controlled by one of the PWMs. Signed-off-by: Simon Glass s...@chromium.org --- board/nvidia/dts/tegra2-seaboard.dts | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/board/nvidia/dts/tegra2

[U-Boot] [PATCH 07/17] tegra: Add SOC support for display/lcd

2012-01-14 Thread Simon Glass
From: Wei Ni w...@nvidia.com Add support for the LCD peripheral at the Tegra2 SOC level. A separate LCD driver will use this functionality to configure the display. Mayuresh Kulkarni: - changes to remove bitfields and clean up for submission Simon Glass: - simplify code, move clock control

[U-Boot] [PATCH 02/17] fdt: Add header guard to fdtdec.h

2012-01-14 Thread Simon Glass
This makes it easier to include this header from other headers. Signed-off-by: Simon Glass s...@chromium.org --- include/fdtdec.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/include/fdtdec.h b/include/fdtdec.h index 81ce3f6..f60c969 100644 --- a/include/fdtdec.h

[U-Boot] [PATCH 13/17] tegra: Align LCD frame buffer to section boundary

2012-01-14 Thread Simon Glass
For tegra we want to enable the cache for the LCD. This is easier if we can avoid using L2 page tages, so align the LCD to a section boundary. Signed-off-by: Simon Glass s...@chromium.org --- include/configs/tegra2-common.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

[U-Boot] [PATCH 10/17] arm: Add control over cachability of memory regions

2012-01-14 Thread Simon Glass
buffer write-through (or off) rather than write-back. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/cpu/armv7/cache_v7.c | 11 +++ arch/arm/include/asm/system.h | 30 arch/arm/lib/cache-cp15.c | 62 +--- 3 files changed

[U-Boot] [PATCH 04/17] tegra: Add display support to funcmux

2012-01-14 Thread Simon Glass
Add support for a default pin mapping for display1. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/cpu/armv7/tegra2/funcmux.c | 39 +++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/armv7/tegra2/funcmux.c b/arch/arm/cpu

[U-Boot] [PATCH 17/17] tegra: Enable display/lcd support on Seaboard

2012-01-14 Thread Simon Glass
From: Mayuresh Kulkarni mkulka...@nvidia.com Enable the Seaboard's 16bpp LCD and use it as the console. Signed-off-by: Mayuresh Kulkarni mkulka...@nvidia.com Signed-off-by: Simon Glass s...@chromium.org --- include/configs/seaboard.h | 12 ++-- 1 files changed, 10 insertions(+), 2

Re: [U-Boot] [RFC PATCH v2 13/15] bootstage: Add microsecond boot time measurement

2012-01-14 Thread Simon Glass
Hi Mike, On Sat, Jan 14, 2012 at 5:09 PM, Mike Frysinger vap...@gentoo.org wrote: On Thursday 12 January 2012 00:41:24 Simon Glass wrote: On Mon, Jan 9, 2012 at 9:33 AM, Mike Frysinger wrote: On Sunday 08 January 2012 12:42:02 Simon Glass wrote: On Sun, Jan 8, 2012 at 12:35 AM, Mike

Re: [U-Boot] [PATCH v4] Add 'patman' patch generation, checking and submission script

2012-01-14 Thread Simon Glass
Hi, Hmmm patman found a tag in this commit and tried to send it to Fred Bloggs. I have added the line below - sorry for the confusion. On Sat, Jan 14, 2012 at 5:12 PM, Simon Glass s...@chromium.org wrote: What is this? = This tool is a Python script which: - Creates patch

[U-Boot] [PATCH v3 0/15] bootstage: record and publish boot progress timing

2012-01-14 Thread Simon Glass
BOOTSTAGE_ID_START to 0 explicitly - Update commit message to clarify the purpose of CONFIG_BOOTSTAGE_REPORT Simon Glass (15): bootstage: Create an initial header for boot progress integers bootstage: Make use of BOOTSTAGE_ID_RUN_OS in show_boot_progress() bootstage: Use show_boot_error() for -ve

[U-Boot] [PATCH v3 01/15] bootstage: Create an initial header for boot progress integers

2012-01-14 Thread Simon Glass
to remove the explict numbers and just have the stages count up from 0. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Adjust show_boot_progress() comment - Fix 'progres' typo - Move file comment above copyright message include/bootstage.h | 58

[U-Boot] [PATCH v3 02/15] bootstage: Make use of BOOTSTAGE_ID_RUN_OS in show_boot_progress()

2012-01-14 Thread Simon Glass
This changes the number 15 as used in boot_stage_progress() to use the new name provided for it. This is a separate patch because it touches so many files. Signed-off-by: Simon Glass s...@chromium.org Acked-by: Mike Frysinger vap...@gentoo.org --- arch/arm/lib/bootm.c|2

[U-Boot] [PATCH v3 03/15] bootstage: Use show_boot_error() for -ve progress numbers

2012-01-14 Thread Simon Glass
Rather than the caller negating our progress numbers to indicate an error has occurred, which seems hacky, add a function to indicate this. Signed-off-by: Simon Glass s...@chromium.org Acked-by: Mike Frysinger vap...@gentoo.org --- arch/powerpc/lib/board.c |2 +- arch/sparc/lib/board.c

[U-Boot] [PATCH v3 08/15] bootstage: Convert NAND progress numbers to enums

2012-01-14 Thread Simon Glass
This changes over the NAND progress numbers to use enums from bootstage.h. Signed-off-by: Simon Glass s...@chromium.org --- common/cmd_nand.c | 34 +- include/bootstage.h | 15 +++ 2 files changed, 32 insertions(+), 17 deletions(-) diff --git

[U-Boot] [PATCH v3 07/15] bootstage: Convert IDE progress numbers to enums

2012-01-14 Thread Simon Glass
This changes over the IDE progress numbers to use enums from bootstage.h. Signed-off-by: Simon Glass s...@chromium.org --- common/cmd_ide.c| 46 +++--- include/bootstage.h | 14 ++ 2 files changed, 37 insertions(+), 23 deletions

[U-Boot] [PATCH v3 05/15] bootstage: Convert progress numbers 10-19 to enums

2012-01-14 Thread Simon Glass
Signed-off-by: Simon Glass s...@chromium.org Acked-by: Mike Frysinger vap...@gentoo.org --- board/bf533-stamp/bf533-stamp.c | 10 +- board/matrix_vision/mvbc_p/mvbc_p.c |2 +- common/image.c | 20 ++-- include/bootstage.h

[U-Boot] [PATCH v3 06/15] bootstage: Convert progress numbers 20-41 to enums

2012-01-14 Thread Simon Glass
Signed-off-by: Simon Glass s...@chromium.org --- arch/powerpc/lib/board.c |2 +- arch/sparc/lib/board.c|2 +- arch/x86/lib/board.c | 18 +- board/hermes/hermes.c |4 +++- board/pcs440ep/pcs440ep.c |3 ++- include/bootstage.h | 25

[U-Boot] [PATCH v3 04/15] bootstage: Convert progress numbers 1-9 into enums

2012-01-14 Thread Simon Glass
Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Set BOOTSTAGE_ID_START to 0 explicitly board/bf533-stamp/bf533-stamp.c| 18 +++--- board/hermes/hermes.c |2 +- board/ivm/ivm.c|2 +- board/matrix_vision/common

[U-Boot] [PATCH v3 09/15] bootstage: Convert net progress numbers to enums

2012-01-14 Thread Simon Glass
This changes over the network-related progress numbers to use enums from bootstage.h. Signed-off-by: Simon Glass s...@chromium.org --- board/Seagate/dockstar/dockstar.c |2 +- board/matrix_vision/mvbc_p/mvbc_p.c |2 +- board/pcs440ep/pcs440ep.c | 24

[U-Boot] [PATCH v3 13/15] bootstage: Implement core microsecond boot time measurement

2012-01-14 Thread Simon Glass
id=108 7,089,000996,000 id=7 7,089,000 0 id=15 7,089,000 0 id=8 7,097,000 8,000 start_kernel Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Fix code style in bootstage_mark_name() - Make main bootstage commit title more explicit README

[U-Boot] [PATCH v3 15/15] bootstage: arm: Add bootstage calls in board and bootm

2012-01-14 Thread Simon Glass
-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Unify show_boot_progress() into this series Changes in v3: - Update commit message to clarify the purpose of CONFIG_BOOTSTAGE_REPORT arch/arm/lib/board.c |3 +++ arch/arm/lib/bootm.c |4 2 files changed, 7 insertions(+), 0

[U-Boot] [PATCH v3 14/15] bootstage: Plumb in bootstage calls for basic operations

2012-01-14 Thread Simon Glass
This inserts bootstage calls into tftp, usb start and bootm. We could go further, but this is a reasonable start to illustrate the concept. Signed-off-by: Simon Glass s...@chromium.org --- common/cmd_bootm.c |2 ++ common/cmd_net.c |7 ++- common/cmd_usb.c |1 + net/bootp.c

[U-Boot] [PATCH v3 11/15] timer: add microsecond boot func

2012-01-14 Thread Simon Glass
then we had better not be timing the boot. There is some scope to join bootstage and post, but for now they are separate things with separate CONFIGs, and you don't have to enable one to get the other. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Rename timer patch to remove

[U-Boot] [PATCH v3 12/15] bootstage: Replace show_boot_progress/error() with bootstage_...()

2012-01-14 Thread Simon Glass
These calls should not be made directly any more, since bootstage will call the show_boot_...() functions as needed. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/lib/bootm.c |2 +- arch/avr32/lib/bootm.c |2 +- arch/m68k/lib/bootm.c

[U-Boot] [PATCH v3 10/15] bootstage: Convert FIT progress numbers to enums

2012-01-14 Thread Simon Glass
This changes over all the FIT image progress numbers to use enums from bootstage.h. Signed-off-by: Simon Glass s...@chromium.org --- common/cmd_bootm.c | 44 ++-- common/image.c | 36 include/bootstage.h

Re: [U-Boot] [RFC PATCH v2 13/15] bootstage: Add microsecond boot time measurement

2012-01-14 Thread Simon Glass
Hi Mike, On Sat, Jan 14, 2012 at 5:22 PM, Mike Frysinger vap...@gentoo.org wrote: On Saturday 14 January 2012 20:16:35 Simon Glass wrote: On Sat, Jan 14, 2012 at 5:09 PM, Mike Frysinger wrote: On Thursday 12 January 2012 00:41:24 Simon Glass wrote: Still don't quite get it though

Re: [U-Boot] [PATCH 12/17] lcd: Add support for flushing LCD fb from dcache after update

2012-01-14 Thread Simon Glass
Hi Mike, On Sat, Jan 14, 2012 at 5:42 PM, Mike Frysinger vap...@gentoo.org wrote: On Saturday 14 January 2012 19:47:24 Simon Glass wrote: --- a/common/cmd_echo.c +++ b/common/cmd_echo.c @@ -44,8 +44,9 @@ int do_echo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv

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

2012-01-14 Thread Simon Glass
Hi Mike, On Sat, Jan 14, 2012 at 8:03 PM, Mike Frysinger vap...@gentoo.org wrote: On Friday 13 January 2012 18:10:55 Simon Glass wrote: From: Jim Lin ji...@nvidia.com A device tree is used to configure the NAND, including memory timings and block/pages sizes. If this node is not present

Re: [U-Boot] [PATCH v2 7/8] sandbox: Add flags for open() call

2012-01-14 Thread Simon Glass
Hi Mike, On Sat, Jan 14, 2012 at 8:19 PM, Mike Frysinger vap...@gentoo.org wrote: On Tuesday 10 January 2012 19:45:51 Simon Glass wrote: This provides a way for callers to create files for writing. We define flags which mirror the POSIX values. Another approach would be to translate

Re: [U-Boot] [PATCH v2 7/8] sandbox: Add flags for open() call

2012-01-14 Thread Simon Glass
Hi Mike, On Sat, Jan 14, 2012 at 8:44 PM, Mike Frysinger vap...@gentoo.org wrote: On Saturday 14 January 2012 23:36:40 Simon Glass wrote: On Sat, Jan 14, 2012 at 8:19 PM, Mike Frysinger wrote: On Tuesday 10 January 2012 19:45:51 Simon Glass wrote: +enum { +     OS_O_RDONLY

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

2012-01-16 Thread Simon Glass
to reduce code size - Use memset, memcpy instead of inline code Changes in v3: - Rebase to master - Remove the 'reloc' tag from each commit Simon Glass (6): Create reloc.h and include it where needed define CONFIG_SYS_SKIP_RELOC for all archs Add generic relocation feature arm: Add processor

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

2012-01-16 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 arch

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

2012-01-16 Thread Simon Glass
, but since we are only dealing with relocation in this series, CONFIG_SYS_SKIP_RELOC is more appropriate than CONFIG_SYS_LEGACY_BOARD. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Use CONFIG_SYS_SKIP_RELOC instead of CONFIG_SYS_LEGACY_BOARD README|4

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

2012-01-16 Thread Simon Glass
-by: Simon Glass s...@chromium.org --- Changes in v2: - Add README file for relocation - Add function comments - Import asm-generic/sections.h from Linux and add U-Boot extras - Move reloc.c into common/ - Squash generic link symbols patch into generic relocation patch - Use memset, memcpy instead

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

2012-01-16 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 + arch/arm/lib

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

2012-01-16 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] [RFC PATCH v2 0/28] Create generic board init for ARM, x86, PPC

2012-01-16 Thread Simon Glass
Hi, On Fri, Jan 6, 2012 at 4:24 PM, Simon Glass s...@chromium.org wrote: This series creates a generic board.c implementation which contains the essential functions of the major arch/xxx/lib/board.c files. I haven't had huge numbers of comments on this series, but there are a few. I plan

[U-Boot] [PATCH v3 0/9] tegra: Enable keyboard with matrix keyboard driver

2012-01-16 Thread Simon Glass
: Add tegra keyboard driver Simon Glass (5): input: Add linux/input.h for key code support input: Add generic keyboard input handler tegra: Add keyboard support to funcmux tegra: Switch on console mux and use environment for console tegra: Enable keyboard for Seaboard arch/arm/cpu/armv7

[U-Boot] [PATCH v3 4/9] tegra: Add keyboard support to funcmux

2012-01-16 Thread Simon Glass
Add funcmux support for the default keyboard mapping. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Use funcmux to set up keyboard pinmux arch/arm/cpu/armv7/tegra2/funcmux.c | 16 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu

[U-Boot] [PATCH v3 8/9] tegra: Switch on console mux and use environment for console

2012-01-16 Thread Simon Glass
All tegra boards will use these options by default. Signed-off-by: Simon Glass s...@chromium.org --- include/configs/tegra2-common.h |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/include/configs/tegra2-common.h b/include/configs/tegra2-common.h index 6c38f51

[U-Boot] [PATCH v3 5/9] tegra: fdt: Add keyboard controller definition

2012-01-16 Thread Simon Glass
From: Anton Staff robot...@chromium.org The Tegra keyboard controller provides a simple interface to a matrix keyboard. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/dts/tegra20.dtsi |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/tegra20

[U-Boot] [PATCH v3 2/9] input: Add linux/input.h for key code support

2012-01-16 Thread Simon Glass
We want to able to decode Linux fdt keymaps, so bring part of this enormous header file over to U-Boot. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Bring in linux/input.h header file in new patch include/linux/input.h | 155

[U-Boot] [PATCH v3 9/9] tegra: Enable keyboard for Seaboard

2012-01-16 Thread Simon Glass
This enables the standard keyboard on Seaboard. Signed-off-by: Simon Glass s...@chromium.org --- 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 b31ac0c..d2d0115 100644

[U-Boot] [PATCH v3 1/9] fdt: Add fdtdec functions to read byte array

2012-01-16 Thread Simon Glass
From: Anton Staff robot...@chromium.org Sometimes we don't need a full cell for each value. This provides a simple function to read a byte array, both with and without copying it. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Use correct name for get_prop_check_min_len

[U-Boot] [PATCH v3 6/9] tegra: fdt: Add keyboard definitions for Seaboard

2012-01-16 Thread Simon Glass
From: Anton Staff robot...@chromium.org Seaboard uses a QUERTY keyboard. We add key codes for this to enable key scanning to work. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Remove status = okay since this is the default anyway Changes in v3: - Move to new Linux device

[U-Boot] [PATCH v3 3/9] input: Add generic keyboard input handler

2012-01-16 Thread Simon Glass
such mapping is required. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Add new patch for generic keyboard input handler drivers/input/Makefile |1 + drivers/input/input.c | 410 include/input.h| 140

[U-Boot] [PATCH v3 7/9] tegra: Add tegra keyboard driver

2012-01-16 Thread Simon Glass
will be picked up when the keyboard driver is initialized. Modified by Simon Glass s...@chromium.org for device tree, input layer and various other things. Signed-off-by: Simon Glass s...@chromium.org --- Changes in v3: - Adjust decode logic to work with new Linux fdt keyboard binding - Use new

Re: [U-Boot] [PATCH v3 1/9] fdt: Add fdtdec functions to read byte array

2012-01-16 Thread Simon Glass
Hi Mike, On Mon, Jan 16, 2012 at 10:30 PM, Mike Frysinger vap...@gentoo.org wrote: On Tuesday 17 January 2012 01:11:14 Simon Glass wrote: From: Anton Staff robot...@chromium.org Sometimes we don't need a full cell for each value. This provides a simple function to read a byte array, both

[U-Boot] [PATCH 0/3] Bring in new I2C framework

2012-01-16 Thread Simon Glass
multibus support i2c: common changes for multibus/multiadapter support Simon Glass (1): WIP: tegra: i2c: Enable new I2C framework README| 82 +++- arch/arm/include/asm/global_data.h|3 + arch/arm/lib/board.c |3 +- arch

[U-Boot] [PATCH 2/3] i2c: common changes for multibus/multiadapter support

2012-01-16 Thread Simon Glass
From: Heiko Schocher h...@denx.de Signed-off-by: Heiko Schocher h...@denx.de Signed-off-by: Simon Glass s...@chromium.org --- README | 82 - arch/arm/lib/board.c|3 +- arch/blackfin/lib/board.c |7 ++ arch/m68k/lib

[U-Boot] [PATCH 1/3] i2c: add i2c_core and prepare for new multibus support

2012-01-16 Thread Simon Glass
with the CONFIG_SYS_I2C define. Signed-off-by: Heiko Schocher h...@denx.de Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/include/asm/global_data.h|3 + arch/avr32/include/asm/global_data.h |3 + arch/blackfin/include/asm/global_data.h |4 +- arch/m68k/include/asm/global_data.h

[U-Boot] [PATCH 3/3] WIP: tegra: i2c: Enable new I2C framework

2012-01-16 Thread Simon Glass
This is just a rough patch to show how this might be done. Not to be applied, please. Signed-off-by: Simon Glass s...@chromium.org --- drivers/i2c/tegra2_i2c.c | 53 +++ include/configs/seaboard.h |2 + 2 files changed, 25 insertions(+), 30

Re: [U-Boot] [PATCH v2 0/9] Unified command execution in one place

2012-01-17 Thread Simon Glass
Hi Stefan, On Wed, Jan 11, 2012 at 11:43 PM, Stefan Roese s...@denx.de wrote: On Saturday 10 December 2011 19:43:52 Simon Glass wrote: 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

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

2012-01-17 Thread Simon Glass
Hi Stephen, On Fri, Jan 13, 2012 at 1:49 PM, Stephen Warren swar...@nvidia.com wrote: 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

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

2012-01-17 Thread Simon Glass
Hi Stephen, On Fri, Jan 13, 2012 at 1:41 PM, Stephen Warren swar...@nvidia.com wrote: 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

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

2012-01-17 Thread Simon Glass
implementation) - Use COMPAT_UNKNOWN instead of COMPAT_NVIDIA_TEGRA20_I2C for test Simon Glass (2): fdt: Add fdtdec_find_aliases() to deal with alias nodes fdt: Add tests for fdtdec include/fdtdec.h | 47 +++ lib/Makefile |1 + lib/fdtdec.c | 116 +++ lib

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

2012-01-17 Thread Simon Glass
in U-Boot). This is considerably more complex, and it is important to keep this complexity out of driver code. This patch creates a function fdtdec_find_aliases() which returns an ordered list of node offsets for a particular compatible ID, taking account of alias nodes. Signed-off-by: Simon Glass s

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

2012-01-17 Thread Simon Glass
is applied) Signed-off-by: Simon Glass s...@chromium.org --- Changes in v2: - Add test_fdtdec command to test fdtdec_find_aliases_for_id() Changes in v3: - Change fdtdec-test.c to fdtdec_test.c to fit better with U-Boot conventions - Remove varargs declaration (hang-over from previous implementation

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

2012-01-18 Thread Simon Glass
[+TI maintainers, tx25 board maintainer] Hi Albert, On Tue, Jan 17, 2012 at 11:28 PM, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Hi Simon, Le 26/12/2011 19:24, Simon Glass a écrit : (I am resending this rebased so I can continue with this board-unification work and allow people

Re: [U-Boot] [PATCH 1/3] i2c: add i2c_core and prepare for new multibus support

2012-01-18 Thread Simon Glass
Hi Tabi, On Wed, Jan 18, 2012 at 12:11 PM, Tabi Timur-B04825 b04...@freescale.com wrote: On Tue, Jan 17, 2012 at 1:12 AM, Simon Glass s...@chromium.org wrote: From: Heiko Schocher h...@denx.de This Patch introduce the new i2c_core file, which holds the I2C core functions, for the rework

Re: [U-Boot] [PATCH 1/3] i2c: add i2c_core and prepare for new multibus support

2012-01-18 Thread Simon Glass
Hi Timur, On Wed, Jan 18, 2012 at 1:39 PM, Timur Tabi ti...@freescale.com wrote: Simon Glass wrote: I agree completely, it was one of the things I was going to ask for. We should add a new parameter to calls instead IMO. I would be in favor of a patch that replaces all of the I2C calls

Re: [U-Boot] [PATCH v4 10/20] tegra: fdt: Add additional USB binding

2012-01-18 Thread Simon Glass
Hi Olof, On Wed, Jan 18, 2012 at 9:35 PM, Olof Johansson o...@lixom.net wrote: On Wed, Jan 18, 2012 at 03:48:30PM -0700, Stephen Warren wrote: On 01/11/2012 09:32 PM, Simon Glass wrote: This adds a property to indicate a port which can switch between host and device mode. Signed-off

Re: [U-Boot] [PATCH 1/3] i2c: add i2c_core and prepare for new multibus support

2012-01-18 Thread Simon Glass
Hi Heiko, On Wed, Jan 18, 2012 at 10:35 PM, Heiko Schocher h...@denx.de wrote: Hello Wolfgang, Timur, Simon, Wolfgang Denk wrote: Dear Simon Glass, In message capnjgz2klpfmzzwghkdj4el+wixqlv89+cvdvp7pccy+xfa...@mail.gmail.com you wrote: I was really hoping we could get rid

Re: [U-Boot] [PATCH v4 10/20] tegra: fdt: Add additional USB binding

2012-01-18 Thread Simon Glass
Hi Olof, On Wed, Jan 18, 2012 at 10:41 PM, Olof Johansson o...@lixom.net wrote: Hi, On Wed, Jan 18, 2012 at 9:55 PM, Simon Glass s...@chromium.org wrote: fsl-usb.txt uses dr_mode here, which might make sense to reuse given some of the shared IP in question for device mode:  - dr_mode

Re: [U-Boot] [PATCH 1/3] i2c: add i2c_core and prepare for new multibus support

2012-01-19 Thread Simon Glass
Hi Heiko, On Wed, Jan 18, 2012 at 11:53 PM, Heiko Schocher h...@denx.de wrote: Hello Simon, Simon Glass wrote: Hi Heiko, On Wed, Jan 18, 2012 at 10:35 PM, Heiko Schocher h...@denx.de wrote: Hello Wolfgang, Timur, Simon, Wolfgang Denk wrote: Dear Simon Glass, In message

Re: [U-Boot] [PATCH 1/3] i2c: add i2c_core and prepare for new multibus support

2012-01-19 Thread Simon Glass
Hi Wolfgang, On Thu, Jan 19, 2012 at 3:20 AM, Wolfgang Denk w...@denx.de wrote: Dear Simon Glass, In message capnjgz1royguaascoqiw8poqkzvp5rim7kj6zzhlnpwubyk...@mail.gmail.com you wrote: Perhaps reword this slightly. U-Boot can have knowledge of a current adaptor, mux settings and so

Re: [U-Boot] [PATCH v2 2/7] fdt: Add function to allow aliases to refer to multiple nodes

2012-01-19 Thread Simon Glass
Hi Stephen, On Thu, Jan 19, 2012 at 12:49 PM, Stephen Warren swar...@nvidia.com wrote: On 01/12/2012 12:00 PM, Simon Glass wrote: Some devices can deal with multiple compatible properties. The devices need to know which nodes to bind to which features. For example an I2C driver which supports

Re: [U-Boot] [PATCH v4 06/20] tegra: fdt: Add Tegra2x device tree file from kernel

2012-01-19 Thread Simon Glass
Hi Stephen, On Wed, Jan 18, 2012 at 2:24 PM, Stephen Warren swar...@nvidia.com wrote: On 01/11/2012 09:32 PM, Simon Glass wrote: This was taken from commit b48c54e2 at: git://git.kernel.org/pub/scm/linux/kernel/git/olof/tegra.git config.mk is updated to provide this file to boards through

Re: [U-Boot] [PATCH v4 08/20] fdt: Add staging area for device tree binding documentation

2012-01-19 Thread Simon Glass
Hi Stephen, On Wed, Jan 18, 2012 at 2:30 PM, Stephen Warren swar...@nvidia.com wrote: On 01/11/2012 09:32 PM, Simon Glass wrote: Add a directory to hold device tree binding files, to permit easy review of this material in U-Boot patches. Signed-off-by: Simon Glass s...@chromium.org diff

Re: [U-Boot] [PATCH v4 17/20] tegra: usb: Add USB support to nvidia boards

2012-01-19 Thread Simon Glass
Hi Stephen, On Wed, Jan 18, 2012 at 4:30 PM, Stephen Warren swar...@nvidia.com wrote: On 01/11/2012 09:33 PM, Simon Glass wrote: This adds basic USB support for port 0. The other port is not supported yet. diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c +#ifdef

Re: [U-Boot] [PATCH v4 12/20] tegra: usb: fdt: Add additional device tree definitions for USB ports

2012-01-19 Thread Simon Glass
Hi Stephen, On Wed, Jan 18, 2012 at 4:19 PM, Stephen Warren swar...@nvidia.com wrote: On 01/11/2012 09:33 PM, Simon Glass wrote: This adds clock references to the USB part of the device tree for U-Boot. The USB timing information may vary between boards sometimes, but for now we hard-code

Re: [U-Boot] [PATCH v4 16/20] tegra: usb: Add support for Tegra USB peripheral

2012-01-19 Thread Simon Glass
Hi Stephen, On Wed, Jan 18, 2012 at 4:43 PM, Stephen Warren swar...@nvidia.com wrote: On 01/11/2012 09:33 PM, Simon Glass wrote: This adds basic support for the Tegra2 USB controller. Board files should call board_usb_init() to set things up. diff --git a/arch/arm/cpu/armv7/tegra2/usb.c b

Re: [U-Boot] [PATCH v4 10/20] tegra: fdt: Add additional USB binding

2012-01-19 Thread Simon Glass
Hi, On Thu, Jan 19, 2012 at 9:33 AM, Stephen Warren swar...@nvidia.com wrote: Olof Johansson wrote at Thursday, January 19, 2012 12:13 AM: On Wed, Jan 18, 2012 at 10:59 PM, Simon Glass s...@chromium.org wrote: Hi Olof, On Wed, Jan 18, 2012 at 10:41 PM, Olof Johansson o...@lixom.net wrote

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

2012-01-19 Thread Simon Glass
Hi Stephen, On Thu, Jan 19, 2012 at 1:58 PM, Stephen Warren swar...@nvidia.com wrote: On 01/13/2012 02:35 PM, Simon Glass wrote: From: Jimmy Zhang jimmzh...@nvidia.com Add support for setting up the memory controller parameters. Boards can set up an appropriate table in the device tree

Re: [U-Boot] [PATCH v2 2/7] fdt: Add function to allow aliases to refer to multiple nodes

2012-01-19 Thread Simon Glass
Hi Stephen, On Thu, Jan 19, 2012 at 4:17 PM, Stephen Warren swar...@nvidia.com wrote: On 01/19/2012 04:45 PM, Simon Glass wrote: Hi Stephen, On Thu, Jan 19, 2012 at 12:49 PM, Stephen Warren swar...@nvidia.com wrote: On 01/12/2012 12:00 PM, Simon Glass wrote: Some devices can deal

Re: [U-Boot] [PATCH 01/28] net: Remove volatile from all of net except the eth driver interface

2012-01-20 Thread Simon Glass
Hi Joe, On Thu, Jan 19, 2012 at 4:53 PM, Joe Hershberger joe.hershber...@ni.com wrote: The mv_eth driver should not redefine the net function definition Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de ---  

Re: [U-Boot] [PATCH 02/28] net: cosmetic: checkpatch compliance

2012-01-20 Thread Simon Glass
Hi Joe, On Thu, Jan 19, 2012 at 4:53 PM, Joe Hershberger joe.hershber...@ni.com wrote: Signed-off-by: Joe Hershberger joe.hershber...@ni.com Cc: Joe Hershberger joe.hershber...@gmail.com Cc: Wolfgang Denk w...@denx.de ---  common/main.c            |    1 -  drivers/net/netconsole.c |  122

Re: [U-Boot] [PATCH] sandbox: add ifdef protection to os.h

2012-01-20 Thread Simon Glass
On Fri, Jan 20, 2012 at 11:07 AM, Mike Frysinger vap...@gentoo.org wrote: Signed-off-by: Mike Frysinger vap...@gentoo.org Acked-by: Simon Glass s...@chromium.org ---  include/os.h |    5 +  1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/os.h b/include/os.h index

<    1   2   3   4   5   6   7   8   9   10   >