[U-Boot] [PATCH v2] cp/cmp: Add WATCHDOG_RESET in copy and compare loop

2010-08-31 Thread Stefan Roese
On some boards with a very short watchdog timeout, the "cp" and "cmp" commands may reset the board. This patch adds some watchdog resets inside the loops. Otherwise for example the lwmon5 board will reset while doing something like this: => cp.b fc00 100 10 Signed-off-by: Stefan Roese

[U-Boot] [PATCH NET 2/2] Net: clarify board/cpu_eth_init calls

2010-08-31 Thread Ben Warren
This has always been confusing, and the idea of these functions returning the number of interfaces initialized was half-baked and ultimately pointless. Instead, act more like regular functions and return < 0 on failure, >= 0 on success. This change shouldn't break anything. Signed-off-by: Ben War

[U-Boot] [PATCH NET 1/2] Net: Remove redundant CONFIG_NET_MULTI directives

2010-08-31 Thread Ben Warren
All are within an #ifdef CONFIG_NET_MULTI block already Signed-off-by: Ben Warren --- net/eth.c | 16 1 files changed, 4 insertions(+), 12 deletions(-) diff --git a/net/eth.c b/net/eth.c index 993306f..5c70d4f 100644 --- a/net/eth.c +++ b/net/eth.c @@ -263,7 +263,6 @@ int eth

[U-Boot] [PATCH] support spi gpio driver by control gpio bitbang

2010-08-31 Thread Donghwa Lee
This patch adds basic support for spi mode 0~3 by control gpio bitbang. It uses several gpio pin and emulates spi chipselect signal, clock signal and sda signal as if spi controller generate spi signal. Signed-off-by: Donghwa Lee http://lists.denx.de/mailman/listinfo/u-boot>> --- drivers/spi/s

Re: [U-Boot] Hi

2010-08-31 Thread Tobias Waldekranz (Knutsson)
You can find the official port of u-boot for the Hawkboard over at hawkboard.org, but if you want to build the latest version of u-boot that can be done as well. The Hawkboard is very similar to the DA850 EVM so as a first step, you could simply build u-boot for that board and it should boot just

Re: [U-Boot] [PATCH 2/4] net: Move Emaclite to NET_MULTI

2010-08-31 Thread Ben Warren
Hi Michal, Sorry for the delay in reviewing On 8/2/2010 5:49 AM, Michal Simek wrote: > Emaclite was using old net api that's why > this patch move emaclite to NET_MULTI api. > > Signed-off-by: Michal Simek > --- > drivers/net/xilinx_emaclite.c | 84 > +++

Re: [U-Boot] "UnCorrectable RS-ECC Error" occurs when reading NAND flash under u-boot 2009.08 for i.mx25

2010-08-31 Thread dajiang
Scott Wood-2 wrote: > > On Fri, 27 Aug 2010 20:35:12 -0700 > > Could you try it on current U-Boot? It should already have support for > i.mx25's NAND controller in drivers/mtd/nand/mxc_nand.c. > >> I make a simply testing process, what I do is, firstly, I only erase page >> 0 of block 0, >

Re: [U-Boot] [PATCH 8/8] APM82xxx: Add top level common file changes

2010-08-31 Thread Stefan Roese
Hi Marri, On Wednesday 01 September 2010 00:35:32 Tirumala Marri wrote: > > > Add bluestone board name to the board.cfg. > > > Change Makefile to include bluestone board support. > > > > Not needed with board.cfg now. Please remove your changes to Makefile. > > [Marri] You mean we only need boa

Re: [U-Boot] [PATCH 0/2] fix little endian build

2010-08-31 Thread Xiangfu Liu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/01/2010 08:48 AM, Shinya Kuribayashi wrote: > On 8/31/2010 10:36 AM, Shinya Kuribayashi wrote: >>> As said in the previous mail the patch is tentative and won't >>> work with ELDK, and as fas as I could see nothing has been >>> changed since my v

[U-Boot] [PATCH v1 2/2] APM82xxx: Add bluestone board support

