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

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

[U-Boot] [PATCH] Tegra: clk: always use find_best_divider() for periph clocks

2013-05-10 Thread Allen Martin
. This comes up for commands like sf where the user can pass a clock speed on the command line or sspi where the clock is hardcoded to 1MHz, but the Tegra114 SPI controller can't go that low. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/cpu/tegra-common/clock.c | 10 +- 1 file

Re: [U-Boot] [PATCH] Tegra: clk: always use find_best_divider() for periph clocks

2013-05-13 Thread Allen Martin
On Mon, May 13, 2013 at 10:24:17AM -0700, Tom Warren wrote: Allen, -Original Message- From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass Sent: Friday, May 10, 2013 8:06 PM To: Allen Martin Cc: Tom Warren; Stephen Warren; U-Boot Mailing List Subject: Re

Re: [U-Boot] [PATCH] Tegra: clk: always use find_best_divider() for periph clocks

2013-05-13 Thread Allen Martin
On Mon, May 13, 2013 at 10:24:17AM -0700, Tom Warren wrote: Allen, -Original Message- From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass Sent: Friday, May 10, 2013 8:06 PM To: Allen Martin Cc: Tom Warren; Stephen Warren; U-Boot Mailing List Subject: Re

Re: [U-Boot] [PATCH v2 07/13] sf: winbond: add W25Q32DW

2013-05-28 Thread Allen Martin
On Fri, May 24, 2013 at 01:39:51PM -0700, Jagan Teki wrote: Hi, Any update on this. Thanks, Jagan. On Thu, May 23, 2013 at 1:15 PM, Jagan Teki jagannadh.t...@gmail.com wrote: Hi Allen, On Sun, Mar 17, 2013 at 10:28 AM, Allen Martin amar...@nvidia.com wrote: Add support

Re: [U-Boot] [RFC Patch v6] Consolidate bool type

2013-01-30 Thread Allen Martin
On Wed, Jan 30, 2013 at 11:47:57AM -0800, York Sun wrote: On 01/30/2013 11:40 AM, Allen Martin wrote: On Wed, Jan 30, 2013 at 10:37:30AM -0800, York Sun wrote: On 01/24/2013 05:00 PM, Allen Martin wrote: I think you can drop the RFC from your patch at this point. Built on all tegra20

Re: [U-Boot] [PATCH v2] arm: fix CONFIG_DELAY_ENVIRONMENT to act like it claims in the README

2013-01-30 Thread Allen Martin
On Tue, Jan 22, 2013 at 06:12:47AM -0800, Simon Glass wrote: On Tue, Jan 22, 2013 at 2:15 AM, Lucas Stach d...@lynxeye.de wrote: No one expects to end up in a delayed environment if CONFIG_DELAY_ENVIRONMENT isn't defined. Signed-off-by: Lucas Stach d...@lynxeye.de Good with me, and

Re: [U-Boot] [RFC Patch v6] Consolidate bool type

2013-01-30 Thread Allen Martin
On Wed, Jan 30, 2013 at 03:09:56PM -0800, York Sun wrote: On 01/30/2013 02:53 PM, Allen Martin wrote: On Wed, Jan 30, 2013 at 11:47:57AM -0800, York Sun wrote: On 01/30/2013 11:40 AM, Allen Martin wrote: On Wed, Jan 30, 2013 at 10:37:30AM -0800, York Sun wrote: On 01/24/2013 05:00 PM

Re: [U-Boot] [PATCH v2] arm: fix CONFIG_DELAY_ENVIRONMENT to act like it claims in the README

2013-01-30 Thread Allen Martin
On Wed, Jan 30, 2013 at 04:31:42PM -0800, Tom Rini wrote: * PGP Signed by an unknown key On Wed, Jan 30, 2013 at 03:04:53PM -0800, Allen Martin wrote: On Tue, Jan 22, 2013 at 06:12:47AM -0800, Simon Glass wrote: On Tue, Jan 22, 2013 at 2:15 AM, Lucas Stach d...@lynxeye.de wrote

Re: [U-Boot] [PATCH v3 7/7] Tegra114: Add/enable Dalmore build (T114 reference board)

