[U-Boot] [PATCH] FIX for dcache_disable() for ARM926ej-s

2011-10-20 Thread Bas van den Berg
the cache also needs to be invalidated, not just flushed, Since re-enabling it, can cause inconsistent data without invalidation. See example below. in c-file: static int num = 1; void test() { num = 1; dcache_enable(); printf("Cache on, num=%d\n", num); num = 2; dcache_disabl

[U-Boot] [PATCH v3 10/10] arm, davinci: add cam_enc_4xx support

2011-10-20 Thread Heiko Schocher
- DM368 SOC - booting with spl not with UBL from TI - before loading u-boot from NAND into RAM, test the RAM with the post memory test. If error is found, switch all LEDs on and halt system. - SPI Flash Dataflash Typ: M25PE80 - Ethernet DM9161BI - MMC - USB Signed-off-by: Heiko Schocher Cc:

[U-Boot] [PATCH v3 01/10] arm, usb, davinci: make USBPHY_CTL register configurable

2011-10-20 Thread Heiko Schocher
Define CONFIG_DV_USBPHY_CTL for setting the USB PHY control register. Signed-off-by: Heiko Schocher Acked-by: Remy Bohmer cc: Sandeep Paulraj cc: Remy Bohmer --- no changes for v3 drivers/usb/musb/davinci.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/drive

[U-Boot] [PATCH v3 08/10] arm926ejs, davinci: add cpuinfo for dm365

2011-10-20 Thread Heiko Schocher
Signed-off-by: Heiko Schocher Cc: Albert ARIBAUD Cc: Sandeep Paulraj --- Changes for v2: - rebase to TOT no changes for v3 arch/arm/cpu/arm926ejs/davinci/cpu.c | 27 - arch/arm/include/asm/arch-davinci/pll_defs.h |4 +++ 2 files changed, 29 insertions(+)

[U-Boot] [PATCH v3 06/10] arm, davinci: add header files for dm365

2011-10-20 Thread Heiko Schocher
Signed-off-by: Heiko Schocher Cc: Albert ARIBAUD Cc: Sandeep Paulraj --- changes for v2: - rebase to TOT - add defines for timer 3 and 4 - delete "struct dv_timer_regs" as it is now "davinci_timer" no changes for v3 arch/arm/include/asm/arch-davinci/aintc_defs.h | 50 + arch/arm/i

[U-Boot] [PATCH v3 07/10] arm, davinci: add lowlevel function for dm365 soc

2011-10-20 Thread Heiko Schocher
used for booting (for example) from NAND using spl code. Signed-off-by: Heiko Schocher Cc: Albert ARIBAUD Cc: Sandeep Paulraj --- changes for v2: - fix bug for dm365 if setup A2CR register - rebase to TOT: - rename DM36x_DDR_* to DV_DDR_* - add support for new SPL framework no changes fo

[U-Boot] [PATCH v3 09/10] arm926ejs, davinci: add missing spi defines for dm365

2011-10-20 Thread Heiko Schocher
Signed-off-by: Heiko Schocher Cc: Albert ARIBAUD Cc: Sandeep Paulraj --- no changes for v3 arch/arm/include/asm/arch-davinci/hardware.h |2 ++ arch/arm/include/asm/arch-davinci/pll_defs.h |1 + 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/arch-dav

[U-Boot] [PATCH v3 05/10] spl, nand: add 4bit HW ecc oob first nand_read_page function

2011-10-20 Thread Heiko Schocher
similiar to commit dc7cd8e59ba077f3b4c1a4557c9cd86a31b9ab1f, only adapted for the new spl framework. Signed-off-by: Heiko Schocher Cc: Scott Wood Cc: Albert ARIBAUD Cc: Sandeep Paulraj Cc: Tom Rini --- changes for v2: - add comment from Scott Wood: as BSS is cleared, no need for intializin

[U-Boot] [PATCH v3 03/10] spl: add option for adding post memory test to the SPL framework

2011-10-20 Thread Heiko Schocher
Signed-off-by: Heiko Schocher Cc: Albert ARIBAUD Cc: Sandeep Paulraj --- no changes for v3 doc/README.SPL |1 + spl/Makefile |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/doc/README.SPL b/doc/README.SPL index d53ef9c..c991aab 100644 --- a/doc/README.SPL +++ b/d

[U-Boot] [PATCH v3 04/10] arm, davinci: add support for new spl framework

2011-10-20 Thread Heiko Schocher
Signed-off-by: Heiko Schocher Cc: Albert ARIBAUD Cc: Sandeep Paulraj --- no changes for v3 Makefile |8 +++- arch/arm/cpu/arm926ejs/davinci/Makefile |8 arch/arm/cpu/arm926ejs/davinci/spl.c | 63 + arch/arm/cpu/

[U-Boot] [PATCH v3 00/10] arm, davinci: add support for dm368 based cam_enc_4xx board

2011-10-20 Thread Heiko Schocher
This is a repost of the cam_enc_4xx board support patches from http://lists.denx.de/pipermail/u-boot/2011-October/104026.html changes for v3: - rebase to TOT - rename CONFIG_SYS_NAND_4BIT_HW_ECC_OOBFIRST to CONFIG_SYS_NAND_HW_ECC_OOBFIRST Patches are checkpatch clean "./MAKEALL -a arm --soc da

[U-Boot] [PATCH v3 02/10] net, davinci_emac: make clock divider in MDIO control register configurable

2011-10-20 Thread Heiko Schocher
Define CONFIG_SYS_EMAC_TI_CLKDIV for setting the clkdiv value in the MDIO control register. Signed-off-by: Heiko Schocher cc: Sandeep Paulraj cc: Wolfgang Denk --- no changes for v3 drivers/net/davinci_emac.c |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/d

[U-Boot] [PATCH 2/2] api: storage: Share attributes with block_dev_desc

2011-10-20 Thread Che-Liang Chiou
struct device_info in api_public.h defined its own subset of attributes of block_dev_desc, which limits the capability of external apps. This patch let struct device_info and block_dev_desc share the same set of attributes so that an external app has equal amount of information of block device com

[U-Boot] [PATCH 1/2] Flatten and solidify block_dev_desc layout

2011-10-20 Thread Che-Liang Chiou
The block_dev_desc struct has #ifdef on lba48 and variable-size on lba and so its layout varies from config to config. At least part_efi.c has partially complained about this. This patch makes lba48 be always defined and lba be fixed to largest size that an LBA would need so that the block_dev_de

[U-Boot] [PATCH 0/2] api: extend accessible set of block device attributes

2011-10-20 Thread Che-Liang Chiou
struct device_info in api_public.h defined its own subset of attributes of block_dev_desc, which limits the capability of external apps. This patch set let external apps access the same set of block device attributes as U-Boot. Che-Liang Chiou (2): Flatten and solidify block_dev_desc layout a

[U-Boot] Returned mail: see transcript for details

2011-10-20 Thread Mail Delivery Subsystem
Hi. This is the MAILNARA program at "webmail5.mailnara.co.kr". I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. : Sorry, no mailbox here by that name. (#5.1.1) See the copy of the mail header and refe

[U-Boot] [PATCH] powerpc/fm: remove the TBIPA setting on platform code

2011-10-20 Thread Roy Zang
TBIPA has been set in dtsec_init_phy () funciton in drivers/net/fm/eth.c So remove the duplicate code on platform Ethernet code. Signed-off-by: Roy Zang Cc: Andy Fleming Cc: Kumar Gala --- Tested on P5020DS board/freescale/corenet_ds/eth_hydra.c |8 board/freescale/corenet_ds/eth

[U-Boot] [PATCH] phy/marvell: Rewrite the MV88E1111 phy config function based on kernel code

2011-10-20 Thread Roy Zang
The original m88es_config() does not do the SGMII mode initialization and is buggy. Rewrite the function according to 3.0.6 kernel function m88e_config_init() in drivers/net/phy/marvell.c Signed-off-by: Roy Zang Acked-by: Andy Fleming Cc: Kumar Gala --- Tested on P1023RDS board drivers

Re: [U-Boot] [PATCH] mii: miiphy register address width change

2011-10-20 Thread Kumar Nath, Chandan
> -Original Message- > From: u-boot-boun...@lists.denx.de [mailto:u-boot- > boun...@lists.denx.de] On Behalf Of Andy Fleming > Sent: Friday, October 21, 2011 4:24 AM > To: Mike Frysinger > Cc: u-boot@lists.denx.de List; Andy Fleming; Kumar Gala > Subject: Re: [U-Boot] [PATCH] mii: miiphy re

[U-Boot] [GIT PULL] Pull request u-boot-85xx.git

2011-10-20 Thread Kumar Gala
The following changes since commit efb2172ece93ef48f34fb8bdf963d3b72880cc7d: Move timestamp and version files into 'generated' subdir (2011-10-17 23:57:00 +0200) are available in the git repository at: git://git.denx.de/u-boot-mpc85xx master Kumar Gala (6): fm-eth: Don't mark the MAC

Re: [U-Boot] [PATCH 3/3] powerpc/85xx: Add support for RMan LIODN initialization

2011-10-20 Thread Kumar Gala
On Oct 14, 2011, at 12:07 AM, Kumar Gala wrote: > From: Minghuan Lian > > This patch is intended to initialize RMan LIODN related registers on > P2041, P304S and P5020 SocS. It also adds the "rman@0" child node to > qman-portal nodes, adds "fsl,liodn" property to RMan inbound block nodes. > >

Re: [U-Boot] [PATCH 2/3] powerpc/85xx: Update device tree handling for SRIO

2011-10-20 Thread Kumar Gala
On Oct 14, 2011, at 12:07 AM, Kumar Gala wrote: > Update device tree handling for SRIO controller to support updated > fsl,srio device tree binding. > > We handle disabling of individual ports, the whole controller, RMU, and > RMAN. Additionally, we setup the SRIO related LIODNs in the device >

Re: [U-Boot] [PATCH 1/3] powerpc/85xx: Update setting of SRIO LIODNs

2011-10-20 Thread Kumar Gala
On Oct 14, 2011, at 12:07 AM, Kumar Gala wrote: > Properly set the LIODN values associated with SRIO controller. On > P4080/P3060 we have an LIODN per port and one for the RMU. On > P2041/P3041/P5020 we have 2 LIODNs per port. > > Update the tables for all of these devices to properly handle b

Re: [U-Boot] [PATCH 2/2] powerpc/85xx: Update USB device tree status based on pin settings

2011-10-20 Thread Kumar Gala
On Oct 14, 2011, at 2:10 PM, Kumar Gala wrote: > From: Shengzhou Liu > > For P3060 and P4080, USB pins are multiplexed with other functions. > Update the device tree status for USB ports based on setting of > RCW[EC1] & RCW[EC2] which describe if pins are muxed to usb. > > Signed-off-by: Sheng

Re: [U-Boot] [PATCH 1/2] fdt: Add new fdt_set_node_status & fdt_set_status_by_alias helpers

2011-10-20 Thread Kumar Gala
On Oct 15, 2011, at 8:04 AM, Jerry Van Baren wrote: > Hi Kumar, Shengzhou, > > On 10/14/2011 03:10 PM, Kumar Gala wrote: >> From: Shengzhou Liu >> >> Add common function fdt_set_node_status() to assist in various locations >> that we set a nodes status. This function utilizes the status values

Re: [U-Boot] [PATCH v4 4/6] fdt: ARM: Implement and verify embedded and separate device tree

2011-10-20 Thread Kumar Gala
On Oct 15, 2011, at 10:48 AM, Simon Glass wrote: > This locates the device tree either embedded within U-Boot or attached to the > end as a separate binary. > > When CONFIG_OF_CONTROL is defined, U-Boot requires a valid fdt. A check is > provided for this early in initialisation. > > Signed-off

Re: [U-Boot] [PATCH 1/4] cmdline: Add linux command line munging tools

2011-10-20 Thread Doug Anderson
Wolfgang, On Thu, Oct 20, 2011 at 12:03 PM, Wolfgang Denk wrote: > > In any case, I already have the more direct (and less generalized) > version > > of fixup_silent_linux() written and will send out a patch with just that > > shortly. > > Please consider it NAKed. One side effect of not commi

Re: [U-Boot] [PATCH] fm-eth: Don't mark the MAC we use for MDIO as disabled in device tree

2011-10-20 Thread Kumar Gala
On Oct 13, 2011, at 11:03 PM, Kumar Gala wrote: > FM1-DTSEC1's MAC was being marked as disabled if the port was not > configured based on the SoC configuration. However we utilize the MAC > interface for MDIO and thus should NOT mark it disabled. > > Signed-off-by: Kumar Gala > --- > drivers/n

Re: [U-Boot] [PATCH] fm: Don't allow disabling of FM1-DTSEC1

2011-10-20 Thread Kumar Gala
On Oct 14, 2011, at 9:09 AM, Kumar Gala wrote: > The MDIO controller to talk to external PHYs is on FM1-DTSEC1 so don't > allow disabling. If we disable it we end up powering the block down in > the SoC and thus can't communicate to any external PHYs. > > Signed-off-by: Kumar Gala > --- > driv

Re: [U-Boot] [PATCH 2/3] mpc85xx: Add inline GPIO acessor functions

2011-10-20 Thread Kumar Gala
On Oct 19, 2011, at 1:58 PM, Kyle Moffett wrote: > To ease the implementation of other MPC85xx board ports, several common > GPIO helpers are added to . > > Since each of these compiles to no more than 4-5 instructions it would > be very inefficient to call them out of line, therefore we put the

Re: [U-Boot] [PATCH 2/3] [v2] phylib: wait for TN2020 to achieve SERDES lane alignment at startup

2011-10-20 Thread Kumar Gala
On Oct 7, 2011, at 3:35 PM, Timur Tabi wrote: > Before the Teranetics TN2020 PHY can be used, the SERDES lanes need to be > aligned, so wait for lane alignment before completing the startup sequence. > > Note that this process can take up to three seconds. > > Signed-off-by: Timur Tabi > --- >

Re: [U-Boot] [PATCH] [v3] powerpc/85xx: wait for alignment before resetting SERDES RX lanes (SERDES9)

2011-10-20 Thread Kumar Gala
On Oct 18, 2011, at 6:44 PM, Timur Tabi wrote: > The work-around for P4080 erratum SERDES9 says that the SERDES receiver lanes > should be reset after the XAUI starts tranmitting alignment signals. > > Signed-off-by: Timur Tabi > --- > arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c | 10 --

Re: [U-Boot] [PATCH] powerpc/85xx: Fix P2020DS booting

2011-10-20 Thread Kumar Gala
On Oct 18, 2011, at 11:11 PM, Kumar Gala wrote: > The following commit removed the code that set odt_rd_cfg and > odt_wr_cfg. With out this code P2020DS board will not boot: > > commit 712cf7ab0b58e51a69e339397457d3591b6b650e > Author: York Sun > Date: Mon Oct 3 09:19:53 2011 -0700 > >p

[U-Boot] [PATCH v1] Fix a compiler warning in arch/x86/lib/realmode.c

2011-10-20 Thread Gabe Black
Ensure that the value being passed to a %d format specifier is of type int. Signed-off-by: Gabe Black --- arch/x86/lib/realmode.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/lib/realmode.c b/arch/x86/lib/realmode.c index c113393..6aa0f23 100644 --- a/arch/

Re: [U-Boot] [PATCH] sh: only add -mno-fdpic if the compiler supports it

2011-10-20 Thread Nobuhiro Iwamatsu
Applied. Thanks. Nobuhiro 2011/10/13 : > Hi Mike, > > Mike Frysinger wrote on 13/10/2011 05:45:47: >> Not all SuperH toolchains support -mno-fdpic.  Chances are good that if >> the flag doesn't work, it isn't defaulting to the FDPIC ABI, so the flag >> isn't needed.  So only add it if it is actu

Re: [U-Boot] eMMC Partitons handling

2011-10-20 Thread Lei Wen
Hi Ulrich, On Fri, Oct 21, 2011 at 5:53 AM, Ulrich Prinz wrote: > Hi all! > > Is there any support for (e)MMC PARTITION handling in U-Boot anywhere? > I have an eMMC supporting Version 4.41 of JEDEC MMC specification and > I'd like to have PARTITION support to protect some of the MMCs areas > aga

[U-Boot] [PATCH 3/3] qong: remove unneeded IOMUX settings

2011-10-20 Thread Fabio Estevam
On qong board some of the USBH2 pins are set via GPR register, so don need to setup the IOMUX for each pin individually. Other than that, these pins should not be configured as primary function because the primary function selects SSI functionality. Let GPR register do the work and remove the u

[U-Boot] [PATCH 2/3] qong: Use mx31_set_gpr to setup USBH2 pins

2011-10-20 Thread Fabio Estevam
Instead of writing directly to the GPR register, use mx31_set_gpr to setup USBH2 pins. Signed-off-by: Fabio Estevam --- board/davedenx/qong/qong.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/board/davedenx/qong/qong.c b/board/davedenx/qong/qong.c index 5b2830c..d

[U-Boot] [PATCH 1/3] mx31: Introduce mx31_set_gpr function

2011-10-20 Thread Fabio Estevam
Introduce mx31_set_gpr function for setting the GPR (General Purpose Register) on MX31. This function can be useful for setting a group of pins into tied to some specific peripherals. Reuse this function from the linux kernel. Signed-off-by: Fabio Estevam --- arch/arm/cpu/arm1136/mx31/generi

Re: [U-Boot] [PATCH 3/8] tegra2: spi: Add SPI driver for SPIFLASH on Seaboard

2011-10-20 Thread Simon Glass
Hi Mike, On Thu, Oct 20, 2011 at 1:03 PM, Mike Frysinger wrote: > On Thursday 20 October 2011 15:03:24 Simon Glass wrote: >> This driver supports SPI on Tegra2, running at 48MHz. > > the summary says "SPIFLASH" and "Seaboard".  sounds like this is a tegra2 SoC > issue, and so driver/board specifi

[U-Boot] Tegra2 and FDT Patch Sets

2011-10-20 Thread Simon Glass
Hi Albert, Wolfgang, I believe this is the current status on Tegra2 in u-boot-arm.git: - Stephen Warren has a patch series ending here: http://patchwork.ozlabs.org/patch/119325/ - Stephen Warren has a single GPIO patch here: http://patchwork.ozlabs.org/patch/118184/ - I have a boot refactor patch

Re: [U-Boot] [PATCH] mii: miiphy register address width change

2011-10-20 Thread Andy Fleming
On Thu, Oct 20, 2011 at 5:42 PM, Mike Frysinger wrote: > On Thursday 20 October 2011 17:45:33 Andy Fleming wrote: >> On Thu, Oct 20, 2011 at 8:58 AM, Mike Frysinger wrote: >> > On Thursday 20 October 2011 09:55:34 Kumar Gala wrote: >> >> On Oct 20, 2011, at 8:26 AM, Mike Frysinger wrote: >> >> >

Re: [U-Boot] [PATCH] mii: miiphy register address width change

2011-10-20 Thread Mike Frysinger
On Thursday 20 October 2011 17:45:33 Andy Fleming wrote: > On Thu, Oct 20, 2011 at 8:58 AM, Mike Frysinger wrote: > > On Thursday 20 October 2011 09:55:34 Kumar Gala wrote: > >> On Oct 20, 2011, at 8:26 AM, Mike Frysinger wrote: > >> > On Thursday 20 October 2011 06:34:33 Kumar Nath, Chandan wrote

[U-Boot] [RFC PATCH v2 0/1] Patch submission script

2011-10-20 Thread Simon Glass
(sorry to change this so quickly, but in splitting out the files I introduced a bug) What is this? = This tool is a python script which: - Creates patch directly from your branch - Cleans them up - Inserts a cover letter and change lists - Sends them out to selected people It is inte

Re: [U-Boot] [PATCH v2 REPOST 2/3] image: Implement IH_TYPE_KERNEL_REL

2011-10-20 Thread Simon Glass
On Tue, Oct 18, 2011 at 2:11 PM, Stephen Warren wrote: > uImage files contain absolute "load" and "entry" addresses. Such a concept > is incompatible with using the same kernel image on multiple SoCs, each with > a potentially different SDRAM base. To support that, create a new image type > IH_TYP

Re: [U-Boot] [PATCH v2 REPOST 3/3] tegra2: Enable CONFIG_SYS_RELATIVE_IMAGES

2011-10-20 Thread Simon Glass
On Thu, Oct 20, 2011 at 1:47 PM, Stephen Warren wrote: > Simon Glass wrote at Thursday, October 20, 2011 2:27 PM: >> Hi Stephen, >> >> On Wed, Oct 19, 2011 at 8:24 AM, Stephen Warren wrote: >> > Simon Glass wrote at Tuesday, October 18, 2011 7:04 PM: >> >> On Tue, Oct 18, 2011 at 2:11 PM, Stephen

Re: [U-Boot] [PATCH v2 REPOST 2/3] image: Implement IH_TYPE_KERNEL_REL

2011-10-20 Thread Stephen Warren
Wolfgang Denk wrote at Thursday, October 20, 2011 3:47 PM: > In message <74cdbe0f657a3d45afbb94109fb122ff173d51c...@hqmail01.nvidia.com> > you wrote: > > > > > DOn;t give up to oearly. My opinion is that #ifdef's are bad, and > > > increased code size is bad either. If we can trade off one for t

[U-Boot] eMMC Partitons handling

2011-10-20 Thread Ulrich Prinz
Hi all! Is there any support for (e)MMC PARTITION handling in U-Boot anywhere? I have an eMMC supporting Version 4.41 of JEDEC MMC specification and I'd like to have PARTITION support to protect some of the MMCs areas against access from other areas. It interconnects with Reliable Write and Write

Re: [U-Boot] [PATCH v2 REPOST 2/3] image: Implement IH_TYPE_KERNEL_REL

2011-10-20 Thread Wolfgang Denk
Dear Stephen Warren, In message <74cdbe0f657a3d45afbb94109fb122ff173d51c...@hqmail01.nvidia.com> you wrote: > > > DOn;t give up to oearly. My opinion is that #ifdef's are bad, and > > increased code size is bad either. If we can trade off one for the > > other, we should know exactly what we ca

Re: [U-Boot] [PATCH] mii: miiphy register address width change

2011-10-20 Thread Andy Fleming
On Thu, Oct 20, 2011 at 8:58 AM, Mike Frysinger wrote: > On Thursday 20 October 2011 09:55:34 Kumar Gala wrote: >> On Oct 20, 2011, at 8:26 AM, Mike Frysinger wrote: >> > On Thursday 20 October 2011 06:34:33 Kumar Nath, Chandan wrote: >> >> This patch was acked on September 21, but in latest code

[U-Boot] [PATCH v2] ne2000: Convert to new net-multi model, fixes build of three boards

2011-10-20 Thread Bernhard Kaindl
This fixes the build of the two sh boards shmin and r7780mp and qemu-mips which currently fail to build due to dropped pre-CONFIG_NET_MULTI code. This v2 patch minimizes the number of lines in the diff for easy review and to eliminate any possible accidential changes resulting from moving lines of

Re: [U-Boot] [PATCH 8/8] tegra2: Create SPI/UART switch code

2011-10-20 Thread Mike Frysinger
On Thursday 20 October 2011 16:44:26 Simon Glass wrote: > Given the current mess around the eserial structure definition macros > I would need to copy that again and create a set of _putc(), _puts() > functions for each UART I think. It could be done once serial is > cleaned up, but really don't wa

Re: [U-Boot] [PATCH 5/8] tegra2: Enable SPI environment on Seaboard

2011-10-20 Thread Tom Warren
Simon, > -Original Message- > From: s...@google.com [mailto:s...@google.com] On Behalf Of Simon Glass > Sent: Thursday, October 20, 2011 12:58 PM > To: Tom Warren > Cc: U-Boot Mailing List; Albert ARIBAUD; Stephen Warren > Subject: Re: [PATCH 5/8] tegra2: Enable SPI environment on Seaboard

Re: [U-Boot] [PATCH v2 REPOST 3/3] tegra2: Enable CONFIG_SYS_RELATIVE_IMAGES

2011-10-20 Thread Stephen Warren
Simon Glass wrote at Thursday, October 20, 2011 2:27 PM: > Hi Stephen, > > On Wed, Oct 19, 2011 at 8:24 AM, Stephen Warren wrote: > > Simon Glass wrote at Tuesday, October 18, 2011 7:04 PM: > >> On Tue, Oct 18, 2011 at 2:11 PM, Stephen Warren wrote: > >> > v2: New patch > >> > > >> > Signed-off-

Re: [U-Boot] [PATCH 8/8] tegra2: Create SPI/UART switch code

2011-10-20 Thread Simon Glass
Hi Mike, On Thu, Oct 20, 2011 at 1:34 PM, Mike Frysinger wrote: > On Thursday 20 October 2011 16:23:33 Simon Glass wrote: >> On Thu, Oct 20, 2011 at 1:09 PM, Mike Frysinger wrote: >> > On Thursday 20 October 2011 15:03:29 Simon Glass wrote: >> >> --- a/board/nvidia/seaboard/seaboard.c >> >> +++ b

Re: [U-Boot] [PATCH 8/8] tegra2: Create SPI/UART switch code

2011-10-20 Thread Mike Frysinger
On Thursday 20 October 2011 16:23:33 Simon Glass wrote: > On Thu, Oct 20, 2011 at 1:09 PM, Mike Frysinger wrote: > > On Thursday 20 October 2011 15:03:29 Simon Glass wrote: > >> --- a/board/nvidia/seaboard/seaboard.c > >> +++ b/board/nvidia/seaboard/seaboard.c > >> > >> +/* TODO: Remove this code

Re: [U-Boot] [PATCH v2 REPOST 3/3] tegra2: Enable CONFIG_SYS_RELATIVE_IMAGES

2011-10-20 Thread Simon Glass
Hi Stephen, On Wed, Oct 19, 2011 at 8:24 AM, Stephen Warren wrote: > Simon Glass wrote at Tuesday, October 18, 2011 7:04 PM: >> On Tue, Oct 18, 2011 at 2:11 PM, Stephen Warren wrote: >> > v2: New patch >> > >> > Signed-off-by: Stephen Warren >> >> Looks good - how do I make such an image so I c

Re: [U-Boot] [PATCH 8/8] tegra2: Create SPI/UART switch code

2011-10-20 Thread Simon Glass
Hi Mike, On Thu, Oct 20, 2011 at 1:09 PM, Mike Frysinger wrote: > On Thursday 20 October 2011 15:03:29 Simon Glass wrote: >> --- a/board/nvidia/seaboard/seaboard.c >> +++ b/board/nvidia/seaboard/seaboard.c >> >> +/* TODO: Remove this code when the SPI switch is working */ >> +#ifndef CONFIG_SPI_U

Re: [U-Boot] [PATCH] Allow the "reset" command to be omitted with CONFIG_CMD_RESET

2011-10-20 Thread Mike Frysinger
On Thursday 20 October 2011 16:10:10 Moffett, Kyle D wrote: > On Oct 20, 2011, at 15:53, Mike Frysinger wrote: > > On Thursday 20 October 2011 15:05:50 Kyle Moffett wrote: > >> --- a/common/cmd_boot.c > >> +++ b/common/cmd_boot.c > >> @@ -71,8 +71,10 @@ U_BOOT_CMD( > >> > >> #endif > >> > >> +#if

Re: [U-Boot] Pull request for u-boot-marvell.git

2011-10-20 Thread Albert ARIBAUD
Hi Prafulla, Le 20/10/2011 13:36, Prafulla Wadaskar a écrit : > Hi Albert > > Please kindly pull > The following changes since commit 457c2c8e1e1d201beb32961acb5520cf240373ab: >Fabio Estevam (1): > imx: fix coding style > > are available in the git repository at: > >u-boot-marvell

Re: [U-Boot] [PATCH] Allow the "reset" command to be omitted with CONFIG_CMD_RESET

2011-10-20 Thread Moffett, Kyle D
On Oct 20, 2011, at 15:53, Mike Frysinger wrote: > On Thursday 20 October 2011 15:05:50 Kyle Moffett wrote: >> --- a/common/cmd_boot.c >> +++ b/common/cmd_boot.c >> @@ -71,8 +71,10 @@ U_BOOT_CMD( >> >> #endif >> >> +#ifdef CONFIG_CMD_RESET >> U_BOOT_CMD( >> reset, 1, 0,do_reset, >>

Re: [U-Boot] [PATCH 8/8] tegra2: Create SPI/UART switch code

2011-10-20 Thread Mike Frysinger
On Thursday 20 October 2011 15:03:29 Simon Glass wrote: > --- a/board/nvidia/seaboard/seaboard.c > +++ b/board/nvidia/seaboard/seaboard.c > > +/* TODO: Remove this code when the SPI switch is working */ > +#ifndef CONFIG_SPI_UART_SWITCH eh ? isn't it working after these patches ? -mike signatur

Re: [U-Boot] [PATCH 6/8] tegra2: Implement SPI / UART GPIO switch

2011-10-20 Thread Mike Frysinger
On Thursday 20 October 2011 15:03:27 Simon Glass wrote: > +void uart_enable(NS16550_t regs); > +void spi_enable(void); also, you're not really enabling these devices, you're switching the pinmux. so perhaps a better name would be "pinmux_select_uart()" ? or something similar ? -mike signatur

Re: [U-Boot] [PATCH 7/8] tegra2: spi: Support SPI / UART switch

2011-10-20 Thread Mike Frysinger
On Thursday 20 October 2011 15:03:28 Simon Glass wrote: > --- a/drivers/spi/tegra2_spi.c > +++ b/drivers/spi/tegra2_spi.c > > +#include /* for NS16550_drain and NS16550_clear */ except you don't use those funcs in this file ... so this include shouldn't be here ? > +#include "uart-spi-fix.h" t

Re: [U-Boot] [PATCH] bootm: Use "panic()" in non-recoverable error conditions

2011-10-20 Thread Moffett, Kyle D
On Oct 20, 2011, at 15:31, Wolfgang Denk wrote: > Dear Kyle Moffett, > In message <1319134031-28503-1-git-send-email-kyle.d.moff...@boeing.com> you > wrote: >> All of these errors are various kinds of fatal memory overwrite >> conditions and so should be handled by panic(). This fixes a bug in >>

Re: [U-Boot] [PATCH 6/8] tegra2: Implement SPI / UART GPIO switch

2011-10-20 Thread Mike Frysinger
On Thursday 20 October 2011 15:03:27 Simon Glass wrote: > The Tegra2 Seaboard has the unfortunate feature that SPI and the console > UART are multiplexed on the same pins. We need to switch between one > and the other during SPI and console activity. so how does printf()/debug() work in the spi dr

Re: [U-Boot] [PATCH 3/8] tegra2: spi: Add SPI driver for SPIFLASH on Seaboard

2011-10-20 Thread Mike Frysinger
On Thursday 20 October 2011 15:03:24 Simon Glass wrote: > This driver supports SPI on Tegra2, running at 48MHz. the summary says "SPIFLASH" and "Seaboard". sounds like this is a tegra2 SoC issue, and so driver/board specific info shouldn't be in the summary. adding notes to the changelog as to

Re: [U-Boot] [PATCH 5/8] tegra2: Enable SPI environment on Seaboard

2011-10-20 Thread Simon Glass
Hi Tom, On Thu, Oct 20, 2011 at 12:31 PM, Tom Warren wrote: > Simon, > >> -Original Message- >> From: Simon Glass [mailto:s...@chromium.org] >> Sent: Thursday, October 20, 2011 12:03 PM >> To: U-Boot Mailing List >> Cc: Albert ARIBAUD; Tom Warren; Stephen Warren; Simon Glass >> Subject: [

Re: [U-Boot] [PATCH] Allow the "reset" command to be omitted with CONFIG_CMD_RESET

2011-10-20 Thread Mike Frysinger
On Thursday 20 October 2011 15:05:50 Kyle Moffett wrote: > This new #define is set by default in config_cmd_defaults.h, and > config_cmd_all.h, but this allows boards to conditionally omit the > "reset" command if necessary. ignoring the related issues as i'm sure Wolfgang will chime in ... > ---

Re: [U-Boot] [PATCH v2 REPOST 2/3] image: Implement IH_TYPE_KERNEL_REL

2011-10-20 Thread Stephen Warren
Wolfgang Denk wrote at Thursday, October 20, 2011 1:39 PM: > In message > you > wrote: > > > > My comment was that if code size could increase slightly the code > > could have less #ifdefs. Wolfgang said that it could not, and > > therefore my comments do not apply. Please ignore them Wolfgang

Re: [U-Boot] [PATCH v2 REPOST 2/3] image: Implement IH_TYPE_KERNEL_REL

2011-10-20 Thread Wolfgang Denk
Dear Simon Glass, In message you wrote: > > My comment was that if code size could increase slightly the code > could have less #ifdefs. Wolfgang said that it could not, and > therefore my comments do not apply. Please ignore them Wolfgang and > Stephen. DOn;t give up to oearly. My opinion is

Re: [U-Boot] [PATCH v2 REPOST 2/3] image: Implement IH_TYPE_KERNEL_REL

2011-10-20 Thread Wolfgang Denk
Dear Stephen Warren, In message <74cdbe0f657a3d45afbb94109fb122ff173d51c...@hqmail01.nvidia.com> you wrote: > > Sorry, but why exactly? Because I'm short of time, and would consider it helpful if you explain that you mean? > The patch I posted doesn't add size to the U-Boot binary without the >

Re: [U-Boot] [PATCH 1/4] cmdline: Add linux command line munging tools

2011-10-20 Thread Wolfgang Denk
Dear Doug Anderson, In message you wrote: > > ...then, we can decide if we want to add the abstract munging tools and > where to add them (either a separate lib/cmdline.c file or direct into > bootm). If you want them, I'll submit a patch with all of your review > feedback addressed and a seco

[U-Boot] [PATCH] usb: align usb_endpoint_descriptor to 16-bit boundary

2011-10-20 Thread Stefan Kristiansson
The usb_endpoint_descriptor struct is 7 bytes large and is defined as an array (ep_desc[USB_MAXENDPOINTS]) in the usb_interface struct in include/usb.h This fact will result in that every odd index in that array will start at an uneven address, this in turn makes accesses to u16 wMaxPacketSize una

Re: [U-Boot] [PATCH 5/8] tegra2: Enable SPI environment on Seaboard

2011-10-20 Thread Tom Warren
Simon, > -Original Message- > From: Simon Glass [mailto:s...@chromium.org] > Sent: Thursday, October 20, 2011 12:03 PM > To: U-Boot Mailing List > Cc: Albert ARIBAUD; Tom Warren; Stephen Warren; Simon Glass > Subject: [PATCH 5/8] tegra2: Enable SPI environment on Seaboard > > This uses th

Re: [U-Boot] [PATCH] bootm: Use "panic()" in non-recoverable error conditions

2011-10-20 Thread Wolfgang Denk
Dear Kyle Moffett, In message <1319134031-28503-1-git-send-email-kyle.d.moff...@boeing.com> you wrote: > All of these errors are various kinds of fatal memory overwrite > conditions and so should be handled by panic(). This fixes a bug in > which the error message might not get all the way out t

Re: [U-Boot] [PATCH 2/3] mpc85xx: Add a board-specific restart hook

2011-10-20 Thread Wolfgang Denk
Dear "Moffett, Kyle D", In message <5bf60315-656d-4173-8722-9e2ec99aa...@boeing.com> you wrote: > > For the boards that *do* set CONFIG_PANIC_HANG, none of the fatal > errors in common/cmd_bootm.c should cause U-Boot to reset, they are > all valid panic() conditions, such as GZIP overwrite errors

Re: [U-Boot] [PATCH 4/4] bootm: Add earlyprintk to fixup_silent_linux

2011-10-20 Thread Wolfgang Denk
Dear Doug Anderson, In message you wrote: > > I'm not sure I understand your comment. It sounds to me like you're saying > that fixup_silent_linux() (which already exists in u-boot code) shouldn't be > needed anymore in u-boot. ...and maybe you're considering it deprecated? I consider at leas

Re: [U-Boot] [PATCH v2 REPOST 2/3] image: Implement IH_TYPE_KERNEL_REL

2011-10-20 Thread Simon Glass
Hi Wolfgang, On Thu, Oct 20, 2011 at 12:03 PM, Stephen Warren wrote: > Wolfgang Denk wrote at Thursday, October 20, 2011 12:57 PM: >> In message <74cdbe0f657a3d45afbb94109fb122ff173d51c...@hqmail01.nvidia.com> >> you wrote: >> > >> > > > > Please give me a bit more context - how much is "a few 1

[U-Boot] [PATCH] Allow the "reset" command to be omitted with CONFIG_CMD_RESET

2011-10-20 Thread Kyle Moffett
This new #define is set by default in config_cmd_defaults.h, and config_cmd_all.h, but this allows boards to conditionally omit the "reset" command if necessary. Signed-off-by: Kyle Moffett --- README|1 + common/cmd_boot.c |2 ++ include/config_cmd_al

[U-Boot] [PATCH 8/8] tegra2: Create SPI/UART switch code

2011-10-20 Thread Simon Glass
On Seaboard the UART and SPI interfere with each other. This causes the UART to receive spurious zero bytes after SPI transactions and also means that SPI can corrupt a few output characters when it starts up if they are still in the UART buffer. This updates the board to use the SPI/UART switch t

[U-Boot] [PATCH 5/8] tegra2: Enable SPI environment on Seaboard

2011-10-20 Thread Simon Glass
This uses the SPI flash on Seaboard to store an 8KB environment. Signed-off-by: Simon Glass --- include/configs/harmony.h |3 +++ include/configs/seaboard.h |6 ++ include/configs/tegra2-common.h |3 +-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/i

[U-Boot] [PATCH 4/8] tegra2: config: Enable SPI flash on Seaboard

2011-10-20 Thread Simon Glass
The Seaboard includes a Winbond 4MB flash part. Signed-off-by: Simon Glass --- include/configs/seaboard.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/include/configs/seaboard.h b/include/configs/seaboard.h index 7d29144..7e8c8cc 100644 --- a/include/config

[U-Boot] [PATCH 6/8] tegra2: Implement SPI / UART GPIO switch

2011-10-20 Thread Simon Glass
The Tegra2 Seaboard has the unfortunate feature that SPI and the console UART are multiplexed on the same pins. We need to switch between one and the other during SPI and console activity. This new file implements a switch and keeps track of which peripheral owns the pins. It also flips over the c

[U-Boot] [PATCH 7/8] tegra2: spi: Support SPI / UART switch

2011-10-20 Thread Simon Glass
Add the SPI / UART switch logic into the Tegra2 SPI driver so that it can co-exist with the NS16550 UART. Signed-off-by: Simon Glass --- drivers/spi/tegra2_spi.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/spi/tegra2_spi.c b/drivers/spi/tegra2_spi.c

[U-Boot] [PATCH 3/8] tegra2: spi: Add SPI driver for SPIFLASH on Seaboard

2011-10-20 Thread Simon Glass
From: Tom Warren This driver supports SPI on Tegra2, running at 48MHz. Signed-off-by: Tom Warren --- arch/arm/include/asm/arch-tegra2/tegra2_spi.h | 75 board/nvidia/common/board.c |4 + drivers/spi/Makefile |1 + drivers/spi/tegra2

[U-Boot] [PATCH 1/8] tegra2: Tidy UART selection

2011-10-20 Thread Simon Glass
UART selection is done with a lot of #ifdefs. This cleans things up a little. Signed-off-by: Simon Glass --- board/nvidia/common/board.c | 57 +- 1 files changed, 34 insertions(+), 23 deletions(-) diff --git a/board/nvidia/common/board.c b/board/nvidia/

[U-Boot] [PATCH 2/8] tegra2: Add UARTB support

2011-10-20 Thread Simon Glass
UARTB is used on some boards, so support it here. Signed-off-by: Simon Glass --- board/nvidia/common/board.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c index a5da310..a2d45c1 100644 --- a/board/nvid

[U-Boot] [PATCH 0/8] tegra2: Implement SPI flash and saved environment

2011-10-20 Thread Simon Glass
Enable SPI flash on the Tegra2 Seaboard along with a saved 8KB environment. This involves a few pieces: - Tegra2 SPI driver - Seaboard config changes - a SPI / UART switch to handle switching between SPI and console UART This series applies cleanly on top of Stephen Warren's latest patch series

Re: [U-Boot] [PATCH 1/4] cmdline: Add linux command line munging tools

2011-10-20 Thread Wolfgang Denk
Dear Doug Anderson, In message you wrote: > > I'm happy to explain. :) In our setup, the Linux command line is > constructed (in part) by reading from the disk. When we load the kernel, we > also load the kernel command line. It is convenient for us if this kernel > command line on disk cont

Re: [U-Boot] [PATCH v2 REPOST 2/3] image: Implement IH_TYPE_KERNEL_REL

2011-10-20 Thread Stephen Warren
Wolfgang Denk wrote at Thursday, October 20, 2011 12:57 PM: > In message <74cdbe0f657a3d45afbb94109fb122ff173d51c...@hqmail01.nvidia.com> > you wrote: > > > > > > > Please give me a bit more context - how much is "a few 10s of bytes", > > > > > and which exact parts of the code are we talkign abou

Re: [U-Boot] [PATCH v2 REPOST 2/3] image: Implement IH_TYPE_KERNEL_REL

2011-10-20 Thread Wolfgang Denk
Dear Stephen Warren, In message <74cdbe0f657a3d45afbb94109fb122ff173d51c...@hqmail01.nvidia.com> you wrote: > > > > > Please give me a bit more context - how much is "a few 10s of bytes", > > > > and which exact parts of the code are we talkign about? > > > > > > How much? However much adding an

Re: [U-Boot] [PATCH V4 2/3] tools: logo: add static and unused to bmp arrays

2011-10-20 Thread Wolfgang Denk
Dear Che-Liang Chiou, in message <201110200842.02506.vap...@gentoo.org> Mike Frysinger wrote: > > i'm not sure this is the right way to go. what if we split bmp_logo.h > instead > into bmp_logo_data.h (which has the array contents) and bmp_log.h (which has > the defines and externs for the da

Re: [U-Boot] [PATCH] mii: miiphy register address width change

2011-10-20 Thread Kumar Gala
On Oct 20, 2011, at 9:03 AM, Kumar Nath, Chandan wrote: >> -Original Message- >> From: Mike Frysinger [mailto:vap...@gentoo.org] >> Sent: Thursday, October 20, 2011 7:28 PM >> To: Kumar Gala >> Cc: Kumar Nath, Chandan; u-boot@lists.denx.de List; Andy Fleming >> Subject: Re: [U-Boot] [PATC

Re: [U-Boot] [PATCH 1/4] cmdline: Add linux command line munging tools

2011-10-20 Thread Doug Anderson
Mike, On Thu, Oct 20, 2011 at 10:15 AM, Mike Frysinger wrote: > what is the difference in compiled sizes ? if the abstracted funcs add > negligible overhead, i think merging these locally in the bootm code might > make sense in a pure clean up sense ... > Compared to the simple version I just

[U-Boot] [PATCH] bootm: Use "panic()" in non-recoverable error conditions

2011-10-20 Thread Kyle Moffett
All of these errors are various kinds of fatal memory overwrite conditions and so should be handled by panic(). This fixes a bug in which the error message might not get all the way out to the serial console before the system reboots; panic() has a built-in delay after doing a printf() before call

[U-Boot] [PATCH v2] bootm: Avoid 256-byte overflow in fixup_silent_linux()

2011-10-20 Thread Doug Anderson
This makes fixup_silent_linux() use malloc() to allocate its working space, meaning that our maximum kernel command line should only be limited by malloc(). Previously it was silently overflowing the stack. Signed-off-by: Doug Anderson --- v2: This is a simpler version of patch 3/4 in my previou

Re: [U-Boot] [PATCH 2/3] mpc85xx: Add a board-specific restart hook

2011-10-20 Thread Moffett, Kyle D
On Oct 20, 2011, at 10:02, Wolfgang Denk wrote: > Dear "Moffett, Kyle D", > In message <8b4ac84d-1f22-4326-b75a-fb3cc39a5...@boeing.com> you wrote: >> >> Would you accept a patch which makes it possible for a board to not >> implement a "reset" command at all? >> >> There are a few places in comm

Re: [U-Boot] [PATCH 4/4] bootm: Add earlyprintk to fixup_silent_linux

2011-10-20 Thread Doug Anderson
Wolfgang, On Thu, Oct 20, 2011 at 7:42 AM, Wolfgang Denk wrote: > As before, I see very little (actually, none at all) need for such > function. Things like that should be handled usign environment > variables in a clever way. > > Please explain why you think this code is needed. > I'm not sur

Re: [U-Boot] [PATCH 1/4] cmdline: Add linux command line munging tools

2011-10-20 Thread Mike Frysinger
On Thursday 20 October 2011 13:06:23 Doug Anderson wrote: > Based on your comments, I'll assume that you're not interested in the more > general command line munging tools and will abandon them for now until > there is a clear need for them. what is the difference in compiled sizes ? if the abstr

  1   2   >