[U-Boot] [PATCH v2 7/9] arm720t: add linkage macro for relocate_code

2012-08-01 Thread Allen Martin
The linker needs this to understand that the symbol is actually a function so it will generate correct thumb interworking code. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/arm720t/start.S |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu

Re: [U-Boot] [PATCH v2 8/9] arm: use thumb interworking returns in libgcc

2012-08-01 Thread Allen Martin
On Wed, Aug 01, 2012 at 02:11:48PM -0700, V, Aneesh wrote: Hi Allen, On Wed, Aug 1, 2012 at 1:32 PM, Allen Martin amar...@nvidia.commailto:amar...@nvidia.com wrote: If CONFIG_SYS_THUMB_BUILD is enabled, use thumb interworking return instructions from libgcc routines, otherwise use ARM

Re: [U-Boot] [PATCH v2 8/9] arm: use thumb interworking returns in libgcc

2012-08-01 Thread Allen Martin
On Wed, Aug 01, 2012 at 03:15:45PM -0700, V, Aneesh wrote: I didn't want to break any older ARM architectures that don't support the bx instruction but use this code. Which is earlier than armv4t, right? On quick look it didn't seem there is anything older than that in u-boot. But yes,

Re: [U-Boot] [PATCH v4 1/2] tools, config.mk: add binutils-version

2012-08-01 Thread Allen Martin
:10 Tom Rini wrote: On 07/18/2012 08:11 PM, Mike Frysinger wrote: On Wednesday 18 July 2012 19:45:52 Allen Martin wrote: +MAJOR=$($gas --version | head -1 | awk '{print $NF}' | cut -d . -f 1) +MINOR=$($gas --version | head -1 | awk '{print $NF}' | cut -d . -f 2) + +printf %02d%02d\\n

[U-Boot] [PATCH v3 2/2] arm: work around assembler bug

2012-07-18 Thread Allen Martin
://sourceware.org/bugzilla/show_bug.cgi?id=12532 Signed-off-by: Allen Martin amar...@nvidia.com --- changes for v3: -removed warning print changes for v2: -changed GAS_BUG_12532 from yes/no to y/n to be consistent -added additional warning about code size increase --- arch/arm/config.mk | 22

[U-Boot] [PATCH v3 1/2] tools, config.mk: add binutils-version

2012-07-18 Thread Allen Martin
Modeled after gcc-version, add function to get binutils version. Signed-off-by: Allen Martin amar...@nvidia.com --- config.mk |1 + tools/binutils-version.sh | 20 2 files changed, 21 insertions(+) create mode 100755 tools/binutils-version.sh diff

Re: [U-Boot] [PATCH v3 2/2] arm: work around assembler bug

2012-07-18 Thread Allen Martin
Sorry I screwed this patch up, please ignore, I'll resend in a minute -Allen -- nvpublic ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v4 2/2] arm: work around assembler bug

2012-07-18 Thread Allen Martin
://sourceware.org/bugzilla/show_bug.cgi?id=12532 Signed-off-by: Allen Martin amar...@nvidia.com --- changes for v4: -removed warning print changes for v3: -split shell line to improve readability changes for v2: -changed GAS_BUG_12532 from yes/no to y/n to be consistent -added additional warning

[U-Boot] [PATCH v4 1/2] tools, config.mk: add binutils-version

2012-07-18 Thread Allen Martin
Modeled after gcc-version, add function to get binutils version. Signed-off-by: Allen Martin amar...@nvidia.com --- config.mk |1 + tools/binutils-version.sh | 20 2 files changed, 21 insertions(+) create mode 100755 tools/binutils-version.sh diff

Re: [U-Boot] [PATCH v7 00/15] split tegra20 arm7 code into separate SPL

2012-07-18 Thread Allen Martin
On Tue, Jul 17, 2012 at 12:32:53PM -0700, Tom Warren wrote: Allen, -Original Message- From: Allen Martin [mailto:amar...@nvidia.com] Sent: Monday, July 16, 2012 4:02 PM To: Tom Warren; swar...@wwwdotorg.org; s...@chromium.org; thierry.red...@avionic-design.de Cc: u-boot

