Re: [U-Boot] [PATCH v3 08/14] tegra20: add SPL config options for tegra20 boards

2012-06-11 Thread Allen Martin
On Sat, Jun 09, 2012 at 11:35:29AM -0700, Simon Glass wrote: Hi Allen, diff --git a/include/configs/tegra20-common-post.h b/include/configs/tegra20-common-post.h index b535934..6b046bd 100644 --- a/include/configs/tegra20-common-post.h +++ b/include/configs/tegra20-common-post.h @@

Re: [U-Boot] [PATCH v3 09/14] tegra20: add u-boot.t2 target

2012-06-11 Thread Allen Martin
On Fri, Jun 08, 2012 at 10:21:15PM -0700, Stephen Warren wrote: On 06/08/2012 03:16 PM, Allen Martin wrote: Add target for tegra20 u-boot image. This is a concatenation of tegra spl and normal u-boot binaries. diff --git a/board/nvidia/seaboard/config.mk b/board/nvidia/seaboard

Re: [U-Boot] [PATCH v3 09/14] tegra20: add u-boot.t2 target

2012-06-11 Thread Allen Martin
On Sat, Jun 09, 2012 at 12:12:09PM -0700, Simon Glass wrote: Hi Allen, On Fri, Jun 8, 2012 at 2:16 PM, Allen Martin amar...@nvidia.commailto:amar...@nvidia.com wrote: Add target for tegra20 u-boot image. This is a concatenation of tegra spl and normal u-boot binaries. Signed-off

Re: [U-Boot] [PATCH v3 10/14] tegra: move SDRAM param save to later in boot

2012-06-11 Thread Allen Martin
On Sat, Jun 09, 2012 at 12:15:01PM -0700, Simon Glass wrote: Hi Allen, On Fri, Jun 8, 2012 at 2:16 PM, Allen Martin amar...@nvidia.commailto:amar...@nvidia.com wrote: Move warmboot_save_sdram_params() to later in the boot sequence. This code relies on devicetree to get the address

Re: [U-Boot] [PATCH v3 11/14] tegra20: Remove CPU init code from tegra20 u-boot

2012-06-11 Thread Allen Martin
On Sat, Jun 09, 2012 at 12:19:48PM -0700, Simon Glass wrote: Hi Allen, On Fri, Jun 8, 2012 at 2:16 PM, Allen Martin amar...@nvidia.commailto:amar...@nvidia.com wrote: This code is now included in the tegra20 SPL Signed-off-by: Allen Martin amar...@nvidia.commailto:amar...@nvidia.com

Re: [U-Boot] [PATCH v3 09/14] tegra20: add u-boot.t2 target

2012-06-11 Thread Allen Martin
On Mon, Jun 11, 2012 at 01:21:13PM -0700, Simon Glass wrote: Hi Allen, On Mon, Jun 11, 2012 at 12:22 PM, Allen Martin amar...@nvidia.commailto:amar...@nvidia.com wrote: On Sat, Jun 09, 2012 at 12:12:09PM -0700, Simon Glass wrote: Hi Allen, On Fri, Jun 8, 2012 at 2:16 PM, Allen Martin

Re: [U-Boot] [PATCH v2 1/7] tegra: Rework Tamonten support

2012-06-09 Thread Allen Martin
On Fri, Jun 08, 2012 at 10:28:57PM -0700, Stephen Warren wrote: On 06/08/2012 03:27 PM, Allen Martin wrote: On Fri, Jun 08, 2012 at 02:07:25PM -0700, Stephen Warren wrote: On 06/08/2012 02:01 PM, Allen Martin wrote: On Fri, May 25, 2012 at 06:46:22AM -0700, Thierry Reding wrote

Re: [U-Boot] [PATCH v3 08/14] tegra20: add SPL config options for tegra20 boards

2012-06-09 Thread Allen Martin
On Fri, Jun 08, 2012 at 10:19:02PM -0700, Stephen Warren wrote: On 06/08/2012 03:16 PM, Allen Martin wrote: Add SPL options to tegra20 config files and enable SPL build for tegra20 boards in boards.cfg diff --git a/include/configs/tegra20-common.h b/include/configs/tegra20-common.h

Re: [U-Boot] [PATCH v3 12/14] tegra20: Remove armv4t build flags

2012-06-09 Thread Allen Martin
On Fri, Jun 08, 2012 at 10:24:42PM -0700, Stephen Warren wrote: On 06/08/2012 03:16 PM, Allen Martin wrote: These flags were necessary when building tegra20 as a single binary that supported ARM7TDMI and Cortex A9. Now that the ARM7TDMI support is split into a separate SPL

Re: [U-Boot] [PATCH v3 13/14] tegra20: plutux: change obj directory mkdir commands

2012-06-09 Thread Allen Martin
On Fri, Jun 08, 2012 at 10:29:39PM -0700, Stephen Warren wrote: On 06/08/2012 03:16 PM, Allen Martin wrote: Change the mkdir commands for the object directories to be more general purpose. This fixes an issue when building for SPL where SRCTREE and OBJTREE are the same, but $(obj) is under

Re: [U-Boot] [PATCH v2 1/7] tegra: Rework Tamonten support

