Re: [U-Boot] testing u-boot on virtual environment

2011-12-23 Thread Simon Glass
Hi, On Fri, Dec 23, 2011 at 5:53 AM, Érico Porto ericoporto2...@gmail.com wrote: md 0 gives me in dmesg: [11753.433067] u-boot[4277]: segfault at 0 ip 0805283e sp bfb809f0 error 4 in u-boot[8048000+1a000] On 12/23/11, Érico Porto ericoporto2...@gmail.com wrote: Thanks! Tried to do some

Re: [U-Boot] [STATUS] -rc3 is out

2011-12-23 Thread Simon Glass
Hi Albert, On Fri, Dec 23, 2011 at 4:17 AM, Albert ARIBAUD albert.u.b...@aribaud.net wrote: Le 23/12/2011 12:30, Wolfgang Denk a écrit : Dear Albert ARIBAUD, In message4ef452c7.1010...@aribaud.net  you wrote: Tom Warren has requested a pull of u-boot-tegra/next into u-boot-arm/master,

Re: [U-Boot] [RFC 00/14] x86 touch-ups (Includes new init sequence!)

2011-12-25 Thread Simon Glass
Hi Graeme, On Sun, Dec 25, 2011 at 9:18 PM, Graeme Russ graeme.r...@gmail.com wrote: On 23/12/11 23:25, Graeme Russ wrote: [snip] So a quick overview of the new sequence and it's associated elegance (IMHO) (keep in mind this is x86 centric) - CPU boots and runs the reset vector code -

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

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

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

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

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

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

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

2011-12-26 Thread Simon Glass
to run I2C bus at (typically 10) CONFIG_I2Cx_PIN_MUX - pin mux setting for each port (P, 1, 2, 3) (typically this will be 0 to bring the port out the common pins) Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/include/asm/arch-tegra2/tegra2.h |4 + arch

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

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

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

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

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

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

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

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

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

2011-12-26 Thread Simon Glass
each commit - Rebase to master 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 function library arm: Move over to generic relocation arm: Remove unused code in start.S README

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

2011-12-26 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] [PATCH v3 4/6] arm: Add processor function library

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

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

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

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

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

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

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

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

2011-12-26 Thread Simon Glass
. Jimmy Zhang (4): tegra: Add EMC support for optimal memory timings tegra: Add PMU to manage power supplies tegra: Set vdd_core and vdd_cpu to high tegra: Add EMC settings for Seaboard, Harmony Simon Glass (5): tegra: Move ap20.h header into arch location tegra: Add tegra_get_chip_type

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

2011-12-26 Thread Simon Glass
-by: Simon Glass s...@chromium.org --- board/nvidia/common/board.c | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index fbdd260..cda2417 100644 --- a/board/nvidia/common/board.c +++ b/board/nvidia

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2011-12-26 Thread Simon Glass
as an option. Something to leave for later perhaps. Note 2: The actual logic of this function is not properly tested yet. Simon Glass (2): fdt: Add fdtdec_find_aliases() to deal with alias nodes tegra: Use fdtdec_find_aliases() to find USB ports arch/arm/cpu/armv7/tegra2/usb.c | 17

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

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

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

2011-12-26 Thread Simon Glass
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

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

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

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

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

[U-Boot] [RFC PATCH 0/19] Create generic board init and move ARM and x86 to it

2011-12-27 Thread Simon Glass
issues. Comments welcome. Note that the x86 side of this still needs a fair bit of work, sorry. Simon Glass (19): Introduce generic global_data Make relocation functions global Add basic initcall implementation define CONFIG_SYS_LEGACY_BOARD everywhere Add generic post-relocation

[U-Boot] [RFC PATCH 03/19] Add basic initcall implementation

2011-12-27 Thread Simon Glass
Signed-off-by: Simon Glass s...@chromium.org --- include/initcall.h | 25 + lib/Makefile |1 + lib/initcall.c | 41 + 3 files changed, 67 insertions(+), 0 deletions(-) create mode 100644 include/initcall.h create

[U-Boot] [RFC PATCH 02/19] Make relocation functions global