Re: [U-Boot] [PATCH 2/7] HACK: rearrange link order for thumb

2012-07-17 Thread Allen Martin
On Thu, Jul 12, 2012 at 11:45:18AM -0700, Albert ARIBAUD wrote: Hi Graeme, On Tue, 10 Jul 2012 10:57:39 +1000, Graeme Russ graeme.r...@gmail.com wrote: Hi Allen On Tue, Jul 10, 2012 at 10:45 AM, Allen Martin amar...@nvidia.com wrote: On Sat, Jul 07, 2012 at 03:15:36AM -0700, Albert

[U-Boot] [PATCH v7 04/15] tegra20: tec: add tegra20-common-post.h

2012-07-16 Thread Allen Martin
Add tegra20-common-post.h to be consistent with other tegra20 boards. Signed-off-by: Allen Martin amar...@nvidia.com Acked-by: Thierry Reding thierry.red...@avionic-design.de Acked-by: Stephen Warren swar...@wwwdotorg.org Tested-by: Thierry Reding thierry.red...@avionic-design.de --- include

[U-Boot] [PATCH v7 06/15] mkconfig: add support for SPL CPU

2012-07-16 Thread Allen Martin
build. Signed-off-by: Allen Martin amar...@nvidia.com Acked-by: Stephen Warren swar...@wwwdotorg.org Tested-by: Thierry Reding thierry.red...@avionic-design.de --- boards.cfg |5 + doc/README.SPL | 12 mkconfig | 24 3 files changed, 33

[U-Boot] [PATCH v7 00/15] split tegra20 arm7 code into separate SPL

2012-07-16 Thread Allen Martin
and new EMC code - made u-boot.t2 target work even if CONFIG_OF is disabled - added back USE_PRIVATE_LIBGCC Allen Martin (15): tegra20: rename tegra2 - tegra20 tegra20: move tegra20 SoC code to arch/arm/cpu/tegra20-common tegra20: rename CONFIG_MACH_TEGRA_GENERIC tegra20: tec: add tegra20

[U-Boot] [PATCH v7 13/15] arm: enable libgcc build for SPL

2012-07-16 Thread Allen Martin
Enable the building of private libgcc for SPL Signed-off-by: Allen Martin amar...@nvidia.com Acked-by: Stephen Warren swar...@wwwdotorg.org Tested-by: Thierry Reding thierry.red...@avionic-design.de --- arch/arm/lib/Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v7 15/15] tegra20: Remove armv4t build flags

2012-07-16 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 Acked-by: Stephen Warren swar...@wwwdotorg.org Tested

[U-Boot] [PATCH v7 11/15] tegra20: move SDRAM param save to later in boot

2012-07-16 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 v7 07/15] ARM: Fix arm720t SPL build

2012-07-16 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 Acked-by: Stephen Warren swar

[U-Boot] [PATCH v7 14/15] spl: fix SPL build of private libgcc

2012-07-16 Thread Allen Martin
This fixes the SPL build to link with the SPL version of libgcc if USE_PRIVATE_LIBGCC is set to yes. Previously it was linking with the libgcc from the normal u-boot build because it gets set in PLATFORM_LIBS and passed down the to the SPL build. Signed-off-by: Allen Martin amar...@nvidia.com

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

2012-07-16 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 Acked-by: Stephen Warren swar...@wwwdotorg.org

[U-Boot] [PATCH v7 08/15] tegra20: remove timer_init from SPL build

2012-07-16 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 Acked-by: Stephen Warren swar...@wwwdotorg.org Tested-by: Thierry Reding thierry.red...@avionic-design.de --- board/nvidia/common/board.c |2 ++ 1 file

[U-Boot] [PATCH v7 05/15] tegra20: make board mkdir commands unconditional

2012-07-16 Thread Allen Martin
Change the mkdir commands for the object directories to be unconditional. 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 Acked-by: Stephen Warren swar...@wwwdotorg.org Tested

[U-Boot] [PATCH v7 10/15] tegra20: add u-boot-*-tegra.bin targets