2010-08-31 Thread tmarri
From: Tirumala Marri Add support code for bluestone board wth APM82XXX processor based. This patch includes early board init, misc init, configure EBC, initializes UIC, MAKEALL, board.cfg and MAINTAINERS file. Signed-off-by: Tirumala R Marri --- V1: * Remove "All rights reserved" phrase from

[U-Boot] [PATCH v1 1/2] Add CPU and other peripheral support

2010-08-31 Thread tmarri
From: Tirumala Marri APM82XXX is a new line of SoCs which are derivatives of PPC44X family of processors. This patch adds support of CPU, cache, tlb, 32k ocm, bootstraps, PLB AHB bus, DDR and Some common register definitions. Signed-off-by: Tirumala R Marri --- V1: * Squash some of the patc

[U-Boot] [PATCH v1 0/2] Add support for new SoC APM82XXX

2010-08-31 Thread tmarri
From: Tirumala Marri APM8 is Applied Micro Circuits Corporations naming convention for new line of SoCs. V1: * Squash some of the patches. * add space between "||" and "\". * Add spaces around operators. * Unsigned int to u32. * Add empty line which was removed. * remove warning

Re: [U-Boot] [PATCH 0/2] fix little endian build

2010-08-31 Thread Shinya Kuribayashi
On 8/31/2010 10:36 AM, Shinya Kuribayashi wrote: >> As said in the previous mail the patch is tentative and won't >> work with ELDK, and as fas as I could see nothing has been >> changed since my version. > > So I'm overlooking something, will have to think about it. Oh, I remember now. The aim

[U-Boot] Duplicate environment variables in RAM?!?

2010-08-31 Thread dbrazeau
For some variables, for example "ipaddr", when I try to change them using "setenv" it does not update the current "ipaddr" variable in RAM it creates a new one and append it to the end of the variable list. As a result I end up having two "ipaddr" variables in RAM, one with the original value an

Re: [U-Boot] [PATCH 00/11] ARMV7: OMAP: Add support for OMAP36XX/37XX, cleanup OMAP3 common code

2010-08-31 Thread Paulraj, Sandeep
> > On Tue, 2010-08-31 at 16:21 -0700, Steve Sakoman wrote: > > This patch series adds support for TI's OMAP36XX/377XX processors and > > modifies the Beagle and Overo board files to support upcoming versions > > of these boards based upon processors from the OMAP36XX/37XX families. > > > > A num

Re: [U-Boot] [PATCH 08/11] mtd: nand: honor CONFIG_SYS_NAND_QUIET_TEST with unknown NAND printk

2010-08-31 Thread Paulraj, Sandeep
> > This printk was added recently and results in ugly output on systems > with no NAND: > > NAND: nand_get_flash_type: unknown NAND device: Manufacturer ID: 0x00, > Chip ID: 0x00 0 MiB > > instead of: > > NAND: 0 MiB Scott, What do you think of this patch? > > Signed-off-by: Steve Sa

Re: [U-Boot] [PATCH 00/11] ARMV7: OMAP: Add support for OMAP36XX/37XX, cleanup OMAP3 common code

2010-08-31 Thread Steve Sakoman
On Tue, 2010-08-31 at 16:21 -0700, Steve Sakoman wrote: > This patch series adds support for TI's OMAP36XX/377XX processors and > modifies the Beagle and Overo board files to support upcoming versions > of these boards based upon processors from the OMAP36XX/37XX families. > > A number of cleanup

[U-Boot] [PATCH 03/11] ARMV7: OMAP3: Fix and clean up L2 cache enable/disable functions

2010-08-31 Thread Steve Sakoman
From: Mans Rullgard On OMAP34xx ES1.0, the L2 enable bit can only be set in secure mode, so an SMC call to the ROM monitor is required. On later versions, and on newer devices, this bit is banked and we can set it directly. The code checked only the ES revision of the chip, and hence incorrectl

[U-Boot] [PATCH 11/11] ARMV7: OMAP: Overo: Autodetect presence/absence of transceiver on mmc2