2011-12-27 Thread Simon Glass
We want to be able to call relocations functions from our new board code, so make them global and add to the header. Signed-off-by: Simon Glass s...@chromium.org --- common/reloc.c | 29 ++--- include/reloc.h | 16 2 files changed, 42 insertions

[U-Boot] [RFC PATCH 04/19] define CONFIG_SYS_LEGACY_BOARD everywhere

2011-12-27 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|5 + arch/arm/config.mk|3 +++ arch/avr32/config.mk |3

[U-Boot] [RFC PATCH 13/19] x86: Add processor library and relocation functions

2011-12-27 Thread Simon Glass
These are needed for generic relocation to function correctly. Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/include/asm/reloc.h | 32 arch/x86/lib/Makefile|1 + arch/x86/lib/proc.S | 67 ++ 3 files

[U-Boot] [RFC PATCH 01/19] Introduce generic global_data

2011-12-27 Thread Simon Glass
-by: Simon Glass s...@chromium.org --- include/asm-generic/global_data.h | 125 + 1 files changed, 125 insertions(+), 0 deletions(-) create mode 100644 include/asm-generic/global_data.h diff --git a/include/asm-generic/global_data.h b/include/asm-generic

[U-Boot] [RFC PATCH 07/19] Add spl load feature

2011-12-27 Thread Simon Glass
Signed-off-by: Simon Glass s...@chromium.org --- common/board_f.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/common/board_f.c b/common/board_f.c index f9eb4ca..06317ed 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -277,6 +277,7

[U-Boot] [RFC PATCH 05/19] Add generic post-relocation board_r.c

2011-12-27 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 --- board/freescale/p2020come/Makefile |4 + common/Makefile|6 +- common/board_r.c | 382

[U-Boot] [RFC PATCH 08/19] switch ARM over to generic board

2011-12-27 Thread Simon Glass
Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/config.mk |3 --- arch/arm/include/asm/global_data.h |8 arch/arm/lib/Makefile |2 ++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/arch/arm/config.mk b/arch/arm/config.mk

[U-Boot] [RFC PATCH 11/19] x86: Remove compiler warning in sc520_timer.c

2011-12-27 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] [RFC PATCH 10/19] Add CONFIG_SYS_SYM_OFFSETS to support offset symbols

2011-12-27 Thread Simon Glass
to unify this feature also. Signed-off-by: Simon Glass s...@chromium.org --- common/board_f.c |9 + common/reloc.c | 17 - include/asm-generic/sections.h | 11 +++ 3 files changed, 36 insertions(+), 1 deletions(-) diff --git

[U-Boot] [RFC PATCH 19/19] x86: Remove unused board/global_data code

2011-12-27 Thread Simon Glass
Now that x86 uses generic board, this code is not needed. Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/include/asm/global_data.h | 61 - arch/x86/lib/Makefile |2 - arch/x86/lib/board.c | 453 +--- 3 files changed

[U-Boot] [RFC PATCH 15/19] Add fields required by x86 to global_data

2011-12-27 Thread Simon Glass
These two fields are needed for x86. Signed-off-by: Simon Glass s...@chromium.org --- include/asm-generic/global_data.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index 16fee5a..99750a8 100644

[U-Boot] [RFC PATCH 18/19] Bring in x86 to unified board architecture

2011-12-27 Thread Simon Glass
Signed-off-by: Simon Glass s...@chromium.org --- arch/x86/config.mk |6 -- arch/x86/include/asm/global_data.h |6 ++ arch/x86/lib/Makefile |2 ++ common/board_r.c |3 +++ 4 files changed, 11 insertions(+), 6 deletions(-) diff

[U-Boot] [RFC PATCH 09/19] arm: Remove unused code in board.c, global_data.h

2011-12-27 Thread Simon Glass
Now that ARM uses the generic board, we don't need this code. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/include/asm/global_data.h | 81 - arch/arm/lib/Makefile |2 - arch/arm/lib/board.c | 622 +--- 3 files

[U-Boot] [RFC PATCH 14/19] Tidy up asm/generic sections.h to include x86 symbols

2011-12-27 Thread Simon Glass
Include some symbols used by x86 and other architectures, then move x86 over to using this header file. Signed-off-by: Simon Glass s...@chromium.org --- arch/arm/include/asm/u-boot-arm.h |4 arch/x86/include/asm/u-boot-x86.h |8 arch/x86/lib/board.c |1