2013-02-01 Thread Allen Martin
On Mon, Jan 28, 2013 at 03:32:13PM -0800, Tom Warren wrote: This build is stripped down. It boots to the command prompt. GPIO is the only peripheral supported. Others TBD. Signed-off-by: Tom Warren twar...@nvidia.com --- Changes in v2: - update all new copyright header dates to 2013 - use

[U-Boot] [PATCH 08/14] tegra114: fdt: add compatible string for tegra114 SPI ctrl

2013-02-12 Thread Allen Martin
Add nvidia,tegra114-spi to represent t114 SPI controller hardware. Signed-off-by: Allen Martin amar...@nvidia.com --- include/fdtdec.h |1 + lib/fdtdec.c |1 + 2 files changed, 2 insertions(+) diff --git a/include/fdtdec.h b/include/fdtdec.h index 77f244f..1b20f72 100644

[U-Boot] [PATCH 02/14] tegra: spi: remove non fdt support

2013-02-12 Thread Allen Martin
Remove non fdt support from tegra20 and tegra30 SPI drivers in preparation of new common fdt based SPI driver front end. Signed-off-by: Allen Martin amar...@nvidia.com --- drivers/spi/tegra20_spi.c | 12 drivers/spi/tegra30_spi.c | 29 - 2 files

[U-Boot] [PATCH 14/14] tegra114: dalmore: config: enable SPI

2013-02-12 Thread Allen Martin
Turn on SPI in dalmore config file Signed-off-by: Allen Martin amar...@nvidia.com --- include/configs/dalmore.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/configs/dalmore.h b/include/configs/dalmore.h index ce32c80..e7df60b 100644 --- a/include/configs/dalmore.h

[U-Boot] [PATCH 00/14] tegra114 SPI driver

2013-02-12 Thread Allen Martin
This series pulls fdt functionality from the existing tegra20 and tegra30 SPI drivers into a new common fdt SPI driver front end, then adds a new tegra114 SPI driver as an additional client of the fdt SPI driver. Allen Martin (14): tegra: spi: rename tegra SPI drivers tegra: spi: remove non

[U-Boot] [PATCH 07/14] tegra114: dalmore: add SPI pinmux config

2013-02-12 Thread Allen Martin
Configure pinmux for SPI4 controller. Signed-off-by: Allen Martin amar...@nvidia.com --- board/nvidia/dalmore/pinmux-config-dalmore.h |9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/board/nvidia/dalmore/pinmux-config-dalmore.h b/board/nvidia/dalmore/pinmux-config

[U-Boot] [PATCH 12/14] tegra114: dalmore: fdt: enable dalmore SPI controller

2013-02-12 Thread Allen Martin
Dalmore has a SPI flash part attached to controller 4, so enable controller 4 and set to 25MHz. Signed-off-by: Allen Martin amar...@nvidia.com --- board/nvidia/dts/tegra114-dalmore.dts |5 + 1 file changed, 5 insertions(+) diff --git a/board/nvidia/dts/tegra114-dalmore.dts b/board

[U-Boot] [PATCH 11/14] tegra114: fdt: add SPI blocks

2013-02-12 Thread Allen Martin
Add nodes for t114 SPI controller hardware Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/dts/tegra114.dtsi | 72 1 file changed, 72 insertions(+) diff --git a/arch/arm/dts/tegra114.dtsi b/arch/arm/dts/tegra114.dtsi index f8b4605

[U-Boot] [PATCH 04/14] tegra20: spi: move fdt probe to spi_init

2013-02-12 Thread Allen Martin
Make the tegra20 SPI driver similar to the tegra30 (and soon to be tegra114) SPI drivers in preparation of common fdt SPI driver front end. Signed-off-by: Allen Martin amar...@nvidia.com --- drivers/spi/tegra20_spi.c | 110 +++-- 1 file changed, 67

[U-Boot] [PATCH 09/14] tegra114: fdt: add CAR block

2013-02-12 Thread Allen Martin
Add node for clock and reset controller hardware. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/dts/tegra114.dtsi |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/tegra114.dtsi b/arch/arm/dts/tegra114.dtsi index d06cd12..bd969aa 100644 --- a/arch/arm/dts