2010-08-31 Thread Steve Sakoman
An upcoming version of Overo uses a Wifi/BT module with 1.8V signaling, eliminating the need for an external transceiver to handle the level shifting. This patch detects whether an external transceiver is present and adjusts the pinmux settings as appropriate. Signed-off-by: Steve Sakoman --- b

[U-Boot] [PATCH 10/11] ARMV7: OMAP3: Add support for Beagle xM

2010-08-31 Thread Steve Sakoman
This patch adds support for the Beagle xM. It uses the board ID GPIO bits to recognize this revision and perform appropriate setup. Signed-off-by: Steve Sakoman --- board/ti/beagle/beagle.c | 16 ++-- board/ti/beagle/beagle.h | 33 ++--- 2 files chang

[U-Boot] [PATCH 09/11] ARMV7: OMAP3: Add CONFIG_SYS_NAND_QUIET_TEST to Beagle and Overo configs

2010-08-31 Thread Steve Sakoman
Future versions of these boards have options for POP memory with no NAND. This option prevents display of error messages when no NAND is detected. Signed-off-by: Steve Sakoman --- include/configs/omap3_beagle.h |1 + include/configs/omap3_overo.h |1 + 2 files changed, 2 insertions(+),

[U-Boot] [PATCH 08/11] mtd: nand: honor CONFIG_SYS_NAND_QUIET_TEST with unknown NAND printk

2010-08-31 Thread Steve Sakoman
This printk was added recently and results in ugly output on systems with no NAND: NAND: nand_get_flash_type: unknown NAND device: Manufacturer ID: 0x00, Chip ID: 0x00 0 MiB instead of: NAND: 0 MiB Signed-off-by: Steve Sakoman --- drivers/mtd/nand/nand_base.c |2 ++ 1 files changed, 2

[U-Boot] [PATCH 07/11] ARMV7: OMAP3: Remove erroneous hard coded sdram setup for 128MB/bank

2010-08-31 Thread Steve Sakoman
Upcoming Beagle and Overo revisions use POP memory with 256MB or 512MB per bank. This patches uses the SDRC settings from x-load or the config header to set up timing properly. Signed-off-by: Steve Sakoman --- arch/arm/cpu/armv7/omap3/sdrc.c | 43 +++ 1 fil

[U-Boot] [PATCH 06/11] ARMV7: OMAP3: Fix broken reset command on OMAP36XX/37XX and OMAP4

2010-08-31 Thread Steve Sakoman
Using the reset command on OMAP36XX/37XX and OMAP4 caused a hang. This patch uses the reset bit appropriate for each CPU architecture. Signed-off-by: Steve Sakoman --- arch/arm/cpu/armv7/omap-common/reset.S |4 +++- arch/arm/include/asm/arch-omap3/cpu.h |1 + arch/arm/include/asm/arch

[U-Boot] [PATCH 05/11] ARMV7: OMAP3: Apply Cortex-A8 errata workarounds only on affected revisions

2010-08-31 Thread Steve Sakoman
From: Mans Rullgard The workarounds for errata 621766 and 725233 should only be applied on affected Cortex-A8 revisions. Recent chips use r3px cores where these have been fixed. Signed-off-by: Mans Rullgard Signed-off-by: Steve Sakoman --- arch/arm/cpu/armv7/omap3/cache.S | 13 ++--

[U-Boot] [PATCH 04/11] ARMV7: OMAP3: Convert setup_auxcr() to pure asm

2010-08-31 Thread Steve Sakoman
From: Mans Rullgard This function consists entirely of inline asm statements, so writing it directly in a .S file is simpler. Additionally, the inline asm is not safe as is, since registers are not guaranteed to be preserved between asm() statements. Signed-off-by: Mans Rullgard Signed-off-by:

[U-Boot] [PATCH 02/11] ARMV7: OMAP3: Add clock setup for OMAP36XX/37XX

2010-08-31 Thread Steve Sakoman
This patch configures clocks properly when a 36XX/37XX processor is detected. Signed-off-by: Steve Sakoman --- arch/arm/cpu/armv7/omap3/clock.c | 549 +--- arch/arm/cpu/armv7/omap3/lowlevel_init.S | 69 +++ arch/arm/include/asm/arch-omap3/clocks.h