[U-Boot] [RFC PATCH 17/19] x86: Add initial memory barrier macros

2011-12-27 Thread Simon Glass
These are available on other architecures, 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] [RFC PATCH 16/19] x86: Change stub example to use asm-generic/sections.h

2011-12-27 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 b

[U-Boot] [RFC PATCH 12/19] x86: Remove dead code in eNET

2011-12-27 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 +++ b

[U-Boot] [RFC PATCH 06/19] Add generic pre-relocation board_f.c

2011-12-27 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 --- board/freescale/p2020come/Makefile |2 + common/Makefile

Re: [U-Boot] [RFC PATCH 0/19] Create generic board init and move ARM and x86 to it

2011-12-28 Thread Simon Glass
Hi Wolfgang, On Wed, Dec 28, 2011 at 9:30 AM, Wolfgang Denk w...@denx.de wrote: Dear Simon, In message 1325054160-24894-1-git-send-email-...@chromium.org you wrote: This series creates a generic board.c implementation which contains the essential functions of the various arch/xxx/lib/board.c

Re: [U-Boot] [RFC 05/14] x86: Create weak init_cache() function

2011-12-28 Thread Simon Glass
Hi Graeme, On Fri, Dec 23, 2011 at 4:25 AM, Graeme Russ graeme.r...@gmail.com wrote: ---  arch/x86/cpu/cpu.c                |   16 +++-  arch/x86/include/asm/u-boot-x86.h |    2 ++  arch/x86/lib/board.c              |    3 +++  3 files changed, 16 insertions(+), 5 deletions(-)

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

2011-12-28 Thread Simon Glass
Hi Stephen, On Dec 28, 2011 10:40 PM, Stephen Warren swar...@nvidia.com wrote: Simon Glass wrote at Monday, December 26, 2011 10:15 PM: On Mon, Dec 26, 2011 at 8:35 PM, Stephen Warren swar...@nvidia.com wrote: Simon Glass wrote at Monday, December 26, 2011 11:12 AM: Add U-Boot's

Re: [U-Boot] [RFC PATCH 0/19] Create generic board init and move ARM and x86 to it

2011-12-30 Thread Simon Glass
*gd_ptr;       asm volatile(fs movl 0, %0\n : =r (gd_ptr));       return gd_ptr; } #define gd      get_fs_gd_ptr() On 28/12/11 17:35, Simon Glass wrote: This series creates a generic board.c implementation which contains the essential functions of the various arch/xxx/lib/board.c files

Re: [U-Boot] [RFC PATCH 0/19] Create generic board init and move ARM and x86 to it

2012-01-01 Thread Simon Glass
Hi Wolfgang, On Sat, Dec 31, 2011 at 5:54 PM, Wolfgang Denk w...@denx.de wrote: Dear Simon Glass, In message CAPnjgZ1Zim6=u3rlcnake-0bw3so_hry+u67jkpknoni8g7...@mail.gmail.com you wrote: Also it does depend on expectations. I would hope that moving an architecture over would be a fairly

Re: [U-Boot] [RFC PATCH 0/19] Create generic board init and move ARM and x86 to it

2012-01-01 Thread Simon Glass
Hi Graeme, On Sat, Dec 31, 2011 at 3:52 AM, Graeme Russ graeme.r...@gmail.com wrote: Hi Simon, On 31/12/11 13:02, Simon Glass wrote: Hi Graeme, On Fri, Dec 30, 2011 at 7:49 AM, Graeme Russ graeme.r...@gmail.com wrote: Hi Simon, [snip] However, I think this approach is not the right

Re: [U-Boot] [PATCH v3] Input: keyboard - add device tree bindings for simple key matrixes

2012-01-02 Thread Simon Glass
Hi Olof, On Sun, Jan 1, 2012 at 10:09 PM, Olof Johansson o...@lixom.net wrote: This adds a simple device tree binding for simple key matrix data and a helper to fill in the platform data. The implementation is in a shared file outside if drivers/input/keyboard since some drivers in