[U-Boot] [PATCH 10/14] tegra114: fdt: add apbdma block

2013-02-12 Thread Allen Martin
Add node for apbdma controller hardware. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/dts/tegra114.dtsi | 37 + 1 file changed, 37 insertions(+) diff --git a/arch/arm/dts/tegra114.dtsi b/arch/arm/dts/tegra114.dtsi index bd969aa..f8b4605

[U-Boot] [PATCH 03/14] tegra: spi: pull register structs out of headers

2013-02-12 Thread Allen Martin
Move register structs from headers into .c files and use common name. This is in preparation of making common fdt front end for SPI drivers. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/include/asm/arch-tegra20/tegra20_spi.h | 13 - arch/arm/include/asm/arch-tegra30

[U-Boot] [PATCH 05/14] spi: add common fdt SPI driver interface

2013-02-12 Thread Allen Martin
Add a common interface to fdt based SPI drivers. Each driver is represented by a table entry in fdt_spi_drivers[]. If there are multiple SPI drivers in the table, the first driver to return success from spi_init() will be registered as the SPI driver. Signed-off-by: Allen Martin amar

[U-Boot] [PATCH 06/14] sf: winbond: add W25Q32DW

2013-02-12 Thread Allen Martin
Add support for Winbond W25Q32DW 32Mbit part Signed-off-by: Allen Martin amar...@nvidia.com --- drivers/mtd/spi/winbond.c |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi/winbond.c b/drivers/mtd/spi/winbond.c index f6aab3d..9156957 100644 --- a/drivers/mtd/spi

[U-Boot] [PATCH 13/14] tegra114: add SPI driver

2013-02-12 Thread Allen Martin
Add driver for tegra114 SPI controller. This controller is not compatible with either the tegra20 or tegra30 controllers, so it requires a new driver. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/include/asm/arch-tegra114/tegra114_spi.h | 91 ++ drivers/spi/Makefile

[U-Boot] [PATCH 01/14] tegra: spi: rename tegra SPI drivers

2013-02-12 Thread Allen Martin
Rename tegra SPI drivers to tegra20_spi and tegra30_spi in preparation for commonization and addition of tegra114_spi. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/include/asm/arch-tegra/tegra_slink.h | 84 -- arch/arm/include/asm/arch-tegra/tegra_spi.h | 75

Re: [U-Boot] [PATCH 03/14] tegra: spi: pull register structs out of headers

2013-02-14 Thread Allen Martin
On Wed, Feb 13, 2013 at 02:32:44PM -0800, Stephen Warren wrote: On 02/12/2013 08:23 PM, Allen Martin wrote: Move register structs from headers into .c files and use common name. This is in preparation of making common fdt front end for SPI drivers. Why not move all the register defines

Re: [U-Boot] [PATCH 01/14] tegra: spi: rename tegra SPI drivers

2013-02-14 Thread Allen Martin
On Wed, Feb 13, 2013 at 02:30:26PM -0800, Stephen Warren wrote: On 02/12/2013 08:23 PM, Allen Martin wrote: Rename tegra SPI drivers to tegra20_spi and tegra30_spi in preparation for commonization and addition of tegra114_spi. This isn't logically quite right. Both types (sflash, slink

Re: [U-Boot] [PATCH 01/14] tegra: spi: rename tegra SPI drivers

2013-02-14 Thread Allen Martin
On Wed, Feb 13, 2013 at 02:36:10PM -0800, Stephen Warren wrote: On 02/12/2013 08:23 PM, Allen Martin wrote: Rename tegra SPI drivers to tegra20_spi and tegra30_spi in preparation for commonization and addition of tegra114_spi. board/nvidia/common/uart-spi-switch.c |2

Re: [U-Boot] [PATCH 05/14] spi: add common fdt SPI driver interface

2013-02-14 Thread Allen Martin
On Wed, Feb 13, 2013 at 02:40:29PM -0800, Stephen Warren wrote: On 02/12/2013 08:23 PM, Allen Martin wrote: Add a common interface to fdt based SPI drivers. Each driver is represented by a table entry in fdt_spi_drivers[]. If there are multiple SPI drivers in the table, the first driver