2012-07-16 Thread Allen Martin
Add target for tegra20 u-boot image. This is a concatenation of tegra spl and normal u-boot binaries. For non-devicetree builds this is named u-boot-nodtb-tegra.bin for devicetree builds is named u-boot-dtb-tegra.bin. Signed-off-by: Allen Martin amar...@nvidia.com Acked-by: Stephen Warren swar

[U-Boot] [PATCH v7 09/15] ARM: add tegra20 support to arm720t

2012-07-16 Thread Allen Martin
except for cache and MMU. Signed-off-by: Allen Martin amar...@nvidia.com Acked-by: Stephen Warren swar...@wwwdotorg.org Tested-by: Thierry Reding thierry.red...@avionic-design.de --- arch/arm/cpu/arm720t/cpu.c |2 + arch/arm/cpu/arm720t/interrupts.c|5 + arch/arm

[U-Boot] [PATCH v7 03/15] tegra20: rename CONFIG_MACH_TEGRA_GENERIC

2012-07-16 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 Acked

[U-Boot] [PATCH v7 12/15] tegra20: enable SPL for tegra20 boards

2012-07-16 Thread Allen Martin
Add SPL options to tegra20 config files and enable SPL build for tegra20 boards. Also remove redundant code from u-boot that is not contained in SPL. Signed-off-by: Allen Martin amar...@nvidia.com Acked-by: Stephen Warren swar...@wwwdotorg.org Tested-by: Thierry Reding thierry.red...@avionic

[U-Boot] [PATCH v2 1/2] tools, config.mk: add binutils-version

2012-07-10 Thread Allen Martin
Modeled after gcc-version, add function to get binutils version. Signed-off-by: Allen Martin amar...@nvidia.com --- config.mk |1 + tools/binutils-version.sh | 20 2 files changed, 21 insertions(+) create mode 100755 tools/binutils-version.sh diff

[U-Boot] [PATCH v2 2/2] arm: work around assembler bug

2012-07-10 Thread Allen Martin
://sourceware.org/bugzilla/show_bug.cgi?id=12532 Signed-off-by: Allen Martin amar...@nvidia.com --- changes for v2: -changed GAS_BUG_12532 from yes/no to y/n to be consistent -added additional warning about code size increase --- arch/arm/config.mk | 21 + 1 file changed, 21

Re: [U-Boot] [PATCH v2 2/2] arm: work around assembler bug

2012-07-10 Thread Allen Martin
On Tue, Jul 10, 2012 at 10:25:05AM -0700, Tom Rini wrote: * PGP Signed by an unknown key On Tue, Jul 10, 2012 at 10:00:17AM -0700, Allen Martin wrote: Disable sibling call optimization based on binutils version. This is to work around a bug in the assember in binutils versions 2.22

Re: [U-Boot] [PATCH v2 2/2] arm: work around assembler bug

2012-07-10 Thread Allen Martin
On Tue, Jul 10, 2012 at 10:50:34AM -0700, Tom Rini wrote: On Tue, Jul 10, 2012 at 10:44:33AM -0700, Allen Martin wrote: On Tue, Jul 10, 2012 at 10:25:05AM -0700, Tom Rini wrote: * PGP Signed by an unknown key On Tue, Jul 10, 2012 at 10:00:17AM -0700, Allen Martin wrote: Disable

[U-Boot] [PATCH v3 1/2] tools, config.mk: add binutils-version

2012-07-10 Thread Allen Martin
Modeled after gcc-version, add function to get binutils version. Signed-off-by: Allen Martin amar...@nvidia.com --- config.mk |1 + tools/binutils-version.sh | 20 2 files changed, 21 insertions(+) create mode 100755 tools/binutils-version.sh diff

[U-Boot] [PATCH v3 2/2] arm: work around assembler bug

2012-07-10 Thread Allen Martin
://sourceware.org/bugzilla/show_bug.cgi?id=12532 Signed-off-by: Allen Martin amar...@nvidia.com --- changes for v3: -split shell line to improve readability changes for v2: -changed GAS_BUG_12532 from yes/no to y/n to be consistent -added additional warning about code size increase --- arch/arm