Re: [U-Boot] [RFC PATCH 0/19] Create generic board init and move ARM and x86 to it

2012-01-02 Thread Simon Glass
Hi Graham, On Mon, Jan 2, 2012 at 3:26 AM, Graeme Russ graeme.r...@gmail.com wrote: Hi Simon, In case you haven't noticed (I did not Cc you or Wolfgang, sorry 'bout that) I've posted the cleaned up version of my x86 init refactoring... Yes I see it - thats great thanks. I will go through it

Re: [U-Boot] [RFC PATCH 0/19] Create generic board init and move ARM and x86 to it

2012-01-02 Thread Simon Glass
Hi Wolfgang, On Mon, Jan 2, 2012 at 6:46 AM, Wolfgang Denk w...@denx.de wrote: Dear Graeme Russ, In message 4f019473.8000...@gmail.com you wrote: The problem is not one of how sparsely the test/fix cycles are spread over time, it is one of spreading the breakage over multiple patches - If

Re: [U-Boot] [RFC PATCH 0/19] Create generic board init and move ARM and x86 to it

2012-01-03 Thread Simon Glass
Hi Wolfgang, On Tue, Jan 3, 2012 at 12:12 AM, Wolfgang Denk w...@denx.de wrote: Dear Simon Glass, In message CAPnjgZ2jS8kzCt06LbYnXSyEKm6ck8apm=p1yqqdtnz0+q9...@mail.gmail.com you wrote: Well let's see how we go with the incremental approach - hopefully we can get the same result

Re: [U-Boot] initcall revisited - A new idea to discuss

2012-01-03 Thread Simon Glass
Hi Graham, On Tue, Jan 3, 2012 at 2:37 AM, Graeme Russ graeme.r...@gmail.com wrote: Hi Wolfgang, On 03/01/12 01:49, Wolfgang Denk wrote: Dear Graeme Russ, In message 4f019abb.9010...@gmail.com you wrote: Which got me to thinking, what if we had an initcall macro which included the

Re: [U-Boot] [PATCH v3] Input: keyboard - add device tree bindings for simple key matrixes

2012-01-03 Thread Simon Glass
Hi Olof, On Tue, Jan 3, 2012 at 7:43 AM, Olof Johansson o...@lixom.net wrote: Hi, On Mon, Jan 02, 2012 at 10:39:04AM -0800, Simon Glass wrote: diff --git a/Documentation/devicetree/bindings/input/matrix-keymap.txt b/Documentation/devicetree/bindings/input/matrix-keymap.txt new file mode

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

2012-01-03 Thread Simon Glass
Hi, On Sat, Dec 10, 2011 at 1:07 PM, Simon Glass s...@chromium.org wrote: This series creates a simple boot progress timing feature in U-Boot. Previous discussion on this is here: http://lists.denx.de/pipermail/u-boot/2011-May/thread.html#92584 A request was made to unify

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

2012-01-03 Thread Simon Glass
Hi, On Mon, Dec 26, 2011 at 2:31 PM, Simon Glass s...@chromium.org 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

Re: [U-Boot] initcall revisited - A new idea to discuss

2012-01-03 Thread Simon Glass
Hi Wolfgang, On Tue, Jan 3, 2012 at 2:36 PM, Wolfgang Denk w...@denx.de wrote: Dear Simon Glass, In message capnjgz3aoyvypa93ecbmyqhcaazcbphfcyhxyya1ax+9_ue...@mail.gmail.com you wrote: I have been thinking if there is a way we can avoid the post-processing perhaps by specifying two

Re: [U-Boot] [RFC PATCH 0/19] Create generic board init and move ARM and x86 to it

2012-01-03 Thread Simon Glass
Hi Wolfgang, On Tue, Jan 3, 2012 at 2:35 PM, Wolfgang Denk w...@denx.de wrote: Dear Simon Glass, In message CAPnjgZ3592m_m=tmafptwzo+_o94veykvrffdgpp599igef...@mail.gmail.com you wrote: I have brought in PPC to board_f.c and board_r.c but not dealt with relocation. Once I have done

Re: [U-Boot] [PATCH 01/17] x86: Import glibc memcpy implementation