Re: [U-Boot] [PATCH 05/14] spi: add common fdt SPI driver interface

2013-02-14 Thread Allen Martin
On Thu, Feb 14, 2013 at 12:21:34PM -0800, Stephen Warren wrote: On 02/14/2013 01:07 PM, Allen Martin wrote: On Wed, Feb 13, 2013 at 02:40:29PM -0800, Stephen Warren wrote: On 02/12/2013 08:23 PM, Allen Martin wrote: Add a common interface to fdt based SPI drivers. Each driver

Re: [U-Boot] [PATCH 13/14] tegra114: add SPI driver

2013-02-14 Thread Allen Martin
On Thu, Feb 14, 2013 at 06:32:06AM -0800, Simon Glass wrote: Hi Allen, On Wed, Feb 13, 2013 at 2:59 PM, Stephen Warren swar...@wwwdotorg.org wrote: On 02/12/2013 08:23 PM, Allen Martin wrote: Subject: tegra114: add SPI driver This really touches the SPI sub-system more than Tegra

Re: [U-Boot] [PATCH v2 4/9] arm: add _thumb1_case_uqi to libgcc

2012-08-13 Thread Allen Martin
On Mon, Aug 13, 2012 at 04:44:05PM -0700, Stephen Warren wrote: On 08/01/2012 02:32 PM, Allen Martin wrote: Add function required by some thumb switch statements diff --git a/arch/arm/lib/_thumb1_case_uqi.S b/arch/arm/lib/_thumb1_case_uqi.S + .force_thumb I believe that line

Re: [U-Boot] [PATCH 0/2]: arm: Provide lowlevel_init C function wrapper for v7

2012-08-15 Thread Allen Martin
On Thu, Aug 09, 2012 at 09:01:54AM -0700, Tom Rini wrote: Hey all, As Allen Martin noted, on tegra platforms a bug is exposed when using certain toolchains that currently calls to lowlevel_init must be calls to another assembly function as the stack is not explicitly setup / saved and thus

Re: [U-Boot] [PATCH 1/2] omap4/5/am33xx: Make lowlevel_init available to all armv7 platforms

2012-08-15 Thread Allen Martin
...@ti.com --- Tested-by: Allen Martin amar...@nvidia.com -- nvpublic ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 2/2] armv7: Make lowlevel_init.S's lowlevel_init do ABI compatible stack

2012-08-15 Thread Allen Martin
On Thu, Aug 09, 2012 at 09:01:56AM -0700, Tom Rini wrote: Make sure that when we setup the stack before calling s_init() we have the stack have 8-byte alignment for ABI compliance. Signed-off-by: Tom Rini tr...@ti.com --- Tested-by: Allen Martin amar...@nvidia.com -- nvpublic

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

2012-08-15 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 v8 00/15] split tegra20 arm7 code into separate SPL

2012-08-15 Thread Allen Martin
this patch series 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

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

2012-08-15 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 Signed-off

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

2012-08-15 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 v8 14/15] spl: fix SPL build of private libgcc

2012-08-15 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 v8 08/15] tegra20: remove timer_init from SPL build

2012-08-15 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 Signed-off-by: Tom Warren twar...@nvidia.com --- board

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

2012-08-15 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 Signed-off-by: Tom Warren twar...@nvidia.com --- arch/arm/lib/Makefile |2 +- 1 file changed

[U-Boot] [PATCH v8 07/15] ARM: Fix arm720t SPL build

2012-08-15 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 v8 10/15] tegra20: add u-boot-*-tegra.bin targets

2012-08-15 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 v8 06/15] mkconfig: add support for SPL CPU

2012-08-15 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 Signed-off-by: Tom Warren twar...@nvidia.com --- boards.cfg |5 + doc/README.SPL | 12 mkconfig | 25

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

2012-08-15 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 v8 15/15] tegra20: Remove armv4t build flags

2012-08-15 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 v8 05/15] tegra20: make board mkdir commands unconditional

2012-08-15 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 v8 09/15] ARM: add tegra20 support to arm720t