[U-Boot] [PATCH 01/11] ARMV7: OMAP3: Update CPU type detection for AM35XX/OMAP36XX/37XX

2010-08-31 Thread Steve Sakoman
TI has added new processors to the OMAP3 family. This patch enhances the code in sysinfo.c to detect which family member is present. Signed-off-by: Steve Sakoman --- arch/arm/cpu/armv7/omap3/sys_info.c | 147 ++- arch/arm/include/asm/arch-omap3/cpu.h | 1

[U-Boot] [PATCH 00/11] ARMV7: OMAP: Add support for OMAP36XX/37XX, cleanup OMAP3 common code

2010-08-31 Thread Steve Sakoman
This patch series adds support for TI's OMAP36XX/377XX processors and modifies the Beagle and Overo board files to support upcoming versions of these boards based upon processors from the OMAP36XX/37XX families. A number of cleanups and bug fixes to generic OMAP3 code are also included since they

Re: [U-Boot] [PATCH 8/8] APM82xxx: Add top level common file changes

2010-08-31 Thread Tirumala Marri
Hi Stefan, > > Add bluestone board name to the board.cfg. > > Change Makefile to include bluestone board support. > > Not needed with board.cfg now. Please remove your changes to Makefile. > [Marri] You mean we only need board.cfg change and we don't need Makefile entry ? Regards, Marri _

[U-Boot] warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules

2010-08-31 Thread Timur Tabi
I ran Software Update on my Fedora 13 system, and now whenever I build U-Boot, I get a bunch of warnings like this: dlmalloc.c: In function 'malloc': dlmalloc.c:2252: warning: dereferencing pointer '({anonymous})' does break strict-aliasing rules dlmalloc.c:2252: note: initialized from here dlmall

Re: [U-Boot] [PATCH 3/5] nand erase: .spread, .part, .chip subcommands

2010-08-31 Thread Scott Wood
On Tue, 31 Aug 2010 17:46:09 -0400 Ben Gardiner wrote: > On Mon, Aug 30, 2010 at 7:03 PM, Scott Wood wrote: > > -       erase_length = opts->length; > > +       erase_length = lldiv(opts->length + meminfo->erasesize - 1, > > +                            meminfo->erasesize); > > checkpatch is co

[U-Boot] [PATCH v6 3/5] mtdparts: show net size in mtdparts list

2010-08-31 Thread Ben Gardiner
This patch adds an additional column to the output of list_partitions. The additional column will contain the net size and a '(!)' beside it if the net size is not equal to the partition size. Signed-off-by: Ben Gardiner CC: Wolfgang Denk CC: Scott Wood --- V2: * formatting: spaces after 'if

[U-Boot] [PATCH v6 5/5] mtdparts: new add.spread: add part skipping bad blocks

2010-08-31 Thread Ben Gardiner
This patch adds a new 'mtdparts add' variant: add.spread. This command variant adds a new partition to the mtdparts variable but also increases the partitions size by skipping bad blocks and aggregating any additional bad blocks found at the end of the partition. Signed-off-by: Ben Gardiner CC: W

Re: [U-Boot] [PATCH 4/5] nand commands: make only "dump" repeatable.

2010-08-31 Thread Ben Gardiner
On Mon, Aug 30, 2010 at 7:03 PM, Scott Wood wrote: > The dump command is made to increment its address on repeat, > as md does.  Other commands do not make sense to issue repeatedly, > and can be irritating when it happens accidentally, so don't. > > Signed-off-by: Scott Wood applies cleanly to

[U-Boot] [PATCH v6 0/5] mtdparts: add bad-block skipping

2010-08-31 Thread Ben Gardiner
Ben Gardiner (5): mtdparts: regroup calls to get_mtd_device_nm mtd: add an mtd method for get_len_incl_bad() mtdparts: show net size in mtdparts list mtdparts: add new sub-command "spread" mtdparts: new add.spread: add part skipping bad blocks common/cmd_mtdparts.c| 260 +++