2012-06-08 Thread Allen Martin
On Fri, May 25, 2012 at 06:46:22AM -0700, Thierry Reding wrote: This commit uses the common Tegra board implementation instead of duplicating a lot of the code. In addition, the Plutux and Medcom specific board files can be removed as the MMC/SD setup is common among all Tamonten-based boards.

Re: [U-Boot] [PATCH v3 7/7] tegra: Add Tamonten Evaluation Carrier support

2012-06-08 Thread Allen Martin
On Mon, Jun 04, 2012 at 11:02:30PM -0700, Thierry Reding wrote: The Tamonten Evaluation Carrier is an evaluation board for the Tamonten processor board. More information is available here:

[U-Boot] [PATCH v3 09/14] tegra20: add u-boot.t2 target

2012-06-08 Thread Allen Martin
Add target for tegra20 u-boot image. This is a concatenation of tegra spl and normal u-boot binaries. Signed-off-by: Allen Martin amar...@nvidia.com --- .gitignore |1 + Makefile| 11 +++ board/nvidia/seaboard/config.mk |1 + 3

[U-Boot] [PATCH v3 10/14] tegra: move SDRAM param save to later in boot

2012-06-08 Thread Allen Martin
Move warmboot_save_sdram_params() to later in the boot sequence. This code relies on devicetree to get the address of the memory controller and with upcoming changes for SPL boot it gets called early in the boot process when devicetree is not initialized yet. Signed-off-by: Allen Martin amar

[U-Boot] [PATCH v3 04/14] mkconfig: add support for SPL CPU

2012-06-08 Thread Allen Martin
build. Signed-off-by: Allen Martin amar...@nvidia.com --- boards.cfg |5 + doc/README.SPL | 12 mkconfig | 13 +++-- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/boards.cfg b/boards.cfg index f7f1190..8958ba2 100644 --- a/boards.cfg

[U-Boot] [PATCH v3 06/14] tegra20: remove timer_init from SPL build

2012-06-08 Thread Allen Martin
Don't use timer_init from tegra board.c. This comes out of arm720t for the SPL build. Signed-off-by: Allen Martin amar...@nvidia.com --- board/nvidia/common/board.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index 90a77e2

[U-Boot] [PATCH v3 13/14] tegra20: plutux: change obj directory mkdir commands

2012-06-08 Thread Allen Martin
Change the mkdir commands for the object directories to be more general purpose. This fixes an issue when building for SPL where SRCTREE and OBJTREE are the same, but $(obj) is under SPLTREE. Signed-off-by: Allen Martin amar...@nvidia.com --- board/avionic-design/plutux/Makefile |7

[U-Boot] [PATCH v3 03/14] tegra20: rename CONFIG_MACH_TEGRA_GENERIC

2012-06-08 Thread Allen Martin
Rename CONFIG_MACH_TEGRA_GENERIC to the less confusing CONFIG_TEGRA. The meaning of the config options is now: CONFIG_TEGRA - Any tegra chip CONFIG_TEGRA20 - A tegra20 family chip CONFIG_TEGRA30 - A tegra30 family chip (not added yet) Signed-off-by: Allen Martin amar...@nvidia.com --- include

[U-Boot] [PATCH v3 11/14] tegra20: Remove CPU init code from tegra20 u-boot

2012-06-08 Thread Allen Martin
This code is now included in the tegra20 SPL Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/armv7/start.S |2 - arch/arm/cpu/tegra20-common/ap20.c | 258 +-- arch/arm/cpu/tegra20-common/board.c | 23 +--- include/configs/tegra20

[U-Boot] [PATCH v3 05/14] ARM: Fix arm720t SPL build

2012-06-08 Thread Allen Martin
Take a few SPL fixes from armv7 and apply them to arm720t: -Use dummy exception handlers for SPL build -Initialize relocation register r9 to 0 for the case of no relocation -ifdef out interrupt handler code Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/arm720t/start.S | 13

[U-Boot] [PATCH v3 14/14] tegra20: tec: add tegra20-common-post.h

2012-06-08 Thread Allen Martin
Add tegra20-common-post.h to be consistent with other tegra20 boards. Signed-off-by: Allen Martin amar...@nvidia.com --- include/configs/tec.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/tec.h b/include/configs/tec.h index 39400d9..9b3f88d 100644 --- a/include

[U-Boot] [PATCH v3 02/14] tegra20: move tegra20 SoC code to arch/arm/cpu/tegra20-common

2012-06-08 Thread Allen Martin
In preparation for splitting out the armv4t code from tegra20, move the tegra20 SoC code to arch/arm/cpu/tegra20-common. This code will be compiled armv4t for the arm7tdmi and armv7 for the cortex A9. Signed-off-by: Allen Martin amar...@nvidia.com --- Makefile

[U-Boot] [PATCH v3 0/14] split tegra20 arm7 code into separate SPL

2012-06-08 Thread Allen Martin
This patch series fixes a long standing problem with the tegra20 u-boot build. Tegra20 contains an ARM7TDMI boot processor and a Cortex A9 main processor. Prior to this patch series this was accomplished by #ifdefing out any armv7 code from the early boot sequence and creating a single binary

[U-Boot] [PATCH v3 08/14] tegra20: add SPL config options for tegra20 boards

2012-06-08 Thread Allen Martin
Add SPL options to tegra20 config files and enable SPL build for tegra20 boards in boards.cfg Signed-off-by: Allen Martin amar...@nvidia.com --- boards.cfg| 18 - include/configs/tegra20-common-post.h | 65 + include/configs