2012-08-15 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 Signed-off-by: Tom Warren twar...@nvidia.com --- arch/arm/cpu/arm720t/cpu.c |2 + arch/arm/cpu

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

2012-08-15 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

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

2012-08-15 Thread Allen Martin
On Wed, Aug 15, 2012 at 01:44:17PM -0700, 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 this was accomplished by #ifdefing out any armv7

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

2012-08-15 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 | 42 +++ 2 files changed, 43 insertions(+) create mode 100644 arch/arm/lib

[U-Boot] [PATCH v3 0/9] enable thumb for tegra20

2012-08-15 Thread Allen Martin
available from: git://github.com/arm000/u-boot.git branch: tegra-thumb-v3 Changes: v3: - rebased on top of v8 of SPL series - added linkage macro patch to _thumb1_case_uqu from Stephen Warren Allen Martin (9): tools, config.mk: add binutils-version arm: work around assembler bug tegra20

[U-Boot] [PATCH v3 5/9] arm: use thumb compatible return in arm720t

2012-08-15 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 2f914e9

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

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

[U-Boot] [PATCH v3 3/9] tegra20: remove inline assembly for u32 cast

2012-08-15 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 v3 7/9] arm720t: add linkage macro for relocate_code

2012-08-15 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

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

2012-08-15 Thread Allen Martin
If CONFIG_SYS_THUMB_BUILD is enabled, use thumb interworking return instructions from libgcc routines, otherwise use ARM returns. Signed-off-by: Allen Martin amar...@nvidia.com --- arch/arm/include/asm/assembler.h | 10 ++ arch/arm/lib/_ashldi3.S |3 ++- arch/arm/lib

[U-Boot] [PATCH v3 6/9] arm: change arm720t to armv4t

2012-08-15 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 v3 9/9] tegra20: enable thumb build

2012-08-15 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 1c0d235..e6d42b0 100644 --- a/include/configs/tegra20-common.h +++ b/include/configs

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

2012-08-15 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] mkconfig: add support for SPL CPU

2012-08-15 Thread Allen Martin
On Thu, Aug 09, 2012 at 01:38:19PM -0700, Wolfgang Denk wrote: Dear Allen Martin, In message 1334858337-2853-1-git-send-email-amar...@nvidia.com you wrote: Add support for specifying a differnt CPU for main u-boot and SPL u-boot builds. This is done by adding an optional SPL CPU after

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

2012-08-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 Signed-off

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

2012-08-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 v9 14/15] spl: fix SPL build of private libgcc

2012-08-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 v9 00/15] split tegra20 arm7 code into separate SPL

2012-08-16 Thread Allen Martin
related to init sequence changes between this patch series 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

[U-Boot] [PATCH v9 07/15] ARM: Fix arm720t SPL build

2012-08-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 v9 05/15] tegra20: make board mkdir commands unconditional

2012-08-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 v9 11/15] tegra20: move SDRAM param save to later in boot

2012-08-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 v9 09/15] ARM: add tegra20 support to arm720t

2012-08-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 Signed-off-by: Tom Warren twar...@nvidia.com --- arch/arm/cpu/arm720t/cpu.c |2 + arch/arm/cpu

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

2012-08-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 Signed-off-by: Tom Warren twar...@nvidia.com --- board

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

2012-08-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 v9 02/15] tegra20: move tegra20 SoC code to arch/arm/cpu/tegra20-common

2012-08-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 v9 13/15] arm: enable libgcc build for SPL

2012-08-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 Signed-off-by: Tom Warren twar...@nvidia.com --- arch/arm/lib/Makefile |2 +- 1 file changed

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

2012-08-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 v9 03/15] tegra20: rename CONFIG_MACH_TEGRA_GENERIC

2012-08-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 v9 06/15] mkconfig: remove bashisms and cleanup config.mk generation

2012-08-16 Thread Allen Martin
This adds some cleanup to mkconfig related to SPL support. Bash specific script has been replaced with awk for better shell compatibility. config.mk generation is done through a subshell and single redirect to improve readability. Signed-off-by: Allen Martin amar...@nvidia.com --- mkconfig