[U-Boot] [PATCH v6 2/5] mtd: add an mtd method for get_len_incl_bad()

2010-08-31 Thread Ben Gardiner
The logic to 'spread' mtd partitions needs to calculate the length in the mtd device, including bad blocks. This patch introduces a new function, mtd_get_len_incl_bad that can return both the length including bad blocks and whether that length was truncated on the device. This new function will be

[U-Boot] [PATCH v6 4/5] mtdparts: add new sub-command "spread"

2010-08-31 Thread Ben Gardiner
This patch introduces the 'spread' sub-command of the mtdparts command. This command will modify the existing mtdparts variable by increasing the size of the partitions such that 1) each partition's net size is at least as large as the size specified in the mtdparts variable and 2) each partition s

Re: [U-Boot] [PATCH 3/5] nand erase: .spread, .part, .chip subcommands

2010-08-31 Thread Ben Gardiner
On Mon, Aug 30, 2010 at 7:03 PM, Scott Wood wrote: > A while back, in http://lists.denx.de/pipermail/u-boot/2009-June/054428.html, > Michele De Candia posted a patch to not count bad blocks toward the > requested size to be erased.  This is desireable when you're passing in > something like $files

Re: [U-Boot] [PATCH 2/5] cmd_nand: some infrastructure fixes and refactoring

2010-08-31 Thread Ben Gardiner
On Mon, Aug 30, 2010 at 7:03 PM, Scott Wood wrote: > - If the current device is overridden by a named partition, >  - update the caller's pointer/index, rather than copy over the >    nand_info struct, and >  - be sure to call board_nand_select_device even when the device >    is overridden by a n

[U-Boot] [PATCH v6 1/5] mtdparts: regroup calls to get_mtd_device_nm

2010-08-31 Thread Ben Gardiner
The get_mtd_device_nm function is called in a couple places and the string that is passed to it is not really used after the calls. This patch regroups the calls to this function into a new function, get_mtd_info. Signed-off-by: Ben Gardiner Acked-by: Stefan Roese CC: Wolfgang Denk --- V2:

Re: [U-Boot] [PATCH 5/5] nand: remove dead code and suspend/resume

2010-08-31 Thread Ben Gardiner
On Mon, Aug 30, 2010 at 7:03 PM, Scott Wood wrote: > Get rid of the several "#if 0" sections that were keeping around Linux > code that isn't relevant to U-Boot.  Besides cluttering the code, these > sections make tracking upstream changes harder, rather than easier. > It's easy to discard obvious

Re: [U-Boot] [PATCH 1/5] nand util: read/write: accept unaligned length

2010-08-31 Thread Ben Gardiner
On Mon, Aug 30, 2010 at 7:03 PM, Scott Wood wrote: > The underlying code in nand_base.c already supports non-page-aligned reads > and writes, but the block-skipping wrapper code did not. > > With block skipping, an unaligned start address is not useful since you > really want to be starting at the

Re: [U-Boot] [PATCH] [v2] mpc8610: refactor DIU initialization code to use existing bitmap and logo features

2010-08-31 Thread Timur Tabi
Timur Tabi wrote: > The Freescale MPC8610 DIU code had re-implement two features that already > existed in U-Boot: bitmap drawing and top-of-screen logo (CONFIG_VIDEO_LOGO). > So delete the 8610-specific code and use the built-in features instead. > > Signed-off-by: Timur Tabi > --- Ugh, this pa

[U-Boot] [PATCH] [v2] mpc8610: refactor DIU initialization code to use existing bitmap and logo features

2010-08-31 Thread Timur Tabi
The Freescale MPC8610 DIU code had re-implement two features that already existed in U-Boot: bitmap drawing and top-of-screen logo (CONFIG_VIDEO_LOGO). So delete the 8610-specific code and use the built-in features instead. Signed-off-by: Timur Tabi --- This patch depends on the patch, "logos: a

[U-Boot] [PATCH] usb: fix usb start problem with SMSC USB hub and Toshiba USB stick

