Re: [U-Boot] [PATCH 00/17]: ARM: SPL: Make more generic, merge DaVinci and OMAP

2012-08-15 Thread Stefan Roese
Hi Tom, On 08/15/2012 11:30 PM, Tom Rini wrote: > The following patch series merges the davinci and omap-common SPL > frameworks into a single framework, CONFIG_SPL_FRAMEWORK along with a > few small cleanups to the code to make it a little smaller and more > flexible. The end result is that davi

[U-Boot] [PATCH 3/4 v2] arm: Support new Xilinx Zynq platform

2012-08-15 Thread Michal Simek
Add timer driver. Signed-off-by: Michal Simek --- v2: Move lowlevel_init.S from board to cpu folder Remove XPSS prefix Rename XSCUTIMER -> SCUTIMER Keep timer in zynq folder till ARM custodian comments it. --- arch/arm/cpu/armv7/zynq/Makefile| 52 +++ arch/arm/cpu/arm

[U-Boot] [PATCH 4/4 v3] xilinx: Add new Zynq board

2012-08-15 Thread Michal Simek
Add support for Xilinx Zynq board. Signed-off-by: Michal Simek --- v2: Forget to also add config file v3: Change name for serial driver Remove lowlevel_init from board folder Remove XPSS part from timer baseaddr Change name for Zynq gem driver Clean coding style Remove mac +

[U-Boot] [PATCH 2/4 v2] net: Add driver for Zynq Gem IP

2012-08-15 Thread Michal Simek
Device driver for Zynq Gem IP. Signed-off-by: Michal Simek CC: Joe Hershberger --- v2: Remove phylib protection Rename driver file name xilinx_gem to zynq_gem Rename XEMACPSS to ZYNQ_GEM Rename gemac_priv to zynq_gem_priv Rename gem_regs to zynq_gem_regs Add zynq_ prefix to

[U-Boot] [PATCH 1/4 v2] serial: Add Zynq serial driver

2012-08-15 Thread Michal Simek
The driver is used on Xilinx Zynq platform. Signed-off-by: Michal Simek --- v2: Use Zynq name instead of Dragonfire and XPSS/XDFUART Rename driver name Remove driver description --- drivers/serial/Makefile |1 + drivers/serial/serial_zynq.c | 200 ++

Re: [U-Boot] [PATCH 4/4 v2] xilinx: Add new Zynq board

2012-08-15 Thread Michal Simek
Hi Joe, On 08/15/2012 07:31 PM, Joe Hershberger wrote: Hi Michal, On Wed, Aug 15, 2012 at 3:49 AM, Michal Simek wrote: Hi Joe, sorry missed this one. On 08/14/2012 05:48 PM, Joe Hershberger wrote: Are you thinking that this will be the one and only Zynq board? Perhaps a layout like what

Re: [U-Boot] [PATCH 0/8] video: support newly exynos5 display feature

2012-08-15 Thread Minkyu Kang
Hi, On 2 July 2012 20:15, Donghwa Lee wrote: > This patch set supports newly exynos5 display features. > > [1/8] EXYNOS5: support exynos5 lcd clock control > [2/8] EXYNOS5: support display system register control > [3/8] EXYNOS5: support display port phy control function > [4/8] EXYNOS5: add disp

[U-Boot] [PATCH v2 5/5] at91: 9x5: Enable PMECC for 5series ek board.

2012-08-15 Thread Josh Wu
Signed-off-by: Josh Wu --- include/configs/at91sam9x5ek.h |7 +++ 1 file changed, 7 insertions(+) diff --git a/include/configs/at91sam9x5ek.h b/include/configs/at91sam9x5ek.h index f8bd870..32f9469 100644 --- a/include/configs/at91sam9x5ek.h +++ b/include/configs/at91sam9x5ek.h @@ -122,

[U-Boot] [PATCH v2 4/5] at91: 9x5: change SMC config timing that both works for PMECC & non-PMECC.

2012-08-15 Thread Josh Wu
Signed-off-by: Josh Wu --- board/atmel/at91sam9x5ek/at91sam9x5ek.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/board/atmel/at91sam9x5ek/at91sam9x5ek.c b/board/atmel/at91sam9x5ek/at91sam9x5ek.c index 17db0fd..8dc24ab 100644 --- a/board/atmel/at91sam9x5ek/at

[U-Boot] [PATCH v2 2/5] at91: atmel_nand: remove unused variables.

2012-08-15 Thread Josh Wu
Signed-off-by: Josh Wu --- drivers/mtd/nand/atmel_nand.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 113da93..9dc003e 100644 --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/nand/atmel_nand.c @@