Re: [U-Boot] [PATCH 2/7] HACK: rearrange link order for thumb

2012-07-09 Thread Allen Martin
On Sat, Jul 07, 2012 at 03:15:36AM -0700, Albert ARIBAUD wrote: Hi Allen, On Fri, 6 Jul 2012 16:17:19 -0700, Allen Martin amar...@nvidia.com wrote: On Fri, Jul 06, 2012 at 01:44:32PM -0700, Stephen Warren wrote: On 07/06/2012 02:33 PM, Allen Martin wrote: On Fri, Jul 06, 2012 at 12:09

[U-Boot] [PATCH 1/2] tools, config.mk: add binutils-version

2012-07-09 Thread Allen Martin
Modeled after gcc-version, add function to get binutils version. Signed-off-by: Allen Martin amar...@nvidia.com --- config.mk |1 + tools/binutils-version.sh | 20 2 files changed, 21 insertions(+) create mode 100755 tools/binutils-version.sh diff

[U-Boot] [PATCH 2/2] arm: work around assembler bug

2012-07-09 Thread Allen Martin
://sourceware.org/bugzilla/show_bug.cgi?id=12532 Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/config.mk | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm/config.mk b/arch/arm/config.mk index 3f4453a..1ba9d75 100644 --- a/arch/arm/config.mk +++ b/arch

Re: [U-Boot] [PATCH 2/7] HACK: rearrange link order for thumb

2012-07-07 Thread Allen Martin
On Sat, Jul 07, 2012 at 03:15:36AM -0700, Albert ARIBAUD wrote: Hi Allen, On Fri, 6 Jul 2012 16:17:19 -0700, Allen Martin amar...@nvidia.com wrote: On Fri, Jul 06, 2012 at 01:44:32PM -0700, Stephen Warren wrote: On 07/06/2012 02:33 PM, Allen Martin wrote: On Fri, Jul 06, 2012 at 12:09

[U-Boot] [PATCH 1/7] tegra20: remove inline assembly for u32 cast

2012-07-06 Thread Allen Martin
This inline assembly just converts a function address to a u32. Replace it with equivalent C code since the assembly was not thumb compatible. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/tegra20-common/warmboot_avp.c |9 + 1 file changed, 1 insertion(+), 8

[U-Boot] [PATCH 2/7] HACK: rearrange link order for thumb

2012-07-06 Thread Allen Martin
Rearrange the link order of libraries to avoid out of bound relocations in thumb mode. I have no idea how to fix this for real. Signed-off-by: Allen Martin amar...@nvidia.com --- Makefile |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index

[U-Boot] [PATCH 7/7] arm: change arm720t to armv4t

2012-07-06 Thread Allen Martin
arm720t is an armv4t not an armv4. Force some tegra initialization functions to arm mode because they contain arm only inline assembly. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/arm720t/config.mk |2 +- arch/arm/cpu/arm720t/tegra20/config.mk |7 +++ 2

[U-Boot] [PATCH 4/7] arm: add _thumb1_case_uqi to libgcc

2012-07-06 Thread Allen Martin
Add function required by some thumb switch statements Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/lib/Makefile |1 + arch/arm/lib/_thumb1_case_uqi.S | 41 +++ 2 files changed, 42 insertions(+) create mode 100644 arch/arm/lib

[U-Boot] [PATCH 6/7] arm: use thumb compatible return in arm720t

2012-07-06 Thread Allen Martin
Convert return from relocate_code to a thumb compatible bx instruction. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/arm720t/start.S |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/arm720t/start.S b/arch/arm/cpu/arm720t/start.S index 3371d3d

[U-Boot] [PATCH 0/7] tegra20: enable thumb

2012-07-06 Thread Allen Martin
This patch series enables thumb compile for tegra SPL and u-boot. It is not ready for review yet as it still contains a few hacks, but I'm posting it in case anyone finds it useful. This reduces the size of the combined SPL/u-boot by about 20%. I havent' measured if there's any change in boot

[U-Boot] [PATCH 3/7] tegra20: enable thumb build