2010-08-31 Thread Anatolij Gustschin
Checking the status field of the qTD token in the current code do not take into acount cases where endpoint stall (halted) bit is set together with some other status bits. As a result clearing stall on an endpoint won't be done if other status bits were set. E.g. 'usb start' often fails with Toshi

Re: [U-Boot] Debugging, Why USB is not stable

2010-08-31 Thread Remy Bohmer
Hi Detlev, 2010/8/30 Detlev Zundel : > Hi Gérald, > >> I have some few problems with usb start / reset commands on last uboot. >> >> USB hard drive are not always detected. >> >> Is there something I missed ? > > Only the fact that USB is a nightmare to work with.  No, honestly, we > have a contin

[U-Boot] [PATCH] zlib: Add further watchdog reset calls

2010-08-31 Thread Stefan Roese
Patch 253cb831 [zlib: add watchdog reset call] added already a few watchdog reset calls to the new zlib U-Boot port. But on some boards this is not enough. Additional calls are needed on boards with short watchdog timeouts. This was detected and tested on the lwmon5 board with a very short watchdo

[U-Boot] Please pull u-boot-mpc85xx.git

2010-08-31 Thread Kumar Gala
The following changes since commit bd2313078114c4b44c4a5ce149af43bcb7fc8854: Wolfgang Denk (1): Merge branch 'master' of ssh://gemini/home/wd/git/u-boot/master are available in the git repository at: git://git.denx.de/u-boot-mpc85xx master Kim Phillips (1): powerpc/8xxx: share

Re: [U-Boot] [PATCH V3] AT91 Fix: return value of get_tbclk

2010-08-31 Thread Jens Scharsig
Am 2010-08-31 09:36, schrieb Reinhard Meyer: > Hi, > } > -- 1.6.0.2 > > Applied to u-boot-atmel/next > Thanks, > > Reinhard > What is the reason for the new branch/Custodian Tree u-boot-atmel. Thanks for more details Jens ___ U-Boot mailing list U-

Re: [U-Boot] [PATCH 7/7] Fix parameters to support RDIMM for P2020DS

2010-08-31 Thread Kumar Gala
On Aug 27, 2010, at 4:25 PM, York Sun wrote: > Signed-off-by: York Sun > --- > arch/powerpc/cpu/mpc8xxx/ddr/ctrl_regs.c |1 + > board/freescale/p2020ds/ddr.c|4 ++-- > 2 files changed, 3 insertions(+), 2 deletions(-) applied - K ___

Re: [U-Boot] [PATCH 1/7] fix dma for 36bit addressing

2010-08-31 Thread Kumar Gala
On Aug 27, 2010, at 4:25 PM, York Sun wrote: > Use more bits to support 36-bit addressing > > Signed-off-by: York Sun > --- > drivers/dma/fsl_dma.c |8 ++-- > 1 files changed, 6 insertions(+), 2 deletions(-) applied - K ___ U-Boot mailing lis

Re: [U-Boot] [PATCH 1/2] TI: netdev: add driver for cpsw ethernet device

2010-08-31 Thread Cyril Chemparathy
Hi Ben, [...] >> +COBJS-$(CONFIG_DRIVER_TI_CPSW) += cpsw.o > Please don't use the word DRIVER here. If possible, use something more > verbose than "CPSW" too. Will TI_CPSW_SWITCH work better considering that "CPSW" is the name of the hardware block? [...] >> +++ b/drivers/net/cpsw.c > Please re

Re: [U-Boot] [PATCH v5 3/5] mtdparts: show net size in mtdparts list

2010-08-31 Thread Scott Wood
On Tue, 31 Aug 2010 09:51:15 -0400 Ben Gardiner wrote: > But I'm not sure what I'm supposed to do with this block now since > Wolfgang Denk has asked for me to 1) not use a bunch of > #ifdefs to define the field [1] 2) not introduce changes that increase > the code size on boards that do not en

Re: [U-Boot] [PATCH] fdt: call fdt_parent_offset fewer times while translating addresses