[U-Boot] [PATCH v2 3/5] at91: atmel_nand: Update driver to support Programmable Multibit ECC controller

2012-08-15 Thread Josh Wu
The Programmable Multibit ECC (PMECC) controller is a programmable binary BCH(Bose, Chaudhuri and Hocquenghem) encoder and decoder. This controller can be used to support both SLC and MLC NAND Flash devices. It supports to generate ECC to correct 2, 4, 8, 12 or 24 bits of error per sector of data.

[U-Boot] [PATCH v2 1/5] at91: atmel_nand: extract HWECC initialization code into one function: atmel_hw_nand_init_param().

2012-08-15 Thread Josh Wu
Extract the hwecc initialization code into one function. It is a preparation for adding atmel PMECC support. Signed-off-by: Josh Wu --- drivers/mtd/nand/atmel_nand.c | 108 ++--- 1 file changed, 57 insertions(+), 51 deletions(-) diff --git a/drivers/mtd/nan

[U-Boot] [PATCH v2 0/5] at91: 9x5: Enable PMECC(Programmable Multibit ECC controller) support

2012-08-15 Thread Josh Wu
This patch series will add PMECC support for atmel at91sam9x5ek in u-boot. The NAND flash driver patch is ported from kernel patch. The main different from kernel patch is the modification about registers access part. in this version it via a register structure to access. It is tested in atmel

[U-Boot] [PATCH 3/3] arm : at91sam9x5 : fix a small bug for NAND

2012-08-15 Thread Bo Shen
fix a bug: when not boot from NAND, the NAND flash can not be detected. Using this to fix it Signed-off-by: Bo Shen --- board/atmel/at91sam9x5ek/at91sam9x5ek.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/board/atmel/at91sam9x5ek/at91sam9x5ek.c b/board/atmel/at91sam9x5ek/at91sam

[U-Boot] [PATCH 2/3] arm : at91sam9x5 : enable serial flash boot

2012-08-15 Thread Bo Shen
enable at91sam9x5 boot from serial flash Use at91sam9x5_dataflash to configure the u-boot Signed-off-by: Bo Shen --- arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c |4 ++-- boards.cfg |1 + include/configs/at91sam9x5ek.h | 18

[U-Boot] [PATCH 1/3] spi: add atmel at25df321 serial flash support

2012-08-15 Thread Bo Shen
Add atmel at25df321 serial flash support Signed-off-by: Bo Shen --- drivers/mtd/spi/atmel.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/mtd/spi/atmel.c b/drivers/mtd/spi/atmel.c index 1ecece0..89ebe9d 100644 --- a/drivers/mtd/spi/atmel.c +++ b/drivers/mtd/spi/atmel.

[U-Boot] [PATCH 0/3] Enable at91sam9x5 boot from serial flash

2012-08-15 Thread Bo Shen
This series patches enable at91sam9x5 boot from serial flash Bo Shen (3): spi: add atmel at25db321 serial flash support arm : at91sam9x5 : enable serial flash boot arm : at91sam9x5 : make nand available when not boot from nand arch/arm/cpu/arm926ejs/at91/at91sam9x5_devices.c |4 ++-- b

Re: [U-Boot] [PATCH] km/arm: set SPI NOR Flash default parameters

2012-08-15 Thread Prafulla Wadaskar
> -Original Message- > From: Valentin Longchamp [mailto:valentin.longch...@keymile.com] > Sent: 15 August 2012 20:46 > To: Prafulla Wadaskar > Cc: u-boot@lists.denx.de; Holger Brunck > Subject: Re: [PATCH] km/arm: set SPI NOR Flash default parameters > > Hi Prafulla, > > On 08/14/2012 0

Re: [U-Boot] [PATCH v2] kw_spi: fix clock prescaler computation

2012-08-15 Thread Prafulla Wadaskar
> -Original Message- > From: Valentin Longchamp [mailto:valentin.longch...@keymile.com] > Sent: 15 August 2012 21:02 > To: u-boot@lists.denx.de > Cc: Valentin Longchamp; Holger Brunck; Prafulla Wadaskar > Subject: [PATCH v2] kw_spi: fix clock prescaler computation > > The computation was

[U-Boot] [PATCH] powerpc/mpc85xx:Add new ext fields to Freescale's IFC

2012-08-15 Thread Prabhakar Kushwaha
Freescale's Integrated Flash controller(IFC) v1.1.0 supports 40 bit address bus width. In case more than 32 bit address is used, the new ext registers should be set. Add support of ext registers. Signed-off-by: Kumar Gala Signed-off-by: York Sun Signed-off-by: Prabhakar Kushwaha --- Based upo