2012-01-03 Thread Simon Glass
On Sun, Jan 1, 2012 at 8:09 PM, Graeme Russ graeme.r...@gmail.com wrote: Taken from glibc version 2.14.90 Signed-off-by: Graeme Russ graeme.r...@gmail.com Acked-by: Simon Glass s...@chromium.org ---  arch/x86/include/asm/string.h |    2 +-  arch/x86/lib/string.c         |   61

Re: [U-Boot] [PATCH 02/17] x86: Speed up copy-to-RAM and clear BSS operations

2012-01-03 Thread Simon Glass
Hi Graeme, On Sun, Jan 1, 2012 at 8:09 PM, Graeme Russ graeme.r...@gmail.com wrote: The implementations of memcpy and memset are now the optimised versions from glibc, so use them instead of simple copy loops Signed-off-by: Graeme Russ graeme.r...@gmail.com ---  arch/x86/lib/board.c |   17

Re: [U-Boot] [PATCH 03/17] x86: Remove GDR related magic numbers

2012-01-03 Thread Simon Glass
Hi Graeme, On Sun, Jan 1, 2012 at 8:09 PM, Graeme Russ graeme.r...@gmail.com wrote: Signed-off-by: Graeme Russ graeme.r...@gmail.com ---  arch/x86/cpu/start.S             |    3 ++-  arch/x86/include/asm/processor.h |    6 +-  2 files changed, 7 insertions(+), 2 deletions(-) diff

Re: [U-Boot] [PATCH 05/17] x86: Simplify Flash-to-RAM code execution transition

2012-01-03 Thread Simon Glass
Hi Graeme, On Sun, Jan 1, 2012 at 8:09 PM, Graeme Russ graeme.r...@gmail.com wrote: Signed-off-by: Graeme Russ graeme.r...@gmail.com Commit message? ---  arch/x86/cpu/start.S              |   20 +---  arch/x86/include/asm/u-boot-x86.h |    2 ++  arch/x86/lib/board.c        

Re: [U-Boot] [PATCH 06/17] x86: Rework relocation calcuations

2012-01-03 Thread Simon Glass
Hi Graeme, On Sun, Jan 1, 2012 at 8:09 PM, Graeme Russ graeme.r...@gmail.com wrote: Signed-off-by: Graeme Russ graeme.r...@gmail.com I think all of these patches should have a commit message. Anyway: Acked-by: Simon Glass s...@chromium.org Regards, Simon ---  arch/x86/lib/board.c |   23

Re: [U-Boot] [PATCH 07/17] x86: Use fs for global data

2012-01-03 Thread Simon Glass
Hi Graeme, On Sun, Jan 1, 2012 at 8:09 PM, Graeme Russ graeme.r...@gmail.com wrote: Use the base address of the 'F' segment as a pointer to the global data structure. By adding the linear address (i.e. the 'D' segment address) as the first word of the global data structure, the address of the

Re: [U-Boot] [PATCH 08/17] x86: Set GD_FLG_RELOC after entering in-RAM copy of U-Boot

2012-01-03 Thread Simon Glass
On Sun, Jan 1, 2012 at 8:09 PM, Graeme Russ graeme.r...@gmail.com wrote: Signed-off-by: Graeme Russ graeme.r...@gmail.com Acked-by: Simon Glass s...@chromium.org ---  arch/x86/lib/board.c |    4 ++--  1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/lib/board.c b

Re: [U-Boot] [PATCH 09/17] x86: Create weak init_cache() function

2012-01-03 Thread Simon Glass
Hi Graeme, On Sun, Jan 1, 2012 at 8:09 PM, Graeme Russ graeme.r...@gmail.com wrote: Signed-off-by: Graeme Russ graeme.r...@gmail.com ---  arch/x86/cpu/cpu.c                |   18 +++---  arch/x86/include/asm/u-boot-x86.h |    1 +  arch/x86/lib/board.c              |    1 +  3

Re: [U-Boot] [PATCH 10/17] x86: Allow cache before copy to RAM

2012-01-03 Thread Simon Glass
Hi Graeme, On Sun, Jan 1, 2012 at 8:09 PM, Graeme Russ graeme.r...@gmail.com wrote: Signed-off-by: Graeme Russ graeme.r...@gmail.com ---  arch/x86/lib/board.c |   15 ++-  1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/arch/x86/lib/board.c b/arch/x86/lib/board.c