2012-07-06 Thread Allen Martin
Signed-off-by: Allen Martin amar...@nvidia.com --- include/configs/tegra20-common.h |1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/tegra20-common.h b/include/configs/tegra20-common.h index bbb80d0..16466cc 100644 --- a/include/configs/tegra20-common.h +++ b/include/configs

[U-Boot] [PATCH 5/7] arm: add thumb compatible return instructions

2012-07-06 Thread Allen Martin
Convert return instructions to thumb compatible bx returns. Probably what's really needed here is a thumb version of all the libgcc assembly routines. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/lib/_udivsi3.S |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

Re: [U-Boot] [PATCH 2/7] HACK: rearrange link order for thumb

2012-07-06 Thread Allen Martin
On Fri, Jul 06, 2012 at 12:09:43PM -0700, Stephen Warren wrote: On 07/06/2012 12:08 PM, Allen Martin wrote: Rearrange the link order of libraries to avoid out of bound relocations in thumb mode. I have no idea how to fix this for real. Are the relocations branches or something else

Re: [U-Boot] [PATCH 3/7] tegra20: enable thumb build

2012-07-06 Thread Allen Martin
On Fri, Jul 06, 2012 at 12:10:18PM -0700, Stephen Warren wrote: On 07/06/2012 12:08 PM, Allen Martin wrote: git bisect probably requires this to be the final patch in the series? Yeah I'm sure git bisect is completely broken on the series right now, I'll fix it up when I remove all

Re: [U-Boot] [PATCH 2/7] HACK: rearrange link order for thumb

2012-07-06 Thread Allen Martin
On Fri, Jul 06, 2012 at 01:44:32PM -0700, Stephen Warren wrote: On 07/06/2012 02:33 PM, Allen Martin wrote: On Fri, Jul 06, 2012 at 12:09:43PM -0700, Stephen Warren wrote: On 07/06/2012 12:08 PM, Allen Martin wrote: Rearrange the link order of libraries to avoid out of bound relocations

Re: [U-Boot] [PATCH 2/7] HACK: rearrange link order for thumb

2012-07-06 Thread Allen Martin
On Fri, Jul 06, 2012 at 01:44:32PM -0700, Stephen Warren wrote: On 07/06/2012 02:33 PM, Allen Martin wrote: On Fri, Jul 06, 2012 at 12:09:43PM -0700, Stephen Warren wrote: On 07/06/2012 12:08 PM, Allen Martin wrote: Rearrange the link order of libraries to avoid out of bound relocations

Re: [U-Boot] [PATCH 2/7] HACK: rearrange link order for thumb

2012-07-06 Thread Allen Martin
On Fri, Jul 06, 2012 at 01:44:32PM -0700, Stephen Warren wrote: On 07/06/2012 02:33 PM, Allen Martin wrote: On Fri, Jul 06, 2012 at 12:09:43PM -0700, Stephen Warren wrote: On 07/06/2012 12:08 PM, Allen Martin wrote: Rearrange the link order of libraries to avoid out of bound relocations

Re: [U-Boot] [PATCH v6 00/15] split tegra20 arm7 code into separate SPL

2012-07-03 Thread Allen Martin
On Tue, Jul 03, 2012 at 06:55:48AM -0700, Thierry Reding wrote: ... Successfully booted to login prompt on TEC. Tested-by: Thierry Reding thierry.red...@avionic-design.de That's great news, it sounds like it was the USE_PRIVATE_LIBGCC problem. Thank you very much for finding that and

[U-Boot] [PATCH v6 03/15] tegra20: rename CONFIG_MACH_TEGRA_GENERIC

2012-07-02 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 Acked

[U-Boot] [PATCH v6 13/15] arm: enable libgcc build for SPL

2012-07-02 Thread Allen Martin
Enable the building of private libgcc for SPL Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/lib/Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile index 39a9550..bd3b77f 100644 --- a/arch/arm/lib/Makefile

[U-Boot] [PATCH v6 04/15] tegra20: tec: add tegra20-common-post.h