2010-08-31 Thread Kumar Gala
On Aug 19, 2010, at 2:02 AM, Kumar Gala wrote: > From: Scott Wood > > fdt_parent_offset() is an expensive operation, so we'd like to reduce > unnecessary calls to it. > > Further, the practice of iterating up to the root if address/size cells > aren't found was apparently done for Linux for co

Re: [U-Boot] [PATCH v5 3/5] mtdparts: show net size in mtdparts list

2010-08-31 Thread Ben Gardiner
On Mon, Aug 30, 2010 at 4:50 PM, Scott Wood wrote: > On Mon, 30 Aug 2010 13:38:58 -0400 > Ben Gardiner wrote: > >> +#if defined(CONFIG_CMD_MTDPARTS_SHOW_NET_SIZES) >>  /** >> - * Format and print out a partition list for each device from global device >> - * list. >> + * Get the net size (w/o bad

Re: [U-Boot] [PATCH v5 2/5] mtd: add an mtd method for get_len_incl_bad()

2010-08-31 Thread Ben Gardiner
On Mon, Aug 30, 2010 at 4:57 PM, Scott Wood wrote: > On Mon, 30 Aug 2010 13:38:57 -0400 > Ben Gardiner wrote: >> +void mtd_get_len_incl_bad(struct mtd_info *mtd, uint64_t offset, >> +                       const uint64_t length, uint64_t *len_incl_bad, >> +                       int *truncated) >

Re: [U-Boot] [PATCH v5 4/5] mtdparts: add new sub-command "spread"