[U-Boot] [PATCH v3 12/14] tegra20: Remove armv4t build flags

2012-06-08 Thread Allen Martin
These flags were necessary when building tegra20 as a single binary that supported ARM7TDMI and Cortex A9. Now that the ARM7TDMI support is split into a separate SPL, this is no longer necessary. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/armv7/tegra20/config.mk | 12

[U-Boot] [PATCH v3 07/14] ARM: add tegra20 support to arm720t

2012-06-08 Thread Allen Martin
Add support for tegra20 arm7 boot processor. This processor is used to power on the Cortex A9 and transfer control to it. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/arm720t/cpu.c |2 + arch/arm/cpu/arm720t/interrupts.c |4

Re: [U-Boot] [PATCH v2 1/7] tegra: Rework Tamonten support

2012-06-08 Thread Allen Martin
On Fri, Jun 08, 2012 at 02:07:25PM -0700, Stephen Warren wrote: On 06/08/2012 02:01 PM, Allen Martin wrote: On Fri, May 25, 2012 at 06:46:22AM -0700, Thierry Reding wrote: This commit uses the common Tegra board implementation instead of duplicating a lot of the code. In addition

Re: [U-Boot] [PATCH v2 08/10] tegra20: add u-boot.t2 target

2012-06-07 Thread Allen Martin
On Wed, Jun 06, 2012 at 07:02:45PM -0700, Stephen Warren wrote: On 06/06/2012 04:00 PM, Allen Martin wrote: Yes, that's the intention. Although I do have plans down the road for adding memory initialization to the SPL so I can use it for boot/flashing when in recovery mode and there's

Re: [U-Boot] [PATCH v2 01/10] tegra20: rename tegra2 - tegra20

2012-06-06 Thread Allen Martin
On Wed, Jun 06, 2012 at 09:11:01AM -0700, Stephen Warren wrote: On 06/05/2012 03:20 PM, Allen Martin wrote: This is make naming consistent with the kernel and devicetree and in preparation of pulling out the common tegra20 code. diff --git a/boards.cfg b/boards.cfg This misses a couple

Re: [U-Boot] [PATCH v2 02/10] tegra20: move tegra20 SoC code to arch/arm/cpu/tegra20-common

2012-06-06 Thread Allen Martin
On Wed, Jun 06, 2012 at 09:16:46AM -0700, Stephen Warren wrote: On 06/05/2012 03:20 PM, Allen Martin wrote: In preparation for splitting out the armv4t code from tegra20, move the tegra20 SoC code to arch/arm/cpu/tegra20-common. This code will be compiled armv4t for the arm7tdmi and armv7

Re: [U-Boot] [PATCH v2 03/10] mkconfig: add support for SPL CPU

2012-06-06 Thread Allen Martin
On Wed, Jun 06, 2012 at 09:20:22AM -0700, Stephen Warren wrote: On 06/05/2012 03:20 PM, Allen Martin wrote: Add support for specifying a differnt CPU for main u-boot and SPL typo^^ Got it, thanks. u-boot builds. This is done by adding an optional SPL CPU

Re: [U-Boot] [PATCH v2 06/10] ARM: add tegra20 support to arm720t

2012-06-06 Thread Allen Martin
On Wed, Jun 06, 2012 at 09:39:57AM -0700, Stephen Warren wrote: On 06/05/2012 03:20 PM, Allen Martin wrote: Add support for tegra20 arm7 boot processor. This processor is used to power on the Cortex A9 and transfer control to it. diff --git a/arch/arm/cpu/arm720t/cpu.c b/arch/arm/cpu

Re: [U-Boot] [PATCH v2 07/10] tegra20: add SPL config options for seaboard