2012-07-02 Thread Allen Martin
Add tegra20-common-post.h to be consistent with other tegra20 boards. Signed-off-by: Allen Martin amar...@nvidia.com Acked-by: Thierry Reding thierry.red...@avionic-design.de Acked-by: Stephen Warren swar...@wwwdotorg.org --- include/configs/tec.h |2 ++ 1 file changed, 2 insertions(+) diff

[U-Boot] [PATCH v6 06/15] mkconfig: add support for SPL CPU

2012-07-02 Thread Allen Martin
build. Signed-off-by: Allen Martin amar...@nvidia.com Acked-by: Stephen Warren swar...@wwwdotorg.org --- boards.cfg |5 + doc/README.SPL | 12 mkconfig | 24 3 files changed, 33 insertions(+), 8 deletions(-) diff --git a/boards.cfg b

[U-Boot] [PATCH v6 08/15] tegra20: remove timer_init from SPL build

2012-07-02 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 Acked-by: Stephen Warren swar...@wwwdotorg.org --- board/nvidia/common/board.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/board/nvidia/common

[U-Boot] [PATCH v6 10/15] tegra20: add u-boot-*-tegra.bin targets

2012-07-02 Thread Allen Martin
Add target for tegra20 u-boot image. This is a concatenation of tegra spl and normal u-boot binaries. For non-devicetree builds this is named u-boot-nodtb-tegra.bin for devicetree builds is named u-boot-dtb-tegra.bin. Signed-off-by: Allen Martin amar...@nvidia.com --- Makefile | 14

[U-Boot] [PATCH v6 15/15] tegra20: Remove armv4t build flags

2012-07-02 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 Acked-by: Stephen Warren swar...@wwwdotorg.org

[U-Boot] [PATCH v6 00/15] split tegra20 arm7 code into separate SPL

2012-07-02 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 v6 07/15] ARM: Fix arm720t SPL build

2012-07-02 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 Acked-by: Stephen Warren swar

[U-Boot] [PATCH v6 11/15] tegra20: move SDRAM param save to later in boot

2012-07-02 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 v6 12/15] tegra20: enable SPL for tegra20 boards

2012-07-02 Thread Allen Martin
Add SPL options to tegra20 config files and enable SPL build for tegra20 boards. Also remove redundant code from u-boot that is not contained in SPL. Signed-off-by: Allen Martin amar...@nvidia.com --- Makefile |9 ++ arch/arm/cpu/armv7/start.S|2

[U-Boot] [PATCH v6 05/15] tegra20: make board mkdir commands unconditional

2012-07-02 Thread Allen Martin
Change the mkdir commands for the object directories to be unconditional. 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/medcom/Makefile |2 -- board

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

2012-07-02 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 Acked-by: Stephen Warren swar...@wwwdotorg.org

[U-Boot] [PATCH v6 14/15] spl: fix SPL build of private libgcc

2012-07-02 Thread Allen Martin
This fixes the SPL build to link with the SPL version of libgcc if USE_PRIVATE_LIBGCC is set to yes. Previously it was linking with the libgcc from the normal u-boot build because it gets set in PLATFORM_LIBS and passed down the to the SPL build. Signed-off-by: Allen Martin amar...@nvidia.com

[U-Boot] [PATCH v6 09/15] ARM: add tegra20 support to arm720t

2012-07-02 Thread Allen Martin
except for cache and MMU. Signed-off-by: Allen Martin amar...@nvidia.com Acked-by: Stephen Warren swar...@wwwdotorg.org --- arch/arm/cpu/arm720t/cpu.c |2 + arch/arm/cpu/arm720t/interrupts.c|5 + arch/arm/cpu/arm720t/start.S |6 +- arch/arm

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

2012-06-25 Thread Allen Martin
On Thu, Jun 21, 2012 at 05:00:39PM -0700, 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 SPLTREE. Signed-off-by: Allen Martin amar

[U-Boot] [PATCH v5 00/13] split tegra20 arm7 code into separate SPL

2012-06-25 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 v5 03/13] tegra20: rename CONFIG_MACH_TEGRA_GENERIC

2012-06-25 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 Acked

[U-Boot] [PATCH v5 10/13] tegra20: add u-boot-t2.bin target