2010-08-31 Thread Ben Gardiner
On Mon, Aug 30, 2010 at 5:01 PM, Scott Wood wrote: > On Mon, 30 Aug 2010 13:38:59 -0400 > Ben Gardiner wrote: > >> +static void spread_partition(struct mtd_info *mtd, struct part_info *part, >> +                          uint64_t *next_offset) >> +{ >> +     uint64_t net_size, padding_size = 0; >

Re: [U-Boot] [PATCH] cp/cmp: Add WATCHDOG_RESET in copy and compare loop

2010-08-31 Thread Stefan Roese
Hi Mike, On Tuesday 31 August 2010 15:18:03 Mike Frysinger wrote: > On Tuesday, August 31, 2010 07:57:33 Stefan Roese wrote: > > + /* reset watchdog from time to time */ > > + if ((count % 1000) == 0) > > + WATCHDOG_RESET(); > > please pick a number that does

Re: [U-Boot] [PATCH] cp/cmp: Add WATCHDOG_RESET in copy and compare loop

2010-08-31 Thread Mike Frysinger
On Tuesday, August 31, 2010 07:57:33 Stefan Roese wrote: > + /* reset watchdog from time to time */ > + if ((count % 1000) == 0) > + WATCHDOG_RESET(); please pick a number that doesnt involve needing to call libgcc math functions. like 1024. -mike si

[U-Boot] [PATCH] cp/cmp: Add WATCHDOG_RESET in copy and compare loop

2010-08-31 Thread Stefan Roese
On some boards with a very short watchdog timeout, the "cp" and "cmp" commands may reset the board. This patch adds some watchdog resets inside the loops. Otherwise for example the lwmon5 board will reset while doing something like this: => cp.b fc00 100 10 Signed-off-by: Stefan Roese

[U-Boot] [PATCH 4/4] cfi_flash: Remove uneccessary #ifdef CONFIG_SYS_MAX_FLASH_BANKS_DETECT

2010-08-31 Thread Stefan Roese
Now that the defines are moved to header files we don't need this conditional compilation any more. Remove it. Signed-off-by: Stefan Roese --- common/cmd_flash.c| 10 ++ drivers/mtd/cfi_mtd.c | 10 +- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/common/

[U-Boot] [PATCH 3/4] cfi_flash: Simplify dynamic flash bank number detection

2010-08-31 Thread Stefan Roese
This patch simplifies the use of CONFIG_SYS_MAX_FLASH_BANKS_DETECT. By moving these optional variables and defines into the common code, board specific code is minimized. Currently only the following board use this feature: APC405, IDS8247, TQM834x And IDS8247 doesn't seem to really need this fea

[U-Boot] [PATCH 2/4] cfi_flash: Add weak default for cfi_flash_bank_addr()

2010-08-31 Thread Stefan Roese
cfi_flash_bank_addr(int bank_nr) returns the base addresses of the requested bank. Introducing this weak default enables boards to override this functions with a board specific version when required. This feature will be used in the lwmon5 board update, supporting runtime detection of 2 board revi

[U-Boot] [PATCH 1/4] cfi_flash: Simplify flash_get_info()

2010-08-31 Thread Stefan Roese
This patch removes an unecessary check in the return statement. This is not needed, since "info" is initializes to NULL. And "info" will not be written to again, if the flash address is not found. Additionally "info" is not initialized to "0" but to "NULL". Signed-off-by: Stefan Roese --- drive

[U-Boot] [PATCH 0/4] cfi_flash: A bit of cleanup and code simplification

2010-08-31 Thread Stefan Roese
Hi, following are a few patches with minor code clean-up and simplification for the cfi_flash driver. Especially the usage of CONFIG_SYS_MAX_FLASH_BANKS_DETECT to support dynamic flash bank number detection is reworked a bit. Additionally, now the flash base address list can be dynamically cha

[U-Boot] Hi

2010-08-31 Thread Vaishali Dhakate
Hi , I am trying to cross compile some libraries for ARM board I will port a Linux OS to the hawkboard. Want to study u-boot specific to this board so I ll be able to do this. The first chore is to port u-boot on this board. PLz help me , I was going through the uboot readme which directed me to st

[U-Boot] Please pull u-boot-samsung/master

2010-08-31 Thread Minkyu Kang
Please pull u-boot-samsung/master Thanks The following changes since commit 9efac4a1eb99d9c5539aa6992025eeacab7980c6: Wolfgang Denk (1): Merge branch 'master' of git://git.denx.de/u-boot-samsung are available in the git repository at: git://git.denx.de/u-boot-samsung master Minkyu K

Re: [U-Boot] [PATCH] arm, orion5x: fix comilerwarning for edminiv2 board

2010-08-31 Thread Heiko Schocher
Hello Sergei, Sergei Shtylyov wrote: > Heiko Schocher wrote: > >> compiling edminiv2 board throws following warning: > >> Configuring for edminiv2 board... >> In file included from >> /home/hs/i2c/u-boot-i2c/include/asm/arch/orion5x.h:39, >> from cpu.c:32: > >And? Where's t

[U-Boot] [PATCH] ppc4xx: Invalidate d-cache when used as init-ram

2010-08-31 Thread Stefan Roese
We need to invalidate the data cache after it has been used as init-ram. This problem was detected on the lwmon5 update. Signed-off-by: Stefan Roese --- arch/powerpc/cpu/ppc4xx/start.S |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/cpu/ppc4xx/start.S b

Re: [U-Boot] [PATCH] arm, orion5x: fix comilerwarning for edminiv2 board

2010-08-31 Thread Sergei Shtylyov
Hello. Heiko Schocher wrote: > compiling edminiv2 board throws following warning: > Configuring for edminiv2 board... > In file included from /home/hs/i2c/u-boot-i2c/include/asm/arch/orion5x.h:39, > from cpu.c:32: And? Where's the warning text? :-) > introduced from commi

Re: [U-Boot] [PATCH V3] AT91 Fix: return value of get_tbclk

2010-08-31 Thread Reinhard Meyer
Hi, this patch also fixed BOOTDELAY on AT91: * Fix: return value of get_tbclk * this fixes issue with prematurely restart/retry, if BOOT_RETRY_TIMEOUT is used Signed-off-by: Jens Scharsig --- cpu/arm926ejs/at91/timer.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git

[U-Boot] [PATCH v2] display_buffer: fix misaligned buffer

2010-08-31 Thread Reinhard Meyer
use a union to cause necessary alignment per architecture Signed-off-by: Reinhard Meyer --- lib/display_options.c | 24 +--- 1 files changed, 13 insertions(+), 11 deletions(-) diff --git a/lib/display_options.c b/lib/display_options.c index 20319e6..4f2ad69 100644 --- a/li