Re: [U-Boot] [PATCH 11/17] CHECKPATCH: arch/x86/cpu/*

2012-01-03 Thread Simon Glass
Hi Graeme, On Sun, Jan 1, 2012 at 8:09 PM, Graeme Russ graeme.r...@gmail.com wrote: Signed-off-by: Graeme Russ graeme.r...@gmail.com Seems a bit more than just checkpatch. Acked-by: Simon Glass s...@chromium.org Regards, Simon ---  arch/x86/cpu/interrupts.c |    2 +-  arch/x86/cpu

Re: [U-Boot] [PATCH 12/17] CHECKPATCH: arch/x86/lib/*

2012-01-03 Thread Simon Glass
Hi Graeme, On Sun, Jan 1, 2012 at 8:09 PM, Graeme Russ graeme.r...@gmail.com wrote: Signed-off-by: Graeme Russ graeme.r...@gmail.com Acked-by: Simon Glass s...@chromium.org Thanks for the x86 assembler lesson :-) Regards, Simon ---  arch/x86/lib/bios.S            |  134

Re: [U-Boot] [PATCH 13/17] x86: Move do_go_exec() out of board.c

2012-01-03 Thread Simon Glass
On Sun, Jan 1, 2012 at 8:09 PM, Graeme Russ graeme.r...@gmail.com wrote: Signed-off-by: Graeme Russ graeme.r...@gmail.com Acked-by: Simon Glass s...@chromium.org ---  arch/x86/lib/Makefile   |    1 +  arch/x86/lib/board.c    |   27 ---  arch/x86/lib/cmd_boot.c |   64

Re: [U-Boot] [PATCH 14/17] x86: Move setup_pcat_compatibility() out of board.c

2012-01-03 Thread Simon Glass
Hi Graeme, On Sun, Jan 1, 2012 at 8:09 PM, Graeme Russ graeme.r...@gmail.com wrote: Signed-off-by: Graeme Russ graeme.r...@gmail.com Perhaps mention why? Anyway: Acked-by: Simon Glass s...@chromium.org Regards, Simon ---  arch/x86/lib/board.c  |    7 ---  arch/x86/lib/zimage.c |    7

Re: [U-Boot] [PATCH 16/17] x86: Simplify board.c

2012-01-03 Thread Simon Glass
Hi Graeme, On Sun, Jan 1, 2012 at 8:09 PM, Graeme Russ graeme.r...@gmail.com wrote: Signed-off-by: Graeme Russ graeme.r...@gmail.com ---  arch/x86/include/asm/init_helpers.h  |   39 +  arch/x86/include/asm/init_wrappers.h |   42 +  arch/x86/lib/Makefile                |    2 +  

Re: [U-Boot] [PATCH 17/17] x86: Tweak initialisation procedure

2012-01-03 Thread Simon Glass
Hi Graeme, On Sun, Jan 1, 2012 at 8:09 PM, Graeme Russ graeme.r...@gmail.com wrote: Signed-off-by: Graeme Russ graeme.r...@gmail.com ---  arch/x86/include/asm/init_helpers.h |    5 +  arch/x86/include/asm/relocate.h     |   33 ++  arch/x86/lib/board.c                |  188

Re: [U-Boot] [PATCH 1/2] tegra2: Always build with USE_PRIVATE_LIBGCC=yes.

2012-01-05 Thread Simon Glass
Hi Stephen, On Thu, Jan 5, 2012 at 8:53 AM, Stephen Warren swar...@nvidia.com wrote: On 01/05/2012 08:50 AM, Wolfgang Denk wrote: Dear Thierry Reding, In message 1321524246-5187-2-git-send-email-thierry.red...@avionic-design.de you wrote: The AVP on Tegra2 doesn't boot properly when

Re: [U-Boot] [PATCH 1/2] tegra2: Always build with USE_PRIVATE_LIBGCC=yes.

2012-01-05 Thread Simon Glass
Hi, On Thu, Jan 5, 2012 at 12:17 PM, Wolfgang Denk w...@denx.de wrote: Dear Stephen Warren, In message 4f05fcbd.2040...@nvidia.com you wrote: No, this is NOT a solution, it is a workaround for an inappropriate toolchain.  If you want to build code for an armv4t system, you must use a

Re: [U-Boot] AES128 in U-Boot

2012-01-05 Thread Simon Glass
Hi Mike, On Thu, Jan 5, 2012 at 3:07 PM, Mike Frysinger vap...@gentoo.org wrote: On Wednesday 21 December 2011 15:12:20 Simon Glass wrote: Can we use public domain code? It seems incompatible with the restrictions in the GPL how so ?  public domain (by its definition) has no copyright

[U-Boot] [PATCH 0/9] Fix a few warnings that bug me

2012-01-05 Thread Simon Glass
This series fixes some warnings which seem to still be left over from all the warning-squashing efforts for 2011.12. If patches exist for some of these already then please ignore. The alias problem in USB is a bit odd, since I thought it was already fixed. But perhaps it has come back. Simon

[U-Boot] [PATCH 2/9] Fix strict-aliasing warning in dlmalloc

2012-01-05 Thread Simon Glass
:1490: note: initialized from here dlmalloc.c:1493: note: initialized from here Signed-off-by: Simon Glass s...@chromium.org --- common/dlmalloc.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/dlmalloc.c b/common/dlmalloc.c index c645d73..0a719b4 100644

[U-Boot] [PATCH 5/9] sandbox: sort header files in os.c

2012-01-05 Thread Simon Glass
Tidy this up as the list is long and likely to get longer. Signed-off-by: Simon Glass s...@chromium.org --- arch/sandbox/cpu/os.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c index 6d55b5c..700c1a7 100644

[U-Boot] [PATCH 6/9] sandbox: Add required header to os.c

2012-01-05 Thread Simon Glass
We should include sys/time.h header to avoid warnings. Signed-off-by: Simon Glass s...@chromium.org --- arch/sandbox/cpu/os.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c index 700c1a7..ebd0ff1 100644 --- a/arch/sandbox

[U-Boot] [PATCH 1/9] usb: Fix strict-aliasing warning in host/ohci-hcd.c

2012-01-05 Thread Simon Glass
break strict-aliasing rules cc1: note: initialized from here ohci-hcd.c:1313: warning: dereferencing pointer 'pretmp.729' does break strict-aliasing rules Signed-off-by: Simon Glass s...@chromium.org --- drivers/usb/host/ohci-hcd.c | 26 +- 1 files changed, 13

[U-Boot] [PATCH 9/9] ppc: Change memsz variable to signed char

2012-01-05 Thread Simon Glass
This seems to be unsigned char for no good reason. Tidy this up and remove the casts. Signed-off-by: Simon Glass s...@chromium.org --- arch/powerpc/lib/board.c |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/lib/board.c b/arch/powerpc/lib/board.c index

[U-Boot] [PATCH 4/9] ppc4xx: Fix strict-aliasing warnings in usb_ohci.c

2012-01-05 Thread Simon Glass
break strict-aliasing rules usb_ohci.c:1048: note: initialized from here usb_ohci.c:1050: warning: dereferencing pointer 'data_buf.70' does break strict-aliasing rules Signed-off-by: Simon Glass s...@chromium.org --- arch/powerpc/cpu/ppc4xx/usb_ohci.c | 81 +--- 1

[U-Boot] [PATCH 7/9] Remove CONFIG_SYS_EXTBDINFO from snapper9260.h

2012-01-05 Thread Simon Glass
This feature is not available on ARM, so it is an error to define it. Signed-off-by: Simon Glass s...@chromium.org --- include/configs/snapper9260.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/include/configs/snapper9260.h b/include/configs/snapper9260.h index

[U-Boot] [PATCH 8/9] m68k: Change memsz to a signed char to avoid warning

2012-01-05 Thread Simon Glass
There doesn't seem to be any reason for using uchar here, so change it to char. This fixes a warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness Signed-off-by: Simon Glass s...@chromium.org --- arch/m68k/lib/board.c |2 +- 1 files changed, 1 insertions(+), 1

  1   2   3   4   5   6   7   8   9   10   >