2012-06-06 Thread Allen Martin
On Wed, Jun 06, 2012 at 09:44:59AM -0700, Stephen Warren wrote: On 06/05/2012 03:20 PM, Allen Martin wrote: Add SPL options to tegra20 config files and enable SPL build for seaboard in boards.cfg diff --git a/include/configs/seaboard.h b/include/configs/seaboard.h +/* include

Re: [U-Boot] [PATCH v2 08/10] tegra20: add u-boot.t2 target

2012-06-06 Thread Allen Martin
On Wed, Jun 06, 2012 at 09:48:23AM -0700, Stephen Warren wrote: On 06/05/2012 03:20 PM, Allen Martin wrote: Add target for tegra20 u-boot image. This is a concatenation of tegra spl and normal u-boot binaries. diff --git a/board/nvidia/seaboard/config.mk b/board/nvidia/seaboard

Re: [U-Boot] [PATCH v2 09/10] tegra20: Remove CPU init code from tegra20 u-boot

2012-06-06 Thread Allen Martin
On Wed, Jun 06, 2012 at 09:51:09AM -0700, Stephen Warren wrote: On 06/05/2012 03:20 PM, Allen Martin wrote: This code is now included in the tegra20 SPL @@ -323,34 +91,10 @@ void init_pmc_scratch(void) /* ODMDATA is for kernel use to determine RAM size, LP config, etc

Re: [U-Boot] [PATCH v2 08/10] tegra20: add u-boot.t2 target

2012-06-06 Thread Allen Martin
On Wed, Jun 06, 2012 at 12:57:05PM -0700, Stephen Warren wrote: On 06/06/2012 01:53 PM, Tom Warren wrote: I'll move the SPL to 0x108000 and the normal u-boot to 0x208000 if that sounds more acceptable. The current flash tools everyone is using expect to flash U-Boot to 0x0108000 (on

Re: [U-Boot] [PATCH v2 06/10] ARM: add tegra20 support to arm720t

2012-06-06 Thread Allen Martin
On Wed, Jun 06, 2012 at 12:17:53PM -0700, Stephen Warren wrote: Oh, I see. MACH_TEGRA_GENERIC means some Tegra SoC, and CONFIG_TEGRA* indicate which one. Coming from my kernel background, MACH_* is a define for a particular board, and we do have a GENERIC Tegra board, so I got the wrong end of

[U-Boot] [PATCH v2 03/10] mkconfig: add support for SPL CPU

2012-06-05 Thread Allen Martin
build. Signed-off-by: Allen Martin amar...@nvidia.com --- boards.cfg |5 + doc/README.SPL | 12 mkconfig | 15 ++- 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/boards.cfg b/boards.cfg index 8e46d08..0e571aa 100644 --- a/boards.cfg

[U-Boot] [PATCH v2 0/10] split tegra20 arm7 code into separate SPL

2012-06-05 Thread Allen Martin
This patch series fixes a long standing problem with the tegra20 u-boot build. Tegra20 contains an ARM7TDMI boot processor and a Cortex A9 main processor. Prior to this patch series this was accomplished by #ifdefing out any armv7 code from the early boot sequence and creating a single binary

[U-Boot] [PATCH v2 08/10] tegra20: add u-boot.t2 target

2012-06-05 Thread Allen Martin
Add target for tegra20 u-boot image. This is a concatenation of tegra spl and normal u-boot binaries. Signed-off-by: Allen Martin amar...@nvidia.com --- .gitignore |1 + Makefile| 11 +++ board/nvidia/seaboard/config.mk |1 + 3

[U-Boot] [PATCH v2 05/10] tegra20: remove timer_init from SPL build

2012-06-05 Thread Allen Martin
Don't use timer_init from tegra board.c. This comes out of arm720t for the SPL build. Signed-off-by: Allen Martin amar...@nvidia.com --- board/nvidia/common/board.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index 2e22133

[U-Boot] [PATCH v2 06/10] ARM: add tegra20 support to arm720t

2012-06-05 Thread Allen Martin
Add support for tegra20 arm7 boot processor. This processor is used to power on the Cortex A9 and transfer control to it. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/arm720t/cpu.c |2 + arch/arm/cpu/arm720t/interrupts.c|4 + arch/arm/cpu

[U-Boot] [PATCH v2 07/10] tegra20: add SPL config options for seaboard

2012-06-05 Thread Allen Martin
Add SPL options to tegra20 config files and enable SPL build for seaboard in boards.cfg Signed-off-by: Allen Martin amar...@nvidia.com --- boards.cfg |2 +- include/configs/seaboard.h |6 +++ include/configs/tegra2-common.h | 17 include/configs

[U-Boot] [PATCH v2 01/10] tegra20: rename tegra2 - tegra20

2012-06-05 Thread Allen Martin
This is make naming consistent with the kernel and devicetree and in preparation of pulling out the common tegra20 code. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/armv7/{tegra2 = tegra20}/Makefile|0 arch/arm/cpu/armv7/{tegra2 = tegra20}/ap20.c |0 arch/arm

[U-Boot] [PATCH v2 02/10] tegra20: move tegra20 SoC code to arch/arm/cpu/tegra20-common

2012-06-05 Thread Allen Martin
In preparation for splitting out the armv4t code from tegra20, move the tegra20 SoC code to arch/arm/cpu/tegra20-common. This code will be compiled armv4t for the arm7tdmi and armv7 for the cortex A9. Signed-off-by: Allen Martin amar...@nvidia.com --- Makefile

[U-Boot] [PATCH v2 09/10] tegra20: Remove CPU init code from tegra20 u-boot

2012-06-05 Thread Allen Martin
This code is now included in the tegra20 SPL Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/armv7/start.S |2 - arch/arm/cpu/tegra20-common/ap20.c | 262 +-- arch/arm/cpu/tegra20-common/board.c | 27 +--- include/configs/tegra2

[U-Boot] [PATCH v2 04/10] ARM: Fix arm720t SPL build

2012-06-05 Thread Allen Martin
Take a few SPL fixes from armv7 and apply them to arm720t: -Use dummy exception handlers for SPL build -Initialize relocation register r9 to 0 for the case of no relocation -ifdef out interrupt handler code Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/arm720t/start.S | 13

[U-Boot] [PATCH v2 10/10] tegra20: Remove armv4t build flags

2012-06-05 Thread Allen Martin
These flags were necessary when building tegra20 as a single binary that supported ARM7TDMI and Cortex A9. Now that the ARM7TDMI support is split into a separate SPL, this is no longer necessary. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/armv7/tegra20/config.mk |7

Re: [U-Boot] [PATCH v2 0/10] split tegra20 arm7 code into separate SPL

2012-06-05 Thread Allen Martin
On Tue, Jun 05, 2012 at 02:25:12PM -0700, Tom Warren wrote: Did you use the -C option for format-patch? I'd expect a lot of these file moves to show up as simple renames. Yes, if you look inside [PATCH v2 01/10] tegra20: rename tegra2 - tegra20 for example, all the renames came out ok, I

Re: [U-Boot] [PATCH] tegra: override compiler flags for low level init code

2012-06-04 Thread Allen Martin
On Mon, May 14, 2012 at 04:23:33PM -0700, Stephen Warren wrote: On 05/14/2012 05:14 PM, Allen Martin wrote: Override -march setting for tegra to -march=armv4t for files that are necessary for low level init on tegra. The recent change to use -march=armv7-a for armv7 caused a regression

Re: [U-Boot] [PATCH] tegra: override compiler flags for low level init code

2012-06-04 Thread Allen Martin
On Mon, Jun 04, 2012 at 11:00:35AM -0700, Stephen Warren wrote: On 06/04/2012 11:54 AM, Allen Martin wrote: Hi Tom, could you pick this up in u-boot-tegra? Without it tegra is currently broken in both u-boot-tegra and u-boot gits depending on the compiler you use. It's been

Re: [U-Boot] [PATCH 6/9] tegra: enable SPL build for seaboard

2012-05-22 Thread Allen Martin
On Tue, May 22, 2012 at 10:07:37AM -0700, Stephen Warren wrote: On 05/18/2012 04:24 PM, Allen Martin wrote: On Mon, May 14, 2012 at 10:06:40PM -0700, Stephen Warren wrote: On 05/10/2012 01:02 AM, Allen Martin wrote: ... Perhaps we can just create a new tegra_spl board for the SPL rather

Re: [U-Boot] [PATCH 5/9] ARM: add tegra support to arm720t

2012-05-22 Thread Allen Martin
On Tue, May 22, 2012 at 10:10:48AM -0700, Stephen Warren wrote: Oh right. I think if you pass -M or better -C to git format-patch, it'll highlight that fact better; it should make the patch file indicate that the relevant files were moved or copied, and just show the diffs to the file during

Re: [U-Boot] Unifying device tree filenames, and U-Boot SoC name

2012-05-21 Thread Allen Martin
On Mon, May 21, 2012 at 05:49:03PM -0700, Simon Glass wrote: Hi Stephen, On Mon, May 21, 2012 at 7:22 AM, Thierry Reding thierry.red...@avionic-design.demailto:thierry.red...@avionic-design.de wrote: * Stephen Warren wrote: b) In U-Boot, rename the tegra2 support to tegra20 so that

Re: [U-Boot] [PATCH 9/9] tegra2: Remove USE_PRIVATE_LIBGCC and armv4t build flags

2012-05-18 Thread Allen Martin
On Mon, May 14, 2012 at 10:11:26PM -0700, Stephen Warren wrote: On 05/10/2012 01:02 AM, Allen Martin wrote: -USE_PRIVATE_LIBGCC = yes However, we force this because the toolchains we typically use for U-Boot are targeted at the A9 CPUs, and hence the libgcc there contains ARMv7

Re: [U-Boot] [PATCH 7/9] tegra: add u-boot.t2 target

2012-05-18 Thread Allen Martin
On Mon, May 14, 2012 at 10:08:05PM -0700, Stephen Warren wrote: On 05/10/2012 01:02 AM, Allen Martin wrote: Add target for tegra2 u-boot image. This is a concatenation of tegra spl and normal u-boot binaries. diff --git a/Makefile b/Makefile +$(obj)u-boot.t2: $(obj)spl/u-boot

Re: [U-Boot] [PATCH 6/9] tegra: enable SPL build for seaboard

2012-05-18 Thread Allen Martin
On Mon, May 14, 2012 at 10:06:40PM -0700, Stephen Warren wrote: On 05/10/2012 01:02 AM, Allen Martin wrote: Signed-off-by: Allen Martin amar...@nvidia.com diff --git a/boards.cfg b/boards.cfg -seaboard arm armv7 seaboard nvidia

Re: [U-Boot] [PATCH 5/9] ARM: add tegra support to arm720t

2012-05-18 Thread Allen Martin
On Mon, May 14, 2012 at 10:03:24PM -0700, Stephen Warren wrote: On 05/10/2012 01:02 AM, Allen Martin wrote: Add support for tegra arm7 boot processor. This processor is used to power on the Cortex A9 and transfer control to it. +static void enable_cpu_power_rail(void

Re: [U-Boot] [PATCH 4/9] tegra: Add SPL build support to tegra boards

2012-05-18 Thread Allen Martin
On Mon, May 14, 2012 at 09:55:20PM -0700, Stephen Warren wrote: On 05/10/2012 01:02 AM, Allen Martin wrote: Include board.c for both SPL and non-SPL build. Don't use timer_init from board.c for SPL build. Signed-off-by: Allen Martin amar...@nvidia.com diff --git a/board/nvidia

Re: [U-Boot] [PATCH] tegra: override compiler flags for cmd_nvedit

2012-05-14 Thread Allen Martin
On Sun, May 13, 2012 at 10:24:19PM -0700, Mike Frysinger wrote: On Monday 07 May 2012 12:36:00 Allen Martin wrote: The other option is to compile all of tegra armv4t by modifying arch/arm/cpu/armv7/config.mk no it's not. arch and board config.mk get sourced, so you can put this board

[U-Boot] [PATCH v2] tegra: override compiler flags for cmd_nvedit

2012-05-14 Thread Allen Martin
to getenv_ulong() that causes an illegal instruction exception if cmd_nvedit is compiled for armv7. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/armv7/tegra2/config.mk |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/armv7/tegra2

[U-Boot] [PATCH] tegra: override compiler flags for low level init code

2012-05-14 Thread Allen Martin
executing on the arm7tdmi there are calls to getenv_ulong() and memset() that cause an illegal instruction exception if compiled for armv7. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/armv7/tegra2/config.mk |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff

[U-Boot] [PATCH 4/9] tegra: Add SPL build support to tegra boards

2012-05-10 Thread Allen Martin
Include board.c for both SPL and non-SPL build. Don't use timer_init from board.c for SPL build. Signed-off-by: Allen Martin amar...@nvidia.com --- board/nvidia/common/Makefile |2 +- board/nvidia/common/board.c |2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/board

[U-Boot] [PATCH 2/9] mkconfig: add support for SPL CPU

2012-05-10 Thread Allen Martin
build. Signed-off-by: Allen Martin amar...@nvidia.com --- boards.cfg |5 + doc/README.SPL | 12 mkconfig | 15 ++- 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/boards.cfg b/boards.cfg index 5f328b5..4436053 100644 --- a/boards.cfg

[U-Boot] [PATCH 0/9] split tegra arm7 code into separate SPL

2012-05-10 Thread Allen Martin
This patch series fixes a long standing problem with the tegra2 u-boot build. Tegra2 contains an ARM7TDMI boot processor and a Cortex A9 main processor. Prior to this patch series this was accomplished by #ifdefing out any armv7 code from the early boot sequence and creating a single binary that

[U-Boot] [PATCH 9/9] tegra2: Remove USE_PRIVATE_LIBGCC and armv4t build flags

2012-05-10 Thread Allen Martin
These flags were necessary when building tegra2 as a single binary that supported ARM7TDMI and Cortex A9. Now that the ARM7TDMI support is split into a separate SPL, this is no longer necessary. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/armv7/tegra2/config.mk |8

[U-Boot] [PATCH 7/9] tegra: add u-boot.t2 target

2012-05-10 Thread Allen Martin
Add target for tegra2 u-boot image. This is a concatenation of tegra spl and normal u-boot binaries. Signed-off-by: Allen Martin amar...@nvidia.com --- Makefile|6 ++ board/nvidia/seaboard/config.mk |1 + 2 files changed, 7 insertions(+) create mode 100644

[U-Boot] [PATCH 6/9] tegra: enable SPL build for seaboard

2012-05-10 Thread Allen Martin
Signed-off-by: Allen Martin amar...@nvidia.com --- boards.cfg |2 +- include/configs/seaboard.h |9 + include/configs/tegra2-common.h | 19 +++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/boards.cfg b/boards.cfg index

[U-Boot] [PATCH 3/9] ARM: Fix arm720t SPL build

2012-05-10 Thread Allen Martin
Take a few SPL fixes from armv7 and apply them to arm720t: -Use dummy exception handlers for SPL build -Initialize relocation register r9 to 0 for the case of no relocation -ifdef out interrupt handler code Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/arm720t/start.S | 13

[U-Boot] [PATCH 1/9] tegra2: move tegra2 SoC code to arch/arm/cpu/tegra2-common

2012-05-10 Thread Allen Martin
In preparation for splitting out the armv4t code from tegra2, move the tegra2 SoC code to arch/arm/cpu/tegra2-common. This code will be compiled armv4t for the arm7tdmi and armv7 for the cortex A9. Signed-off-by: Allen Martin amar...@nvidia.com --- Makefile

[U-Boot] [PATCH 5/9] ARM: add tegra support to arm720t

2012-05-10 Thread Allen Martin
Add support for tegra arm7 boot processor. This processor is used to power on the Cortex A9 and transfer control to it. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/arm720t/cpu.c |3 +- arch/arm/cpu/arm720t/interrupts.c |5 +- arch/arm/cpu

[U-Boot] [PATCH 8/9] tegra2: Remove CPU init code from tegra2 u-boot

2012-05-10 Thread Allen Martin
This code is now included in the tegra2 SPL Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/armv7/start.S |2 - arch/arm/cpu/tegra2-common/ap20.c | 257 +--- arch/arm/cpu/tegra2-common/ap20.h | 102 -- arch/arm/cpu

Re: [U-Boot] [PATCH] tegra: override compiler flags for cmd_nvedit

2012-05-07 Thread Allen Martin
On Sat, May 05, 2012 at 01:01:22PM -0700, Wolfgang Denk wrote: Dear Allen Martin, In message 1336163380-29679-1-git-send-email-amar...@nvidia.com you wrote: Override -march setting for tegra to -march=armv4t for cmd_nvedit.c The recent change to use -march=armv7-a for armv7 caused

[U-Boot] [PATCH] tegra: override compiler flags for cmd_nvedit

2012-05-04 Thread Allen Martin
to getenv_ulong() that causes an illegal instruction exception if cmd_nvedit is compiled for armv7. Signed-off-by: Allen Martin amar...@nvidia.com --- common/Makefile |6 ++ 1 file changed, 6 insertions(+) diff --git a/common/Makefile b/common/Makefile index d9f10f3..e1b5307 100644

Re: [U-Boot] [U-boot] Help: Tegra250 board(harmony) Ethernet driver

2012-05-01 Thread Allen Martin
On Tue, Apr 24, 2012 at 12:53:15AM -0700, YONGKI KIM wrote: Hello everyone. I am trying to port the Ethernet driver to *tegra250 development board(harmony board)* but I have the problem. Harmony has a SMSC LAN9514 integrated USB hub/ethernet controller. There's a driver for it in

Re: [U-Boot] [PATCH] tegra2: move tegra2 SoC code to arch/arm/cpu/tegra2-common

2012-04-30 Thread Allen Martin
On Mon, Apr 30, 2012 at 11:31:44AM -0700, Simon Glass wrote: -Have the armv4t build reach up and over into armv7 -Move the code out to board/nvidia Both of these seemed worse I've thought about this a bit more. To me you have a bit of a unique problem in that you need to build the code

Re: [U-Boot] [PATCH V2 1/2] arm: fix bootm with device tree

2012-04-20 Thread Allen Martin
it back. This restores the ability to boot a kernel using device tree. Signed-off-by: Stephen Warren swar...@nvidia.com Acked-by: Tom Rini tr...@ti.com Acked-by: Allen Martin amar...@nvidia.com Tested-by: Allen Martin amar...@nvidia.com Verified I can boot a device tree kernel again after

Re: [U-Boot] [PATCH] arm: Tegra2: Add a useful default boot env

2012-04-20 Thread Allen Martin
On Fri, Apr 20, 2012 at 12:50:58PM -0700, Tom Warren wrote: This set of boot cmds from Stephen Warren provides a simple default for booting a linux kernel and DT from mmc (eMMC or SD-Card, in that order). Tested on Seaboard w/an SD card. Signed-off-by: Tom Warren twar...@nvidia.com ---

Re: [U-Boot] [PATCH v4 10/10] tegra: Enable keyboard for Seaboard

2012-04-20 Thread Allen Martin
On Tue, Apr 17, 2012 at 12:01:37PM -0700, Simon Glass wrote: 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

[U-Boot] [PATCH] mkconfig: add support for SPL CPU

2012-04-19 Thread Allen Martin
build. Signed-off-by: Allen Martin amar...@nvidia.com --- This is part of my patch series to move all armv4t code out of tegra u-boot to an SPL. I haven't heard any suggestions on how to resolve having a different CPU for the SPL build, so this is my suggestion as a possible solution. boards.cfg

Re: [U-Boot] [PATCH] tegra2: move tegra2 SoC code to arch/arm/cpu/tegra2-common

2012-04-19 Thread Allen Martin
On Thu, Apr 19, 2012 at 11:27:05AM -0700, Simon Glass wrote: This is part of an upcoming patch set to move all armv4t code out of tegra2 u-boot and put it into an SPL, but I wanted to get some early feedback on this patch.  This moves most of the tegra2 SoC code from arch/arm/cpu/armv7

[U-Boot] [PATCH 0/1] tegra2: move tegra2 SoC code to arch/arm/cpu/tegra2-common

2012-04-18 Thread Allen Martin
This is part of an upcoming patch set to move all armv4t code out of tegra2 u-boot and put it into an SPL, but I wanted to get some early feedback on this patch. This moves most of the tegra2 SoC code from arch/arm/cpu/armv7 to a new directory arch/arm/cpu/tegra2-common. This code will be shared

[U-Boot] [PATCH] tegra2: move tegra2 SoC code to arch/arm/cpu/tegra2-common

2012-04-18 Thread Allen Martin
In preparation for splitting out the armv4t code from tegra2, move the tegra2 SoC code to arch/arm/cpu/tegra2-common. This code will be compiled armv4t for the arm7tdmi and armv7 for the cortex A9. Signed-off-by: Allen Martin amar...@nvidia.com --- Resending this with git format-patch -M to make

[U-Boot] Switching CPU between SPL and non-SPL build

2012-04-17 Thread Allen Martin
Changing the subject line since this thread isn't really about toolchains any more. The problem I'm having with the SPL build is that a single entry in boards.cfg can have exactly one architecture and CPU model. So But you can define any tye of CONFIG_ settings, both in boards.cfg and in

Re: [U-Boot] using different architecture / toolchain for SPL build

2012-04-12 Thread Allen Martin
only option I found that worked was to use an armv4 toolchain for the armv4 bits and armv7 toolchain for the armv7 bits. I'm not an expert in this area, but this cannot be the right approach. Did you try asking on the binutils mailing list? This is where experts should be available...

Re: [U-Boot] using different architecture / toolchain for SPL build

2012-04-11 Thread Allen Martin
How would others feel about a CROSS_COMPILE_SPL variable that allowed one to override the toolchain used during the SPL build? This makes no sense to me. The need to use a specific tool chain for some SoC type usuallyonly comes into play when dealing with user space code, i. e. when you

[U-Boot] using different architecture / toolchain for SPL build

2012-04-10 Thread Allen Martin
I'm trying to solve a problem we've had in the tegra build of u-boot for a while. Tegra2/3 have an integrated arm7tdmi in addition to the cortex A9. Initial boot of the system is always to the arm7tdmi which is responsible for turning on the clocks and power rails for the A9 and then taking

Re: [U-Boot] [PATCH v4 0/6] Enable Thumb build for ARM platforms

2012-04-03 Thread Allen Martin
Tom, Albert, Does this series look good? Hi Aneesh, The assembly files (like arch/arm/cpu/armv7/start.S) are still compiled ARM 32 with this patch series, but they call into C files that are compiled -mthumb. Shouldn't the branches be changed into thumb state changing branches (bx/blx) ?

Re: [U-Boot] [PATCH] USB: reevaluate iomux stdin on USB kbd detect

2012-02-27 Thread Allen Martin
Subject: Re: [U-Boot] [PATCH] USB: reevaluate iomux stdin on USB kbd detect If CONSOLE_MUX is enabled, reevaluate console stdin when USB keyboard device is detected. Signed-off-by: Allen Martin amar...@nvidia.com --- Hi, what's the status of this patch/patchset? Both

Re: [U-Boot] [PATCH] USB: reevaluate iomux stdin on USB kbd detect

2012-01-24 Thread Allen Martin
If CONSOLE_MUX is enabled, reevaluate console stdin when USB keyboard device is detected. Signed-off-by: Allen Martin amar...@nvidia.com ping, anyone have any comments/feedback? Hi, anyone want to give this patch some love so USB keyboard can work on EHCI again? -Allen nvpublic

Re: [U-Boot] [PATCH] USB: move keyboard polling into kbd driver

2012-01-24 Thread Allen Martin
This moves keyboard polling logic from USB HCD drivers into USB keyboard driver. Remove usb_event_poll() as keyboard polling was the only user of this API. With this patch USB keyboard works with EHCI controllers again. Tested on a tegra2 seaboard. Signed-off-by: Allen Martin amar

Re: [U-Boot] [PATCH] USB: move keyboard polling into kbd driver

2012-01-04 Thread Allen Martin
This moves keyboard polling logic from USB HCD drivers into USB keyboard driver. Remove usb_event_poll() as keyboard polling was the only user of this API. With this patch USB keyboard works with EHCI controllers again. Tested on a tegra2 seaboard. Signed-off-by: Allen Martin amar

Re: [U-Boot] [PATCH] USB: reevaluate iomux stdin on USB kbd detect

2012-01-04 Thread Allen Martin
If CONSOLE_MUX is enabled, reevaluate console stdin when USB keyboard device is detected. Signed-off-by: Allen Martin amar...@nvidia.com ping, anyone have any comments/feedback? -Allen nvpublic ___ U-Boot mailing list U-Boot@lists.denx.de http

[U-Boot] [PATCH] USB: reevaluate iomux stdin on USB kbd detect

2011-12-23 Thread Allen Martin
If CONSOLE_MUX is enabled, reevaluate console stdin when USB keyboard device is detected. Signed-off-by: Allen Martin amar...@nvidia.com --- common/usb_kbd.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/common/usb_kbd.c b/common/usb_kbd.c index e94bb7e..577a1eb

Re: [U-Boot] [PATCH] USB: add CONFIG_USB_INIT to autoinitialize USB before main_loop

2011-12-22 Thread Allen Martin
This allows systems to pause autoboot with USB keyboard. Tested on tegra2 seaboard. Signed-off-by: Allen Martin amar...@nvidia.com Can't you just add usb reset to preboot env? The point is to be able to use USB keyboard to stop autoboot on systems where USB keyboard is the primary

Re: [U-Boot] [PATCH] USB: add CONFIG_USB_INIT to autoinitialize USB before main_loop

2011-12-22 Thread Allen Martin
Can't you just add usb reset to preboot env? The point is to be able to use USB keyboard to stop autoboot on systems where USB keyboard is the primary (or only) input device. This needs to happen before BOOTCOMMAND gets parsed. I think the preboot environment variable already

Re: [U-Boot] [PATCH] USB: add CONFIG_USB_INIT to autoinitialize USB before main_loop

2011-12-22 Thread Allen Martin
This allows systems to pause autoboot with USB keyboard. Tested on tegra2 seaboard. Signed-off-by: Allen Martin amar...@nvidia.com --- README |5 + arch/arm/lib/board.c |9 + 2 files changed, 14 insertions(+), 0 deletions(-) This modification

Re: [U-Boot] [PATCH] USB: add CONFIG_USB_INIT to autoinitialize USB before main_loop

2011-12-22 Thread Allen Martin
The point is to be able to use USB keyboard to stop autoboot on systems where USB keyboard is the primary (or only) input device. This needs to happen before BOOTCOMMAND gets parsed. I think the preboot environment variable already *is* run before starting the autoboot timer?

Re: [U-Boot] [PATCH] USB: add CONFIG_USB_INIT to autoinitialize USB before main_loop

2011-12-22 Thread Allen Martin
This seems incompatible with iomux, shouldn't these decisions be made in the console driver? In my case, stdin is set to serial,tegra-kbc,usbkbd so this strcmp won't match. Indeed, this code predates the iomux implementation, and nobody noticed yet that it needs fixing. Ok thanks,

[U-Boot] [PATCH] USB: add CONFIG_USB_INIT to autoinitialize USB before main_loop

2011-12-21 Thread Allen Martin
This allows systems to pause autoboot with USB keyboard. Tested on tegra2 seaboard. Signed-off-by: Allen Martin amar...@nvidia.com --- README |5 + arch/arm/lib/board.c |9 + 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/README b/README index

<    1   2   3   4   5   6   >