2012-06-25 Thread Allen Martin
. Signed-off-by: Allen Martin amar...@nvidia.com --- Makefile | 21 + 1 file changed, 21 insertions(+) diff --git a/Makefile b/Makefile index b2275ed..a168d20 100644 --- a/Makefile +++ b/Makefile @@ -381,6 +381,17 @@ ONENAND_BIN ?= $(obj)onenand_ipl/onenand-ipl-2k.bin ALL

[U-Boot] [PATCH v5 08/13] tegra20: remove timer_init from SPL build

2012-06-25 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 Acked-by: Stephen Warren swar...@wwwdotorg.org --- board/nvidia/common/board.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/board/nvidia/common

[U-Boot] [PATCH v5 05/13] tegra20: make board mkdir commands unconditional

2012-06-25 Thread Allen Martin
Change the mkdir commands for the object directories to be unconditional. 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/medcom/Makefile |2 -- board

[U-Boot] [PATCH v5 06/13] mkconfig: add support for SPL CPU

2012-06-25 Thread Allen Martin
build. Signed-off-by: Allen Martin amar...@nvidia.com Acked-by: Stephen Warren swar...@wwwdotorg.org --- boards.cfg |5 + doc/README.SPL | 12 mkconfig | 24 3 files changed, 33 insertions(+), 8 deletions(-) diff --git a/boards.cfg b

[U-Boot] [PATCH v5 13/13] tegra20: Remove armv4t build flags

2012-06-25 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 Acked-by: Stephen Warren swar...@wwwdotorg.org

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

2012-06-25 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 Acked-by: Stephen Warren swar...@wwwdotorg.org

[U-Boot] [PATCH v5 12/13] tegra20: enable SPL for tegra20 boards

2012-06-25 Thread Allen Martin
Add SPL options to tegra20 config files and enable SPL build for tegra20 boards in boards.cfg. Also remove redundant code from u-boot that is not contained in SPL. Signed-off-by: Allen Martin amar...@nvidia.com Acked-by: Stephen Warren swar...@wwwdotorg.org --- arch/arm/cpu/armv7/start.S

[U-Boot] [PATCH v5 07/13] ARM: Fix arm720t SPL build

2012-06-25 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 Acked-by: Stephen Warren swar

[U-Boot] [PATCH v5 04/13] tegra20: tec: add tegra20-common-post.h

2012-06-25 Thread Allen Martin
Add tegra20-common-post.h to be consistent with other tegra20 boards. Signed-off-by: Allen Martin amar...@nvidia.com Acked-by: Thierry Reding thierry.red...@avionic-design.de Acked-by: Stephen Warren swar...@wwwdotorg.org --- include/configs/tec.h |2 ++ 1 file changed, 2 insertions(+) diff

[U-Boot] [PATCH v5 11/13] tegra20: move SDRAM param save to later in boot

2012-06-25 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 v5 09/13] ARM: add tegra20 support to arm720t

2012-06-25 Thread Allen Martin
except for cache and MMU. Signed-off-by: Allen Martin amar...@nvidia.com Acked-by: Stephen Warren swar...@wwwdotorg.org --- arch/arm/cpu/arm720t/cpu.c |2 + arch/arm/cpu/arm720t/interrupts.c|5 + arch/arm/cpu/arm720t/start.S |6 +- arch/arm

Re: [U-Boot] [PATCH v5 00/13] split tegra20 arm7 code into separate SPL

2012-06-25 Thread Allen Martin
On Mon, Jun 25, 2012 at 04:04:28PM -0700, Stephen Warren wrote: On 06/25/2012 04:55 PM, Allen Martin wrote: 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

Re: [U-Boot] [PATCH v4 01/13] tegra20: rename tegra2 - tegra20

2012-06-22 Thread Allen Martin
On Fri, Jun 22, 2012 at 11:13:10AM -0700, Stephen Warren wrote: On 06/21/2012 06:00 PM, Allen Martin wrote: 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 Acked

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

2012-06-22 Thread Allen Martin
On Fri, Jun 22, 2012 at 11:15:55AM -0700, Stephen Warren wrote: On 06/21/2012 06:00 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