[U-Boot] [PATCH] hwconfig: Move HWCONFIG_BUFFER_SIZE into hwconfig.h

2012-08-15 Thread York Sun
Before proper environment is setup, we extract hwconfig and put it into a buffer with size HWCONFIG_BUFFER_SIZE. We need to enlarge the buffer to accommodate longer string. Since this macro is used in multiple files, we move it into hwconfig.h. Signed-off-by: York Sun --- arch/powerpc/cpu/mpc85

[U-Boot] [V2] disk/partition: Fix the depend for all the partitions file

2012-08-15 Thread Zhong Hongbo
From: Zhong Hongbo all the patitions should depend CONFIG_PARTITIONS, no the CONFIG_CMD_$(device). The device symbol may be SATA, SCSI, USB, MMC, SYSTEMACE. Or else when the filesystem command be enabled, But board's configure file can not include any CONFIG_CMD_$(device), The u-boot will fail bu

Re: [U-Boot] [Patch 15/16] add standalone link script

2012-08-15 Thread Daniel Schwierzeck
why don't you use CONFIG_64BIT like you did in board/qemu_mips/u-boot.lds? 2012/8/14 Zhi-zhou Zhang : > diff --git a/examples/standalone/mips64.lds b/examples/standalone/mips64.lds > new file mode 100644 > index 000..00b96da > --- /dev/null > +++ b/examples/standalone/mips64.lds > @@ -0,0 +1,5

Re: [U-Boot] [Patch 11/16] make size_t equal to unsigned int

2012-08-15 Thread Daniel Schwierzeck
2012/8/14 Zhi-zhou Zhang : > err.. maybe a bug of gcc? In my memory, size_t is equaled to unsigned int. > > diff --git a/arch/mips/include/asm/posix_types.h > b/arch/mips/include/asm/posix_types.h > index 879aae2..86a866a 100644 > --- a/arch/mips/include/asm/posix_types.h > +++ b/arch/mips/include/

Re: [U-Boot] [Patch 12/16] add config about mips64

2012-08-15 Thread Daniel Schwierzeck
2012/8/14 Zhi-zhou Zhang : > diff --git a/board/qemu-mips/config.mk b/board/qemu-mips/config.mk > index 27cd34a..6a3d7a7 100644 > --- a/board/qemu-mips/config.mk > +++ b/board/qemu-mips/config.mk > @@ -2,9 +2,16 @@ > # Qemu -M mips system emulator > # See http://fabrice.bellard.free.fr/qemu > #

Re: [U-Boot] [Patch 5/16] add mips64/cpu.h