Re: [U-Boot] [PATCH v9 07/15] ARM: Fix arm720t SPL build

2012-08-17 Thread Allen Martin
On Thu, Aug 16, 2012 at 04:03:15PM -0700, Zhong Hongbo wrote: On 08/17/2012 05:04 AM, Allen Martin wrote: @@ -167,6 +177,7 @@ stack_setup: adr r0, _start cmp r0, r6 + moveq r9, #0 /* no relocation. relocation offset(r9) = 0 */ Hi Allen, I have already

[U-Boot] [PATCH] MAKEALL: update to work with new boards.cfg syntax

2012-08-28 Thread Allen Martin
Update MAKEALL to handle the optional SPL CPU field that was added to boards.cfg. This impacts the cases in MAKEALL that have to match against CPU type (field 3). In these cases use ':' as a field separator to split the u-boot CPU from the SPL CPU. Signed-off-by: Allen Martin amar...@nvidia.com

[U-Boot] [PATCH v10 07/16] MAKEALL: update to work with new boards.cfg syntax

2012-08-28 Thread Allen Martin
Update MAKEALL to handle the optional SPL CPU field that was added to boards.cfg. This impacts the cases in MAKEALL that have to match against CPU type (field 3). In these cases use ':' as a field separator to split the u-boot CPU from the SPL CPU. Signed-off-by: Allen Martin amar...@nvidia.com

[U-Boot] [PATCH v10 03/16] tegra20: rename CONFIG_MACH_TEGRA_GENERIC

2012-08-28 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 v10 06/16] mkconfig: remove bashisms and cleanup config.mk generation

2012-08-28 Thread Allen Martin
This adds some cleanup to mkconfig related to SPL support. Bash specific script has been replaced with awk for better shell compatibility. config.mk generation is done through a subshell and single redirect to improve readability. Signed-off-by: Allen Martin amar...@nvidia.com Signed-off

[U-Boot] [PATCH v10 11/16] tegra20: add u-boot-*-tegra.bin targets

2012-08-28 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 v10 09/16] tegra20: remove timer_init from SPL build

2012-08-28 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 Signed-off-by: Tom Warren twar...@nvidia.com --- board

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

2012-08-28 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 Signed-off

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

2012-08-28 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 v10 00/16] split tegra20 arm7 code into separate SPL

2012-08-28 Thread Allen Martin
to clean up ifdefs from seabard.h - rebased to TOT u-boot/master and fixed a bug related to init sequence changes between this patch series and new EMC code - made u-boot.t2 target work even if CONFIG_OF is disabled - added back USE_PRIVATE_LIBGCC Allen Martin (16): tegra20: rename tegra2

[U-Boot] [PATCH v10 14/16] arm: enable libgcc build for SPL

2012-08-28 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 Signed-off-by: Tom Warren twar...@nvidia.com --- arch/arm/lib/Makefile |2 +- 1 file changed

[U-Boot] [PATCH v10 05/16] tegra20: make board mkdir commands unconditional

2012-08-28 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 v10 13/16] tegra20: enable SPL for tegra20 boards

2012-08-28 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 v10 16/16] tegra20: Remove armv4t build flags

2012-08-28 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 v10 10/16] ARM: add tegra20 support to arm720t

2012-08-28 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 Signed-off-by: Tom Warren twar...@nvidia.com --- arch/arm/cpu/arm720t/cpu.c |2 + arch/arm/cpu

[U-Boot] [PATCH v10 08/16] ARM: Fix arm720t SPL build

2012-08-28 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 v10 12/16] tegra20: move SDRAM param save to later in boot

2012-08-28 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 v10 15/16] spl: fix SPL build of private libgcc

2012-08-28 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] ./MAKEALL arm is buggy

2012-08-29 Thread Allen Martin
On Wed, Aug 29, 2012 at 09:55:17AM -0700, Tom Warren wrote: Allen/Albert, -Original Message- From: Allen Martin [mailto:amar...@nvidia.com] Sent: Tuesday, August 28, 2012 5:08 PM To: Tom Warren; swar...@wwwdotorg.org; s...@chromium.org; thierry.red...@avionic-design.de; d

  1   2   3   4   5   6   >