[U-Boot] [PATCH v4 0/13] split tegra20 arm7 code into separate SPL

2012-06-21 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 v4 08/13] tegra20: remove timer_init from SPL build

2012-06-21 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 v4 02/13] tegra20: move tegra20 SoC code to arch/arm/cpu/tegra20-common

2012-06-21 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 v4 11/13] tegra20: move SDRAM param save to later in boot

2012-06-21 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 v4 04/13] tegra20: tec: add tegra20-common-post.h

2012-06-21 Thread Allen Martin
Add tegra20-common-post.h to be consistent with other tegra20 boards. Signed-off-by: Allen Martin amar...@nvidia.com Acked-by: Thierry Reding thierry.red...@avionic-design.de --- include/configs/tec.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/tec.h b/include

[U-Boot] [PATCH v4 06/13] mkconfig: add support for SPL CPU

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

[U-Boot] [PATCH v4 07/13] ARM: Fix arm720t SPL build

2012-06-21 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 v4 03/13] tegra20: rename CONFIG_MACH_TEGRA_GENERIC

2012-06-21 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 v4 13/13] tegra20: Remove armv4t build flags

2012-06-21 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 v4 12/13] tegra20: enable SPL for tegra20 boards

2012-06-21 Thread Allen Martin
Add SPL options to tegra20 config files and enable SPL build for tegra20 boards in boards.cfg. Also remove redundant code from u-boot that is not contained in SPL. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/armv7/start.S|2 - arch/arm/cpu/tegra20-common/ap20

[U-Boot] [PATCH v4 10/13] tegra20: add u-boot-t2.bin target

2012-06-21 Thread Allen Martin
Add target for tegra20 u-boot image. This is a concatenation of tegra spl and normal u-boot binaries. For non-devicetree builds this is named u-boot-t2.bin for devicetree builds is named u-boot-dtb-t2.bin. Signed-off-by: Allen Martin amar...@nvidia.com --- Makefile | 13 + 1 file

[U-Boot] [PATCH v4 09/13] ARM: add tegra20 support to arm720t

2012-06-21 Thread Allen Martin
except for cache and MMU. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/arm720t/cpu.c |2 + arch/arm/cpu/arm720t/interrupts.c|5 + arch/arm/cpu/arm720t/start.S |6 +- arch/arm/cpu/arm720t/tegra20/Makefile| 48

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

2012-06-21 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

Re: [U-Boot] [PATCH v3 01/14] tegra20: rename tegra2 - tegra20

2012-06-12 Thread Allen Martin
On Fri, Jun 08, 2012 at 02:54:17PM -0700, Tom Warren wrote: Allen, -Original Message- From: Allen Martin [mailto:amar...@nvidia.com] Sent: Friday, June 08, 2012 2:16 PM To: Tom Warren; swar...@wwwdotorg.org; s...@chromium.org; thierry.red...@avionic-design.de Cc: u-boot

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

2012-06-11 Thread Allen Martin
On Mon, Jun 11, 2012 at 02:29:59AM -0700, Thierry Reding wrote: * PGP Signed by an unknown key * Stephen Warren wrote: Allen Martin amar...@nvidia.com wrote: 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

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

2012-06-11 Thread Allen Martin
On Mon, Jun 11, 2012 at 02:29:59AM -0700, Thierry Reding wrote: * PGP Signed by an unknown key * Stephen Warren wrote: Allen Martin amar...@nvidia.com wrote: 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

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

2012-06-11 Thread Allen Martin
On Sat, Jun 09, 2012 at 11:20:34AM -0700, Simon Glass wrote: + +Normally CPU is assumed to be the same between the SPL and normal +u-boot build. However it is possible to specify a different CPU for +the SPL build for cases where the SPL is expected to run on a +different CPU model from the

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

2012-06-11 Thread Allen Martin
On Sat, Jun 09, 2012 at 11:32:08AM -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 support for tegra20 arm7 boot processor. This processor is used to power on the Cortex A9 and transfer control

<    1   2   3   4   5   6   >