2012-08-15 Thread Daniel Schwierzeck
wrong email subject add mips64/cpu.h. You are adding cpu.c. 2012/8/14 Zhi-zhou Zhang : > diff --git a/arch/mips/cpu/mips64/cpu.c b/arch/mips/cpu/mips64/cpu.c > new file mode 100644 > index 000..1ead349 > --- /dev/null > +++ b/arch/mips/cpu/mips64/cpu.c > @@ -0,0 +1,116 @@ > +/* > + * (C) Copyr

Re: [U-Boot] [Patch 4/16] add mips64/config.mk

2012-08-15 Thread Daniel Schwierzeck
2012/8/14 Zhi-zhou Zhang : > diff --git a/arch/mips/cpu/mips64/config.mk b/arch/mips/cpu/mips64/config.mk > new file mode 100644 > index 000..cec250a > --- /dev/null > +++ b/arch/mips/cpu/mips64/config.mk > @@ -0,0 +1,36 @@ > +# > +# (C) Copyright 2003 > +# Wolfgang Denk, DENX Software Engineer

Re: [U-Boot] [Patch 1/17] add mips64 build configuration in mips/config.mk

2012-08-15 Thread Daniel Schwierzeck
2012/8/14 Zhi-zhou Zhang : > diff --git a/arch/mips/config.mk b/arch/mips/config.mk > index 6ab8acd..12df150 100644 > --- a/arch/mips/config.mk > +++ b/arch/mips/config.mk > @@ -23,9 +23,13 @@ > > CROSS_COMPILE ?= mips_4KC- > > +ifeq "$(CPU)" "mips64" > +CONFIG_STANDALONE_LOAD_ADDR ?= 0xFfffFfff80

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 a

[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 --- config.mk |1 + tools/binutils-version.sh | 20 2 files changed, 21 insertions(+) create mode 100755 tools/binutils-version.sh diff --git a/config.mk b/co

[U-Boot] [PATCH v3 9/9] tegra20: enable thumb build

2012-08-15 Thread Allen Martin
Signed-off-by: Allen Martin --- 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/tegra20-common.h @

[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 --- arch/arm/cpu/arm720t/config.mk |2 +- arch/arm/cpu/arm720t/tegra20/config.mk |7 +++ 2 files changed, 8 ins

[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 --- arch/arm/include/asm/assembler.h | 10 ++ arch/arm/lib/_ashldi3.S |3 ++- arch/arm/lib/_ashrdi3.S |

[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 --- arch/arm/cpu/arm720t/start.S |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/cpu/arm720t/start.S b/

[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 --- arch/arm/cpu/tegra20-common/warmboot_avp.c |9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a

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

2012-08-15 Thread Allen Martin
Disable sibling call optimization based on binutils version. This is to work around a bug in the assember in binutils versions < 2.22. Branches to weak symbols can be incorrectly optimized in thumb mode to a short branch (b.n instruction) that won't reach when the symbol gets preempted. http://so

[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 --- 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..013da46 100644 --

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

2012-08-15 Thread Allen Martin
Add changes necessary to enable thumb compilation for tegra20. This series includes two patches to work around a bug in gas that incorrectly optimizes short jumps in thumb mode that were posted separately. They can be dropped from this series when they are applied. This patch series is also avai

[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 --- arch/arm/lib/Makefile |1 + arch/arm/lib/_thumb1_case_uqi.S | 42 +++ 2 files changed, 43 insertions(+) create mode 100644 arch/arm/lib/_thumb1_case_uqi.S d

[U-Boot] [PATCH 03/17] ARM: SPL: Move the omap SPL framework to arch/arm/lib

2012-08-15 Thread Tom Rini
Add a new flag, CONFIG_SPL_FRAMEWORK to opt into the arch/arm/lib SPL framework, enable on all of the previously using boards. Signed-off-by: Tom Rini --- README |5 + arch/arm/cpu/armv7/omap-common/Makefile | 13 -- arch/arm/cpu/armv7/omap-common/s

[U-Boot] [PATCH 15/17] ARM: SPL: Convert davinci to CONFIG_SPL_FRAMEWORK

2012-08-15 Thread Tom Rini
- Convert the non-relocation part of board_init_f to spl_board_init, turn on CONFIG_SPL_BOARD_INIT in the configs. - Remove duplicated code. - Add spl_boot_device() that returns the statically chosen boot device. Signed-off-by: Tom Rini --- arch/arm/cpu/arm926ejs/davinci/spl.c| 45 ++

[U-Boot] [PATCH 04/17] Makefile: Move SPL files to clobber, remove from clean

2012-08-15 Thread Tom Rini
The 'clean' target has been removing all of spl but not u-boot itself. For consistency and ease of testing, only remove SPL binaries / maps in the clobber target, just like for full U-Boot Signed-off-by: Tom Rini --- Makefile | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-)

Re: [U-Boot] [Patch 0/17] New 'qemu-mips64' test architecture for U-Boot

2012-08-15 Thread Daniel Schwierzeck
Hi, 2012/8/15 Zhi-zhou Zhang : > On Tue, Aug 14, 2012 at 11:51 PM, Mike Frysinger wrote: > >> On Tuesday 14 August 2012 11:49:49 Mike Frysinger wrote: >> > On Tuesday 14 August 2012 11:06:51 Zhi-zhou Zhang wrote: >> > > As so far, U-Boot has already supports mips32. But there are some >> > > >>

[U-Boot] [PATCH 16/17] SPL: Enhance drivers/mtd/nand/nand_spl_load.c

2012-08-15 Thread Tom Rini
Takes the load function from arch/arm/lib/spl_nand.c instead. This will allow for easier integration of SPL-boots-Linux code on other arches. Kill off CONFIG_SPL_NAND_LOAD as a separate option. Signed-off-by: Tom Rini --- arch/arm/cpu/arm926ejs/davinci/spl.c |2 +- arch/arm/lib/Makefile

[U-Boot] [PATCH 17/17] ARM: SPL: Enhance spi_spl_load to match the other load functions

2012-08-15 Thread Tom Rini
Signed-off-by: Tom Rini --- arch/arm/include/asm/spl.h |2 +- arch/arm/lib/spl.c |4 ++-- drivers/mtd/spi/spi_spl_load.c | 23 --- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/arch/arm/include/asm/spl.h b/arch/arm/include/asm/spl.h

[U-Boot] [PATCH 11/17] ARM: SPL: Make spl_mmc.c more generic

2012-08-15 Thread Tom Rini
Move the default omap/related-centric board_mmc_init to arch/arm/cpu/armv7/omap-common/boot-common.c and move the type defines to Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/omap-common/boot-common.c | 16 arch/arm/cpu/armv7/omap3/board.c | 15 +++

[U-Boot] [PATCH 12/17] ARM: SPL: Clean up spl.c / spl_nand.c slightly

2012-08-15 Thread Tom Rini
- Remove includes we don't need - Switch some printf statements to puts - Convert some printf statements to debug, introduce new puts statements - In most cases saying just "No mkimage signature, assuming u-boot.bin" or similar is sufficient. This also means the non-DEBUG case doesn't ne

[U-Boot] [PATCH 14/17] ARM: SPL: Move gpmc_init() to spl_board_init()

2012-08-15 Thread Tom Rini
This is an OMAP/related-specific function, move calling it to spl_board_init() and turn on CONFIG_SPL_BOARD_INIT on the boards that enabled NAND and didn't enable this already. Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/omap-common/boot-common.c |7 +++ arch/arm/cpu/armv7/omap3/board

[U-Boot] [PATCH 10/17] ARM: SPL: Add and

2012-08-15 Thread Tom Rini
Move the SPL prototypes from into and add for arch specific portions of CONFIG_SPL_FRAMEWORK. Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/am33xx/board.c |2 +- arch/arm/cpu/armv7/omap-common/hwinit-common.c |2 +- arch/arm/cpu/armv7/omap3/board.c |1 +

[U-Boot] [PATCH 13/17] ARM: SPL: Start hooking in the current SPI SPL support

2012-08-15 Thread Tom Rini
Signed-off-by: Tom Rini --- arch/arm/include/asm/spl.h |3 +++ arch/arm/lib/spl.c |5 + 2 files changed, 8 insertions(+) diff --git a/arch/arm/include/asm/spl.h b/arch/arm/include/asm/spl.h index 41036e9..f0eb96f 100644 --- a/arch/arm/include/asm/spl.h +++ b/arch/arm/include/

[U-Boot] [PATCH 09/17] ARM: SPL: Only call mem_malloc_init if configured

2012-08-15 Thread Tom Rini
We can only attempt to setup a malloc pool if CONFIG_SYS_SPL_MALLOC_START is defined, and not all boards require it. Make the call depend on the define. Signed-off-by: Tom Rini --- arch/arm/lib/spl.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/lib/spl.c b/arch/arm/lib/spl.c

[U-Boot] [PATCH 07/17] omap-common: Fix typo in lowlevel_init.S::save_boot_params

2012-08-15 Thread Tom Rini
Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/omap-common/lowlevel_init.S |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv7/omap-common/lowlevel_init.S b/arch/arm/cpu/armv7/omap-common/lowlevel_init.S index d4ce0af..dafe18b 100644 --- a/arch/arm/cpu/armv7

[U-Boot] [PATCH 08/17] ARM: SPL: Remove NAND_MODE_HW_ECC from spl_nand.c

2012-08-15 Thread Tom Rini
This detection code doesn't (and can't) do anything currently, so remove. Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/omap3/board.c |3 --- arch/arm/include/asm/omap_common.h |1 - arch/arm/lib/spl_nand.c| 13 +++-- 3 files changed, 3 insertions(+), 14 deletion

[U-Boot] [PATCH 05/17] ARM: SPL: Rename omap_boot_device to spl_boot_device

2012-08-15 Thread Tom Rini
Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/omap-common/boot-common.c |2 +- arch/arm/cpu/armv7/omap-common/lowlevel_init.S |4 ++-- arch/arm/cpu/armv7/omap3/board.c |4 ++-- arch/arm/include/asm/omap_common.h |2 +- arch/arm/lib/spl.c

[U-Boot] [PATCH 06/17] ARM: SPL: Rename omap_boot_mode to spl_boot_mode()

2012-08-15 Thread Tom Rini
Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/omap-common/boot-common.c |2 +- arch/arm/cpu/armv7/omap3/board.c |2 +- arch/arm/include/asm/omap_common.h |2 +- arch/arm/lib/spl_mmc.c |2 +- arch/arm/lib/spl_nand.c

[U-Boot] [PATCH 02/17] omap-common: SPL: Add CONFIG_SPL_DISPLAY_PRINT / spl_display_print()

2012-08-15 Thread Tom Rini
Only omap4/5 currently have a meaningful set of display text and overo had been adding a function to display nothing. Change how this works to be opt-in and only turned on for omap4/5 now. Signed-off-by: Tom Rini --- README |4 arch/arm/cpu/armv7

[U-Boot] [PATCH 01/17] spl_mmc: Make FAT checks / calls guarded with CONFIG_SPL_FAT_SUPPORT

2012-08-15 Thread Tom Rini
Signed-off-by: Tom Rini --- arch/arm/cpu/armv7/omap-common/spl_mmc.c |4 1 file changed, 4 insertions(+) diff --git a/arch/arm/cpu/armv7/omap-common/spl_mmc.c b/arch/arm/cpu/armv7/omap-common/spl_mmc.c index 2f921bb..7552f6c 100644 --- a/arch/arm/cpu/armv7/omap-common/spl_mmc.c +++ b/a

[U-Boot] [PATCH 00/17]: ARM: SPL: Make more generic, merge DaVinci and OMAP

2012-08-15 Thread Tom Rini
Hey all, The following patch series merges the davinci and omap-common SPL frameworks into a single framework, CONFIG_SPL_FRAMEWORK along with a few small cleanups to the code to make it a little smaller and more flexible. The end result is that davinci can now opt in on SPL-boots-Linux by just s

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 ar

[U-Boot] [PATCH 1/1] mx51/mx53/mx6: add watchdog

2012-08-15 Thread Troy Kisky
Signed-off-by: Troy Kisky --- arch/arm/cpu/armv7/imx-common/Makefile |1 + arch/arm/cpu/armv7/imx-common/watchdog.c | 32 ++ 2 files changed, 33 insertions(+) create mode 100644 arch/arm/cpu/armv7/imx-common/watchdog.c diff --git a/arch/arm/cpu/armv7/imx-comm

[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 Acked-by: Stephen Warren Tested-by: Thierry Reding Signed-off-by: Tom Warren --- Makefile

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

2012-08-15 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. In tegra this processor is an ARM7TDMI not an ARM720T, but since we don't use cache it was easier to just reuse the ARM720T code as the processors are otherwise identical exce

[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 Acked-by: Stephen Warren Tested-by: Thierry Reding Signed-off-by: Tom Warren ---

[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 Acked-by: Stephen Warren Tested-by: Thierry Reding Signed-off-by: Tom

[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 Acked-by: Stephen Warren Tested-by: Thierry Reding Signed-off-by:

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

2012-08-15 Thread Allen Martin
Add support for specifying a different CPU for main u-boot and SPL u-boot builds. This is done by adding an optional SPL CPU after the main CPU in boards.cfg as follows: normal_cpu:spl_cpu This this case CPU will be set to "normal_cpu" during the main u-boot build and "spl_cpu" during the S

[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 Acked-by: Stephen Warren Tested-by: Thierry

[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 Acked-by: Stephen Warren Tested-by: Thierry Reding Signed-of

[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 Acked-by: Stephen Warren Tested-by: Thierry Reding Signed-off-by: Tom Warren --- arch/arm/lib/Makefile |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile

[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 Acked-by: Stephen Warren Tested-by: Thierry Reding Signed-off-by: Tom Warren --- board/nvidia/common/board.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/board/nvidia

[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 Acked-by: Stephen W

[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 Acked-by

[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 Acked-by: Thierry Reding Acked-by: Stephen Warren Tested-by: Thierry Reding Signed-off-by: Tom Warren --- include/configs/tec.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/include/c

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

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

[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 Acked-by: Stephen Warren Tested-

[U-Boot] [PATCH 1/3] phy: add phy_connect_by_mask

2012-08-15 Thread Troy Kisky
It is useful to be able to try a range of possible phy addresses to connect. Signed-off-by: Troy Kisky --- drivers/net/phy/phy.c | 108 +++-- include/phy.h |2 + 2 files changed, 71 insertions(+), 39 deletions(-) diff --git a/drivers/net/

[U-Boot] [PATCH 2/3] fec_mxc: use phy_connect_by_mask

2012-08-15 Thread Troy Kisky
Allow board config files to list a range of possible phy addresses, in case the exact phy address is not certain. Signed-off-by: Troy Kisky --- drivers/net/fec_mxc.c | 21 +++-- drivers/net/fec_mxc.h |3 ++- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/dr

[U-Boot] [PATCH 3/3] mx6qsabrelite: set CONFIG_FEC_MXC_PHYMASK

2012-08-15 Thread Troy Kisky
Different ethernet jacks parts can result in the Micrel KSZ9021 getting a different phy address. Let's support all parts. Signed-off-by: Troy Kisky --- include/configs/mx6qsabrelite.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/configs/mx6qsabrelite.h b/include

[U-Boot] [PATCH V4 1/3] imx-common/cmd_bmode.c: add imx bmode (bootmode) command

2012-08-15 Thread Troy Kisky
This is useful for forcing the ROM's usb downloader to activate upon a watchdog reset. Or, you can boot from either SD Card. Currently, support added for MX53 and MX6Q Signed-off-by: Troy Kisky Note: MX53 support untested. --- v4: replaced some occurrances of reset s/reset/boot/ or s/reset/b/

[U-Boot] [PATCH V4 2/3] mx6qsabrelite: add boot_mode support

2012-08-15 Thread Troy Kisky
This allows a watchdog reset to start the ROM's usb downloader, or boot from an sdcard. Signed-off-by: Troy Kisky --- board/freescale/mx6qsabrelite/mx6qsabrelite.c | 14 ++ include/configs/mx6qsabrelite.h |3 +++ 2 files changed, 17 insertions(+) diff --git a/boa

[U-Boot] [PATCH V4 3/3] mx53evk: add boot_mode support

2012-08-15 Thread Troy Kisky
This allows a watchdog reset to start the ROM's usb/serial downloader, or boot from an sdcard. Signed-off-by: Troy Kisky --- Compile tested only, I don't have a mx53evk. --- board/freescale/mx53evk/mx53evk.c | 13 + include/configs/mx53evk.h |3 +++ 2 files changed, 16

[U-Boot] [PATCH 1/1] iomux: move IOMUX_GPR13_xxx defines

2012-08-15 Thread Troy Kisky
Move mx6 specific defines to arch-mx6 directory. Signed-off-by: Troy Kisky --- arch/arm/include/asm/arch-mx6/iomux.h | 129 + arch/arm/include/asm/imx-common/iomux-v3.h| 111 - board/freescale/mx6qsabrelite/mx6qsabrelite.c |1 + 3 fil

[U-Boot] [PATCH] patman: Do not Cc addresses included in To list

2012-08-15 Thread Otavio Salvador
In case an address is listed in the To list, those will be skipped on Cc list or user might end with a duplicated message. This fixes the case when a tag points to same address used as series destination thus avoiding duplicated sending. Signed-off-by: Otavio Salvador --- tools/patman/series.py

[U-Boot] [PATCH 2/2] MX28: Move "regs-base.h" include after SoC type configuration

2012-08-15 Thread Otavio Salvador
For i.MX233 addition the base registers need to be change so the SoC definition needs to be known before the header include. The following boards has been changed: * apx4devkit * m28evk * mx28evk * sc_sps_1 Signed-off-by: Otavio Salvador --- include/configs/apx4devkit.h |4 ++-- includ

[U-Boot] [PATCH 1/2] MX28: config: Allow different target generation in elftosb call

2012-08-15 Thread Otavio Salvador
The elftosb call needs to use a target param specific for i.MX28. This patch allow for later addition of i.MX233. Signed-off-by: Otavio Salvador --- Makefile |5 - arch/arm/cpu/arm926ejs/mxs/{u-boot.bd => u-boot.bd.imx28} |0 2 files c

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 > --- Tested-by: Allen Martin -- nvpublic __

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

2012-08-15 Thread Allen Martin
On Thu, Aug 09, 2012 at 09:01:55AM -0700, Tom Rini wrote: > Make the lowlevel_init function that these platforms have which just > sets up the stack and calls a C function available to all armv7 > platforms. As part of this we change some of the macros that are used > to be more clear. Previously

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

Re: [U-Boot] [PATCH 01/13] mxc nand: Merge mtd and spl register definitions

2012-08-15 Thread Benoît Thébaudeau
Hi Stefano, On 08/14/2012 04:29:04 PM, Benoît Thébaudeau wrote: > Hi Stefano, > > > On 14/08/2012 13:13, Benoît Thébaudeau wrote: > > > Hi Stefano, > > > > > > > Hi Benoît, > > > > >> We have currently only two boards supporting this mechanismus, > > >> using > > >> MX25 (karo tx25) and MX31.

Re: [U-Boot] [PATCH 4/4 v2] xilinx: Add new Zynq board

2012-08-15 Thread Joe Hershberger
Hi Michal, On Wed, Aug 15, 2012 at 3:49 AM, Michal Simek wrote: > Hi Joe, > > sorry missed this one. > > > On 08/14/2012 05:48 PM, Joe Hershberger wrote: >> >> Are you thinking that this will be the one and only Zynq board? >> Perhaps a layout like what Xilinx has in their branch is more >> appro

[U-Boot] [PATCH 2/2] README.SPL: Move the 'Estimating stack usage' from omap3 to here

2012-08-15 Thread Tom Rini
The instructions are generic, so move to the generic doc. Signed-off-by: Tom Rini --- doc/README.SPL | 23 +++ doc/SPL/README.omap3 | 22 -- 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/doc/README.SPL b/doc/README.SPL index bd

[U-Boot] [PATCH 1/2] README.SPL: Add a small Debugging section

2012-08-15 Thread Tom Rini
Signed-off-by: Tom Rini --- doc/README.SPL |7 +++ 1 file changed, 7 insertions(+) diff --git a/doc/README.SPL b/doc/README.SPL index e4a5ac3..bd375a0 100644 --- a/doc/README.SPL +++ b/doc/README.SPL @@ -78,3 +78,10 @@ an SPL CPU in boards.cfg as follows: This this case CPU will be se

Re: [U-Boot] [PATCH 1/3] powerpc/fsl-corenet: remove dead variant symbols

2012-08-15 Thread Scott Wood
On 08/15/2012 09:21 AM, Kumar Gala wrote: > > On Aug 14, 2012, at 4:45 PM, Scott Wood wrote: > >> On 08/14/2012 04:31 PM, Kumar Gala wrote: >>> >>> On Aug 14, 2012, at 3:14 PM, Scott Wood wrote: >>> These are not supported as individual build targets, but instead are supported by anothe

Re: [U-Boot] [PATCHv2 1/2] mpc85xx: Initial SP alignment is wrong.

2012-08-15 Thread Scott Wood
On 08/15/2012 02:10 AM, Joakim Tjernlund wrote: > Kumar Gala wrote on 2012/08/14 23:28:45: >> >> >> On Jul 23, 2012, at 3:58 PM, Joakim Tjernlund wrote: >> >>> PowerPC mandates SP to be 16 bytes aligned. >>> Furthermore, a stack frame is added, pointing to the reset vector >>> which may in the way

Re: [U-Boot] usb_test_unit_ready called every block read - performance

2012-08-15 Thread Jim Shimer
Hi Marek, I looked at the ext4 branch. It looks like he has the patch to remove the usb_test_unit_ready() calls which were not needed. Actually those calls are commented out on that branch: #if 0 if (usb_test_unit_ready(srb, ss)) { printf("Device NOT ready\n Request Sens

Re: [U-Boot] usb_test_unit_ready called every block read - performance

2012-08-15 Thread Jim Shimer
Marek/Benoit, Thanks so much for integrating this. I like the way you reused the flags, and simplified the code. Regards, Jim On Tue, Aug 14, 2012 at 1:57 PM, Steve Heckman wrote: > Marek, > > That looks good to me. Jim? > > Thanks, > Steve > > On Tue, Aug 14, 2012 at 1:50 PM, Marek Vasut wr

Re: [U-Boot] [PATCH 1/4] serial: Add Dragonfire serial driver

2012-08-15 Thread John Williams
On Wed, Aug 15, 2012 at 3:17 AM, Michal Simek wrote: > On 08/14/2012 06:45 PM, Joe Hershberger wrote: > >> Hi Michal, >> >> On Tue, Aug 14, 2012 at 11:38 AM, Michal Simek wrote: >> >>> On 08/14/2012 04:09 PM, Joe Hershberger wrote: >>> Hi Michal, On Tue, Aug 14, 2012 at 6:42

Re: [U-Boot] [PATCH 1/1] lib, panic: don't call do_reset in SPL (debug).

2012-08-15 Thread Tom Rini
On Tue, Aug 14, 2012 at 10:40:50PM +0200, Jeroen Hofstee wrote: > Several omap boards won't build when DEBUG is defined, SPL build error: > "vsprintf.c:791: undefined reference to `do_reset'", since SPL has no > commands. Therefore don't call do_reset in SPL. SPL panic will end in an > endless loo

Re: [U-Boot] [PATCH 2/6] davinci: ea20: the console is always set to the serial line

2012-08-15 Thread Stefano Babic
On 10/08/2012 09:26, Bastian Ruppert wrote: > Do not allow to overwrite it when video is enabled. > > Signed-off-by: Bastian Ruppert > CC: Tom Rini > CC: Stefano Babic > --- Acked-by: Stefano Babic Best regards, Stefano Babic -- =

Re: [U-Boot] [PATCH 1/6] davinci: ea20: reorganisation LCD startup

2012-08-15 Thread Stefano Babic
On 10/08/2012 09:26, Bastian Ruppert wrote: > Signed-off-by: Bastian Ruppert > CC: Tom Rini > CC: Stefano Babic > --- > board/davinci/ea20/ea20.c | 23 +++ > 1 files changed, 15 insertions(+), 8 deletions(-) > > diff --git a/board/davinci/ea20/ea20.c b/board/davinci/ea20/

  1   2   >