Re: [U-Boot] [PATCH 1/3 v2] 83xx: Default to using DMA to initialize SDRAM

2009-07-14 Thread Peter Tyser
to a known state. Previously a sequence of > > 64-bit stores was used. > > > > Signed-off-by: Peter Tyser > > --- > > cpu/mpc83xx/spd_sdram.c | 57 > > +++-- > > drivers/dma/fsl_dma.c| 16 +

Re: [U-Boot] [PATCH v2 0/6] Clean up top-level directory structure

2009-07-10 Thread Peter Tyser
On Sat, 2009-07-11 at 09:03 +0900, Shinya Kuribayashi wrote: > Hi, > > Peter Tyser wrote: > > This series moves api_examples to api/examples and moves all > > lib* directories into a common lib/ directory. It also > > moves the _config.mk files into their corr

Re: [U-Boot] [PATCH] ppc: Unlock cache-as-ram in a consistent manner

2009-07-10 Thread Peter Tyser
t; > CONFIG_SYS_INIT_RAM_LOCK defined > > to unlock their data cache during U-Boot's initialization. This > > improves U-Boot performance and provides a common cache state when > > booting to different OSes. > > > > Signed-off-by: Peter Tyser > > ---

[U-Boot] [PATCH] ppc: Unlock cache-as-ram in a consistent manner

2009-07-10 Thread Peter Tyser
improves U-Boot performance and provides a common cache state when booting to different OSes. Signed-off-by: Peter Tyser --- I've tested this on 86xx boards, it'd be great if someone could test on 83xx and 74xx/7xx. 85xx boards should not be affected by this change. This change assume

Re: [U-Boot] [PATCH 3/7] 86xx: Unlock l1 cache unconditionally

2009-07-10 Thread Peter Tyser
On Sat, 2009-07-11 at 01:07 +0200, Wolfgang Denk wrote: > Dear Peter Tyser, > > In message <1247259105.32367.22.ca...@localhost.localdomain> you wrote: > > > > The only platforms the define unlock_ram_in_cache() are 83xx, 85xx, > > 86xx, and 74xx_7xx. > >

Re: [U-Boot] [PATCH 3/7] 86xx: Unlock l1 cache unconditionally

2009-07-10 Thread Peter Tyser
On Fri, 2009-07-10 at 22:37 +0200, Wolfgang Denk wrote: > Dear Kumar Gala, > > In message <4b5a7126-fcdf-4eb0-9181-fb1be571c...@kernel.crashing.org> you > wrote: > > > > On May 22, 2009, at 10:26 AM, Peter Tyser wrote: > > > > > Previously, it wa

[U-Boot] [PATCH v2 6/6] Move api_examples to examples/api

2009-07-10 Thread Peter Tyser
Signed-off-by: Peter Tyser --- Makefile|4 ++-- {api_examples => examples/api}/.gitignore |0 {api_examples => examples/api}/Makefile |8 {api_examples => examples/api}/crt0.S |0 {api_examples => examples

[U-Boot] [PATCH v2 5/6] Move examples/ to examples/standalone

2009-07-10 Thread Peter Tyser
The current files in examples are all standalone application examples, so put them in their own subdirectory for organizational purposes Signed-off-by: Peter Tyser --- Makefile | 16 ++-- examples/{ => standalone}/.gitign

[U-Boot] [PATCH v2 4/6] Move libfdt to lib/libfdt

2009-07-10 Thread Peter Tyser
Signed-off-by: Peter Tyser --- Makefile |2 +- {libfdt => lib/libfdt}/Makefile |0 {libfdt => lib/libfdt}/README|0 {libfdt => lib/libfdt}/fdt.c |0 {libfdt => lib/libfdt}/fdt_ro.c |0 {l

[U-Boot] [PATCH v2 0/6] Clean up top-level directory structure

2009-07-10 Thread Peter Tyser
.mail-archive.com/u-boot@lists.denx.de/msg16032.html Peter Tyser (6): Move architecture specific config.mk files into subdirs Move lib_ directories to lib/ Move lib_generic to lib/generic Move libfdt to lib/libfdt Move examples/ to examples/standalone Move api_examples to example

[U-Boot] [PATCH v2 1/6] Move architecture specific config.mk files into subdirs

2009-07-10 Thread Peter Tyser
This cleans up U-Boot's toplevel directory a bit and makes the architecture 'config.mk' file naming and location similar to board and cpu 'config.mk' files Signed-off-by: Peter Tyser --- config.mk|2 +- arm_confi

Re: [U-Boot] [PATCH 0/9] Clean up top-level directory structure

2009-07-09 Thread Peter Tyser
On Thu, 2009-07-09 at 22:20 +0200, Wolfgang Denk wrote: > Dear Peter Tyser, > > In message <1247167919.905.50.ca...@localhost.localdomain> you wrote: > > > > Without the -M option the patches were hundreds of KB, with -M and only > > 2 lines of context they are s

Re: [U-Boot] [PATCH 0/9] Clean up top-level directory structure

2009-07-09 Thread Peter Tyser
On Thu, 2009-07-09 at 15:15 -0400, Mike Frysinger wrote: > On Thursday 09 July 2009 14:49:07 Peter Tyser wrote: > > > > Move lib_ppc to lib/ppc > > > > Move lib_arm to lib/arm > > > > Move lib_i386 to lib/i386 > > > > Move lib_m6

Re: [U-Boot] [PATCH 0/9] Clean up top-level directory structure

2009-07-09 Thread Peter Tyser
> > Move lib_ppc to lib/ppc > > Move lib_arm to lib/arm > > Move lib_i386 to lib/i386 > > Move lib_m68k to lib/m68k > > Move remaining lib_ to lib/ > > why is ppc/arm/i386/m68k special ? seems like it'd make more sense to either > have one patch for every arch or squash them altogethe

Re: [U-Boot] [PATCH 9/9] Move api_examples to api/examples

2009-07-09 Thread Peter Tyser
Hi Rafal, On Thu, 2009-07-09 at 18:22 +0200, Rafal Jaworowski wrote: > On 2009-07-09, at 17:08, Peter Tyser wrote: > > > Signed-off-by: Peter Tyser > > --- > > Makefile|4 ++-- > > {api_examples => api/examples}/.gitignore

[U-Boot] [PATCH 9/9] Move api_examples to api/examples

2009-07-09 Thread Peter Tyser
Signed-off-by: Peter Tyser --- Makefile|4 ++-- {api_examples => api/examples}/.gitignore |0 {api_examples => api/examples}/Makefile |8 {api_examples => api/examples}/crt0.S |0 {api_examples => api/exam

[U-Boot] [PATCH 8/9] Move libfdt to lib/libfdt

2009-07-09 Thread Peter Tyser
Signed-off-by: Peter Tyser --- Makefile |2 +- {libfdt => lib/libfdt}/Makefile |0 {libfdt => lib/libfdt}/README|0 {libfdt => lib/libfdt}/fdt.c |0 {libfdt => lib/libfdt}/fdt_ro.c |0 {l

[U-Boot] [PATCH 4/9] Move lib_i386 to lib/i386

2009-07-09 Thread Peter Tyser
Signed-off-by: Peter Tyser --- README |2 +- doc/TODO-i386|2 +- include/asm-i386/interrupt.h |2 +- include/asm-i386/u-boot-i386.h |4 ++-- {lib_i386 => lib/i386}/Makefile |

[U-Boot] [PATCH 6/9] Move remaining lib_ to lib/

2009-07-09 Thread Peter Tyser
Signed-off-by: Peter Tyser --- Makefile |8 ++-- README | 12 ++-- config.mk|1 - doc/README.nios |2 +- include/common.h

[U-Boot] [PATCH 5/9] Move lib_m68k to lib/m68k

2009-07-09 Thread Peter Tyser
Signed-off-by: Peter Tyser --- README |2 +- board/cobra5272/u-boot.lds |2 +- board/esd/tasreg/u-boot.lds |2 +- board/freescale/m52277evb/u-boot.spa |2 +- board/freescale/m5235evb/u-boot.16 |4 ++-- board/freescale

[U-Boot] [PATCH 2/9] Move lib_ppc to lib/ppc

2009-07-09 Thread Peter Tyser
Signed-off-by: Peter Tyser --- Makefile |4 README|4 ++-- api_examples/Makefile |4 ++-- board/LEOX/elpt860/u-boot.lds | 10 +- board/RPXClassic/u

[U-Boot] [PATCH 0/9] Clean up top-level directory structure

2009-07-09 Thread Peter Tyser
y had some time to reorganize:) I compile tested on all PPC boards and verified an out of tree build. This series needs the api_examples Make cleanup applied: http://www.mail-archive.com/u-boot@lists.denx.de/msg16032.html Peter Tyser (9): Move architecture specific config.mk files into subdirs

[U-Boot] [PATCH 3/9] Move lib_arm to lib/arm

2009-07-09 Thread Peter Tyser
Signed-off-by: Peter Tyser --- README |2 +- board/actux1/u-boot.lds|2 +- board/actux2/u-boot.lds|2 +- board/actux3/u-boot.lds|2 +- board/freescale/mx31ads/u-boot.lds |2 +- board/trab/Makefile

[U-Boot] [PATCH 1/9] Move architecture specific config.mk files into subdirs

2009-07-09 Thread Peter Tyser
This cleans up U-Boot's toplevel directory a bit and makes the architecture 'config.mk' file naming and location similar to board and cpu 'config.mk' files Signed-off-by: Peter Tyser --- config.mk|2 +- arm_confi

Re: [U-Boot] [PATCH 1/3 v2] 83xx: Default to using DMA to initializeSDRAM

2009-07-08 Thread Peter Tyser
On Thu, 2009-07-09 at 08:24 +0800, Liu Dave-R63238 wrote: > > When SDRAM ECC is enabled and CONFIG_ECC_INIT_VIA_DDRCONTROLLER is not > > defined use DMA to set SDRAM to a known state. Previously a > > sequence of > > 64-bit stores was used. > > IIRC, the DMA init SDRAM is slower than the 64bit s

[U-Boot] [PATCH 3/3 v2] fsl_dma: Fix SDRAM initial value

2009-07-08 Thread Peter Tyser
The initial SDRAM value was being hardcoded to CONFIG_MEM_INIT_VALUE instead of the value passed in 'val'. Signed-off-by: Peter Tyser --- drivers/dma/fsl_dma.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/dma/fsl_dma.c b/drivers/dma/fsl_dma.c ind

[U-Boot] [PATCH 1/3 v2] 83xx: Default to using DMA to initialize SDRAM

2009-07-08 Thread Peter Tyser
When SDRAM ECC is enabled and CONFIG_ECC_INIT_VIA_DDRCONTROLLER is not defined use DMA to set SDRAM to a known state. Previously a sequence of 64-bit stores was used. Signed-off-by: Peter Tyser --- cpu/mpc83xx/spd_sdram.c | 57 +++-- drivers/dma

[U-Boot] [PATCH 2/3 v2] 83xx: Add CONFIG_MEM_INIT_VALUE for boards with ECC

2009-07-08 Thread Peter Tyser
Signed-off-by: Peter Tyser --- cpu/mpc83xx/spd_sdram.c |2 +- include/configs/MPC8349EMDS.h |1 + include/configs/MPC8360EMDS.h |1 + include/configs/MPC8360ERDK.h |1 + include/configs/MPC837XEMDS.h |1 + include/configs/MPC837XERDB.h |1 + include/configs

[U-Boot] [PATCH 0/3 v2] DMA ECC update

2009-07-08 Thread Peter Tyser
reescale boards with CONFIG_ECC. Peter Tyser (3): 83xx: Default to using DMA to initialize SDRAM 83xx: Added CONFIG_MEM_INIT_VALUE for boards with ECC fsl_dma: Fix SDRAM initial value cpu/mpc83xx/spd_sdram.c | 57 +++-- drivers/dma/fsl_dma.c

Re: [U-Boot] [PATCH 0/3] DMA ECC update

2009-07-08 Thread Peter Tyser
On Wed, 2009-07-08 at 16:13 -0700, Ira W. Snyder wrote: > On Wed, Jul 08, 2009 at 05:59:33PM -0500, Peter Tyser wrote: > > On Wed, 2009-07-08 at 15:31 -0700, Ira W. Snyder wrote: > > > On Wed, Jul 08, 2009 at 02:28:39PM -0500, Peter Tyser wrote: > > > > These ch

Re: [U-Boot] [PATCH 0/3] DMA ECC update

2009-07-08 Thread Peter Tyser
On Wed, 2009-07-08 at 15:31 -0700, Ira W. Snyder wrote: > On Wed, Jul 08, 2009 at 02:28:39PM -0500, Peter Tyser wrote: > > These changes bring the 83xx SDRAM ECC initialization in line > > with the 85xx/86xx boards and also fixes a minor bug in fsl_dma.c. > > > > I do

[U-Boot] [PATCH 3/3] fsl_dma: Fix SDRAM initial value

2009-07-08 Thread Peter Tyser
The initial SDRAM value was being hardcoded to CONFIG_MEM_INIT_VALUE instead of the value passed in 'val'. Signed-off-by: Peter Tyser --- drivers/dma/fsl_dma.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/dma/fsl_dma.c b/drivers/dma/fsl_dma.c ind

[U-Boot] [PATCH 1/3] 83xx: Default to using DMA to initialize SDRAM

2009-07-08 Thread Peter Tyser
When SDRAM ECC is enabled and CONFIG_ECC_INIT_VIA_DDRCONTROLLER is not defined use DMA to set SDRAM to a known state. Previously a sequence of 64-bit stores was used. Signed-off-by: Peter Tyser --- cpu/mpc83xx/spd_sdram.c | 57 +++-- drivers/dma

[U-Boot] [PATCH 2/3] 83xx: Add CONFIG_MEM_INIT_VALUE for boards with ECC

2009-07-08 Thread Peter Tyser
Signed-off-by: Peter Tyser --- cpu/mpc83xx/spd_sdram.c |2 +- include/configs/MPC8349EMDS.h |1 + include/configs/MPC8360EMDS.h |1 + include/configs/MPC8360ERDK.h |1 + include/configs/MPC837XEMDS.h |1 + include/configs/MPC837XERDB.h |1 + include/configs

[U-Boot] [PATCH 0/3] DMA ECC update

2009-07-08 Thread Peter Tyser
e if SDRAM could be initialized via the DDR controller with CONFIG_ECC_INIT_VIA_DDRCONTROLLER on the 83xx platform too, but I'm not going to tackle it:) The patches also resolve the compile error Stefan brought up with non-freescale boards with CONFIG_ECC. Peter Tyser (3): 83xx: Default

Re: [U-Boot] [PATCH] 85xx: Fix mapping of 0xfffffxxx when CONFIG_MP

2009-07-08 Thread Peter Tyser
On Wed, 2009-07-08 at 10:52 -0500, Kumar Gala wrote: > On Jul 7, 2009, at 5:38 PM, Peter Tyser wrote: > > > On Tue, 2009-07-07 at 17:24 -0500, Kumar Gala wrote: > >> On Jul 7, 2009, at 5:13 PM, Peter Tyser wrote: > >> > >>> On Tue, 2009-07-07 at 16:5

Re: [U-Boot] [PATCH v2 12/12] 83xx: Add support for fsl_dma driver

2009-07-08 Thread Peter Tyser
On Wed, 2009-07-08 at 09:07 -0500, Kumar Gala wrote: > Peter, > > Also, I'm not seeing anyone defining CONFIG_DDR_ECC_INIT_VIA_DMA for > 83xx. I don't see any reason not to use DMA on 83xx. When I submitted the original patch I didn't see any 83xx boards using either CONFIG_ECC_INIT_VIA_DDRCON

Re: [U-Boot] [PATCH v2 12/12] 83xx: Add support for fsl_dma driver

2009-07-08 Thread Peter Tyser
Hi Stefan, > > +++ b/include/asm-ppc/config.h > > @@ -30,8 +30,9 @@ > > #endif > > > > #ifndef CONFIG_FSL_DMA > > -#if defined(CONFIG_DDR_ECC) && !defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER) > > && \ - (defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)) > > +#if ((!defined CONFIG_MPC83xx &&

Re: [U-Boot] [RFC][PATCH] Update malloc to dlmalloc version 2.8.4

2009-07-08 Thread Peter Tyser
Robin Getz wrote: > On Wed 8 Jul 2009 01:58, Mike Frysinger pondered: >> On Tuesday 07 July 2009 18:24:56 Kumar Gala wrote: >>> On Jul 7, 2009, at 3:25 PM, Scott Wood wrote: Jean-Christophe PLAGNIOL-VILLARD wrote: > On 15:02 Tue 07 Jul , Scott Wood wrote: >> Kumar Gala wrote: >

Re: [U-Boot] [PATCH] 85xx: Fix mapping of 0xfffffxxx when CONFIG_MP

2009-07-07 Thread Peter Tyser
On Tue, 2009-07-07 at 17:24 -0500, Kumar Gala wrote: > On Jul 7, 2009, at 5:13 PM, Peter Tyser wrote: > > > On Tue, 2009-07-07 at 16:59 -0500, Kumar Gala wrote: > >> On Jul 7, 2009, at 1:43 PM, Peter Tyser wrote: > >> > >>> Previously, boot page tra

Re: [U-Boot] [PATCH] 85xx: Fix mapping of 0xfffffxxx when CONFIG_MP

2009-07-07 Thread Peter Tyser
On Tue, 2009-07-07 at 16:59 -0500, Kumar Gala wrote: > On Jul 7, 2009, at 1:43 PM, Peter Tyser wrote: > > > Previously, boot page translation was enabled while U-Boot executed. > > This resulted in the address range 0xf000 - 0x being > > translated to SDRAM w

[U-Boot] [PATCH] 85xx: Fix mapping of 0xfffffxxx when CONFIG_MP

2009-07-07 Thread Peter Tyser
cores have been initialized which allows the 0xfxxx address space to be properly accessed. Signed-off-by: Peter Tyser --- This was tested on the XPedite5370 which has flash mapped in the 0xfxxx adddress space. I verified the flash was accessible as expected and Linux properly brought up 2

Re: [U-Boot] MPC8572 board

2009-07-06 Thread Peter Tyser
Hi Nikhil, > We need to buy a MPC8572 development board for application prototyping. > We are located in the US. From what I've found the following companies > sell an MPC8572 board: > > 1) Micetek > 2) Embeddedplanet.com > 3) Freescale > 4) Xes-inc > > Are there any other companies that sell

Re: [U-Boot] [PATCH 4/5]P2020RDB Removed CONFIG_NUM_CPUS for 85xx processor series.

2009-07-02 Thread Peter Tyser
On Thu, 2009-07-02 at 16:15 +0530, Poonam Aggrwal wrote: > Instead the num of cores is determined dynamically by reading the SVR values. > This can help to use the same u-boot image across the platforms. > > Added CONFIG_MAX_CPUS value 8. > > Also revamped and corrected few Freescale Copyright me

Re: [U-Boot] [PATCH] 83xx: UEC: Added support for bitBang MII driver access to PHYs

2009-07-01 Thread Peter Tyser
Hi Richard, > -#if !(defined(CONFIG_EP8248) || defined(CONFIG_EP82XXM)) > - volatile ioport_t *iop = ioport_addr ((immap_t *) CONFIG_SYS_IMMR, > MDIO_PORT); > +#if !(defined(CONFIG_EP8248) || defined(CONFIG_EP82XXM)) \ > + && !defined(CONFIG_MPC83XX) > + volatile gpio_n_t *iop = iopor

Re: [U-Boot] [RFC/PATCH 0/3] Add optional dma transfers to mtest

2009-07-01 Thread Peter Tyser
On Thu, 2009-05-21 at 12:21 -0500, Peter Tyser wrote: > This series tries to add a DMA memory test to the mtest tests. The > DMA test performs bursts to SDRAM which can be useful in stressing memory > and can be difficult to produce reliably in certain circumstances (eg > running with

[U-Boot] [PATCH v2] XPedite5170 board support

2009-06-30 Thread Peter Tyser
Initial support for Extreme Engineering Solutions XPedite5170 - a MPC8640-based 3U VPX single board computer with a PMC/XMC site. Signed-off-by: Peter Tyser --- changes since v1: - Removed enabling of FSL DMA driver and DMA memory test MAINTAINERS |1 + MAKEALL

[U-Boot] [PATCH v2 02/12] fsl_dma: Add bitfield definitions for common registers

2009-06-30 Thread Peter Tyser
Signed-off-by: Peter Tyser --- drivers/dma/fsl_dma.c | 12 +- include/asm-ppc/fsl_dma.h | 46 + 2 files changed, 52 insertions(+), 6 deletions(-) diff --git a/drivers/dma/fsl_dma.c b/drivers/dma/fsl_dma.c index a9989ee..baf2942 100644

[U-Boot] [PATCH v2 05/12] fsl_dma: Fix Channel Start bug in dma_check()

2009-06-30 Thread Peter Tyser
The Channel Start (CS) bit in the Mode Register (MR) should actually be cleared as the comment in the code suggests. Previously, CS was being set, not cleared. Assuming normal operation of the DMA engine, this change shouldn't have any real affect. Signed-off-by: Peter Tyser --- driver

[U-Boot] [PATCH v2 03/12] fsl_dma: Use proper I/O access functions

2009-06-30 Thread Peter Tyser
Signed-off-by: Peter Tyser --- drivers/dma/fsl_dma.c | 32 ++-- 1 files changed, 18 insertions(+), 14 deletions(-) diff --git a/drivers/dma/fsl_dma.c b/drivers/dma/fsl_dma.c index baf2942..33ea828 100644 --- a/drivers/dma/fsl_dma.c +++ b/drivers/dma/fsl_dma.c

[U-Boot] [PATCH v2 08/12] 85xx, 86xx: Move dma_init() call to common code

2009-06-30 Thread Peter Tyser
Signed-off-by: Peter Tyser --- board/mpc8540eval/mpc8540eval.c |2 +- board/sbc8560/sbc8560.c |2 +- cpu/mpc85xx/cpu_init.c |4 +++- cpu/mpc85xx/ddr-gen1.c |2 -- cpu/mpc86xx/cpu_init.c |3 +++ 5 files changed, 8 insertions(+), 5 deletions

[U-Boot] [PATCH v2 09/12] fsl_dma: Break out common memory initialization function

2009-06-30 Thread Peter Tyser
Signed-off-by: Peter Tyser --- board/mpc8540eval/mpc8540eval.c | 32 +--- board/sbc8560/sbc8560.c | 32 +--- cpu/mpc85xx/ddr-gen1.c | 26 +- drivers/dma/fsl_dma.c | 32

[U-Boot] [PATCH v2 11/12] 83xx: Replace CONFIG_ECC_INIT_VIA_DDRC references

2009-06-30 Thread Peter Tyser
Update 83xx architecture's CONFIG_ECC_INIT_VIA_DDRC references to CONFIG_ECC_INIT_VIA_DDRCONTROLLER, which other Freescale architectures use Signed-off-by: Peter Tyser --- board/freescale/mpc8360emds/mpc8360emds.c |4 ++-- board/freescale/mpc8360erdk/mpc8360erdk.c |4 ++--

[U-Boot] [PATCH v2 12/12] 83xx: Add support for fsl_dma driver

2009-06-30 Thread Peter Tyser
Signed-off-by: Peter Tyser Reviewed-by: Ira W. Snyder Tested-by: Ira W. Snyder --- cpu/mpc83xx/cpu.c| 85 -- cpu/mpc83xx/spd_sdram.c | 40 ++-- drivers/dma/fsl_dma.c| 64

[U-Boot] [PATCH v2 07/12] fsl_dma: Move dma function prototypes to common header file

2009-06-30 Thread Peter Tyser
Signed-off-by: Peter Tyser --- cpu/mpc85xx/ddr-gen1.c|4 include/asm-ppc/fsl_dma.h |5 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cpu/mpc85xx/ddr-gen1.c b/cpu/mpc85xx/ddr-gen1.c index b188906..9fc498e 100644 --- a/cpu/mpc85xx/ddr-gen1.c +++ b/cpu

[U-Boot] [PATCH v2 10/12] fsl_dma: Make DMA transactions snoopable

2009-06-30 Thread Peter Tyser
Make DMA transactions snoopable so that CPUs can keep caches up-to-date. This allows dma transactions to be used for operations such as memory copies without any additional cache control operations. Signed-off-by: Peter Tyser --- drivers/dma/fsl_dma.c |4 ++-- 1 files changed, 2 insertions

[U-Boot] [PATCH v2 01/12] 85xx, 86xx: Break out DMA code to a common file

2009-06-30 Thread Peter Tyser
DMA support is now enabled via the CONFIG_FSL_DMA define instead of the previous CONFIG_DDR_ECC Signed-off-by: Peter Tyser --- cpu/mpc85xx/cpu.c| 47 --- cpu/mpc86xx/cpu.c| 55 --- drivers/dma/Makefile |1 + drivers/dma

[U-Boot] [PATCH v2 06/12] 8xxx: Rename dma_xfer() to dmacpy()

2009-06-30 Thread Peter Tyser
Also update dmacpy()'s argument order to match memcpy's and use phys_addr_t/phy_size_t for address/size arguments Signed-off-by: Peter Tyser --- board/mpc8540eval/mpc8540eval.c | 25 - board/sbc8560/sbc8560.c | 25 - cpu/mpc

[U-Boot] [PATCH v2 04/12] fsl_dma: Add support for arbitrarily large transfers

2009-06-30 Thread Peter Tyser
Support DMA transfers larger than the DMA controller's limit of (2 ^ 26 - 1) bytes Signed-off-by: Peter Tyser --- drivers/dma/fsl_dma.c | 40 1 files changed, 28 insertions(+), 12 deletions(-) diff --git a/drivers/dma/fsl_dma.c b/drivers/dma/fsl_

[U-Boot] [PATCH v2 00/12] 8xxx dma updates

2009-06-30 Thread Peter Tyser
on MPC8572 and MPC8640-based boards. Ira Snyder tested on an 83xx-based board. I compile-tested all 8xxx boards. Peter Tyser (12): 85xx, 86xx: Break out DMA code to a common file fsl_dma: Add bitfield definitions for common registers fsl_dma: Use proper I/O access functions fsl_dma: Add s

Re: [U-Boot] [PATCH 09/11] fsl_dma: Move dma function prototypes to common header file

2009-06-30 Thread Peter Tyser
Hi Kumar, > >> #ifdef protection here seems kinda pointless > > > > Most boards won't have CONFIG_FSL_DMA defined, but this file will > > still > > be used in the immap_86xx.h files for padding immap_t. I figured most > > users won't have dma_init() or dmacpy() so the protection wouldn't > >

Re: [U-Boot] [PATCH 09/11] fsl_dma: Move dma function prototypes to common header file

2009-06-22 Thread Peter Tyser
Hi Kumar, > > diff --git a/include/asm-ppc/fsl_dma.h b/include/asm-ppc/fsl_dma.h > > index c9ec6b5..06ecdcd 100644 > > --- a/include/asm-ppc/fsl_dma.h > > +++ b/include/asm-ppc/fsl_dma.h > > @@ -94,4 +94,9 @@ typedef struct fsl_dma { > > charres4[56]; > > } fsl_dma_t; > > > > +#ifdef CONFI

[U-Boot] [PATCH 4/4] api_examples/Makefile: General cleanup

2009-06-22 Thread Peter Tyser
/api_examples/.depend', needed by `_depend'. Stop. make[1]: Leaving directory `/home/wd/git/u-boot/work/api_examples' make: *** [depend] Error 2 Since symlinked source files are no longer used, this bug no longer exists. Signed-off-by: Peter Tyser --- Makefile

[U-Boot] [PATCH 2/4] api_examples/Makefile: Combine ELF and BIN targets

2009-06-22 Thread Peter Tyser
Combining the two rules cleans up the Makefile a bit Signed-off-by: Peter Tyser --- api_examples/Makefile | 21 - 1 files changed, 8 insertions(+), 13 deletions(-) diff --git a/api_examples/Makefile b/api_examples/Makefile index be0b462..98506a0 100644 --- a/api_examples

[U-Boot] [PATCH 3/4] api_examples/Makefile: Get rid of unnecessary intermediate LIB target

2009-06-22 Thread Peter Tyser
Signed-off-by: Peter Tyser --- api_examples/Makefile | 15 +-- 1 files changed, 5 insertions(+), 10 deletions(-) diff --git a/api_examples/Makefile b/api_examples/Makefile index 98506a0..a85fd9c 100644 --- a/api_examples/Makefile +++ b/api_examples/Makefile @@ -44,7 +44,6

[U-Boot] [PATCH 1/4] api_examples/Makefile: Split up variable declarations

2009-06-22 Thread Peter Tyser
This cleans up the Makefile a bit and simplifies future changes Signed-off-by: Peter Tyser --- These are some similar changes to the ones I made to the tools directory recently. It gets rid of symlinking source files which has the side benefit of resolving the out of tree build error for the

Re: [U-Boot] [PATCH ... resent] Atmel LCD driver GUARDTIME fix

2009-06-22 Thread Peter Tyser
On Mon, 2009-06-22 at 16:31 +0100, Mark Jackson wrote: > Haavard Skinnemoen wrote: > > Mark Jackson wrote: > >> User-Agent: Thunderbird 2.0.0.21 (X11/20090409) > > > > (...) > > > >> My patch has been mangled ... there's an extra space at the start of each > >> "unchanged" patch line. > > > > R

Re: [U-Boot] [PATCH 3/4] ZOOM2 Add power reset button

2009-06-10 Thread Peter Tyser
On Wed, 2009-06-10 at 11:16 -0500, Menon, Nishanth wrote: > > -Original Message- > > From: Dirk Behme [mailto:dirk.be...@googlemail.com] > > Sent: Wednesday, June 10, 2009 10:44 AM > > >>> --- a/drivers/i2c/twl4030_i2c.c > > >> All other drivers in drivers/i2c are host adapter drivers. Ie

Re: [U-Boot] [PATCH 3/4] ZOOM2 Add power reset button

2009-06-10 Thread Peter Tyser
Hi Tom, > diff --git a/drivers/i2c/twl4030_i2c.c b/drivers/i2c/twl4030_i2c.c > index 774f813..549f974 100644 > --- a/drivers/i2c/twl4030_i2c.c > +++ b/drivers/i2c/twl4030_i2c.c > @@ -35,3 +35,25 @@ static inline int twl4030_i2c_read_u8(u8 chip_no, u8 *val, > u8 reg) > return i2c_read(chip_n

Re: [U-Boot] TSEC ethernet controller problems (crc errors / corruption)

2009-06-02 Thread Peter Tyser
On Tue, 2009-06-02 at 09:42 -0700, David Hawkins wrote: > > I am unable to reproduce the corruption on my MPC8349EMDS eval board, > > but I'm running out of ideas to try and find the source of this problem. > > One more piece of info: the MPC8349E-MDS board contains the > MPC8349E processor, where

Re: [U-Boot] potential Uboot Ping problem

2009-06-01 Thread Peter Tyser
Hi Steven, On Mon, 2009-06-01 at 08:03 -0700, Steven Zedeck wrote: > I guess thats good news. I looked inside the cmd_ping code a bit. I bet > there's a "while" loop somewhere that is waiting for something and may not > have a timeout loop. Any ideas? > > Thanks, > Steve Please don't top post, i

Re: [U-Boot] [PATCH 1/2] 83xx: Replace CONFIG_MPC83XX with CONFIG_MPC83xx

2009-05-24 Thread Peter Tyser
On Sun, 2009-05-24 at 14:00 -0500, Kim Phillips wrote: > On Fri, 22 May 2009 17:23:24 -0500 > Peter Tyser wrote: > > > Use the standard lowercase "xx" capitalization that other Freescale > > architectures use for CPU defines to prevent confusion and errors >

[U-Boot] [PATCH 1/2] 83xx: Replace CONFIG_MPC83XX with CONFIG_MPC83xx

2009-05-22 Thread Peter Tyser
Use the standard lowercase "xx" capitalization that other Freescale architectures use for CPU defines to prevent confusion and errors Signed-off-by: Peter Tyser --- api/api_platform-ppc.c|2 +- board/freescale/mpc8349emds/mpc8349emds.c |2 +- board/sbc8349

[U-Boot] [PATCH 2/2] 83xx: Replace CONFIG_MPC83[0-9]X with MPC83[0-9]x

2009-05-22 Thread Peter Tyser
Use the standard lowercase "x" capitalization that other Freescale architectures use for CPU defines to prevent confusion and errors Signed-off-by: Peter Tyser --- cpu/mpc83xx/cpu_init.c|2 +- cpu/mpc83xx/speed.c | 66 ---

[U-Boot] [RFC/PATCH] 83xx: Add support for using the fsl_dma driver

2009-05-22 Thread Peter Tyser
Signed-off-by: Peter Tyser --- I don't have any 83xx boards to try this on, but I verified the dma code still works on an 86xx board. An easy way to test this change (Ira?) would be to enable CONFIG_FSL_DMA and CONFIG_SYS_DMA_MEMTEST after the "85xx/86xx dma updates" and &q

[U-Boot] [PATCH 7/7] XPedite5170 board support

2009-05-22 Thread Peter Tyser
Initial support for Extreme Engineering Solutions XPedite5170 - a MPC8640-based 3U VPX single board computer with a PMC/XMC site. Signed-off-by: Peter Tyser --- MAINTAINERS |1 + MAKEALL |1 + Makefile|3

[U-Boot] [PATCH 4/7] xes: Update Freescale PCI code to work with 86xx processors

2009-05-22 Thread Peter Tyser
Signed-off-by: Peter Tyser --- board/xes/common/Makefile |2 +- .../xes/common/{fsl_85xx_pci.c => fsl_8xxx_pci.c} | 81 +-- 2 files changed, 73 insertions(+), 10 deletions(-) rename board/xes/common/{fsl_85xx_pci.c => fsl_8xxx_pci.c} (79%)

[U-Boot] [PATCH 6/7] xes: Update Freescale clock code to work with 86xx processors

2009-05-22 Thread Peter Tyser
Signed-off-by: Peter Tyser --- board/xes/common/Makefile |3 ++- .../xes/common/{fsl_8572_clk.c => fsl_8xxx_clk.c} |8 2 files changed, 10 insertions(+), 1 deletions(-) rename board/xes/common/{fsl_8572_clk.c => fsl_8xxx_clk.c} (86%) diff -

[U-Boot] [PATCH 2/7] tsec: Add support for BCM5482S PHY

2009-05-22 Thread Peter Tyser
From: Zach LeRoy Signed-off-by: Zach LeRoy --- drivers/net/tsec.c | 41 + include/tsec.h |2 ++ 2 files changed, 43 insertions(+), 0 deletions(-) diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c index 399116f..63fc02e 100644 --- a/drivers/n

[U-Boot] [PATCH 5/7] xes: Update Freescale DDR code to work with 86xx processors

2009-05-22 Thread Peter Tyser
Signed-off-by: Peter Tyser --- board/xes/common/Makefile |2 +- .../xes/common/{fsl_85xx_ddr.c => fsl_8xxx_ddr.c} |8 +++- 2 files changed, 8 insertions(+), 2 deletions(-) rename board/xes/common/{fsl_85xx_ddr.c => fsl_8xxx_ddr.c} (92%) diff --git a

[U-Boot] [PATCH 3/7] 86xx: Unlock l1 cache unconditionally

2009-05-22 Thread Peter Tyser
Previously, it was only unlocked when Linux was executed using the "bootm" command. Unlocking it unconditionally improves U-Boot performance and provides a common cache state when booting OSes. Signed-off-by: Peter Tyser --- lib_ppc/board.c |8 +--- lib_ppc/bootm.c |3 ++

[U-Boot] [PATCH 1/7] 85xx: Add PORBMSR and PORDEVSR shift defines

2009-05-22 Thread Peter Tyser
Add defines similar to those already used for the the 86xx architecture. This will ease sharing of PCI code between the 85xx and 86xx architectures. Signed-off-by: Peter Tyser --- include/asm-ppc/immap_85xx.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/asm

[U-Boot] [PATCH 0/7] Initial support for the XPedite5170

2009-05-22 Thread Peter Tyser
Initial support for Extreme Engineering Solutions XPedite5170 - a MPC8640-based 3U VPX single board computer with a PMC/XMC site. http://www.xes-inc.com/Products/XPedite5170/XPedite5170.html Peter Tyser (6): 85xx: Add PORBMSR and PORDEVSR shift defines 86xx: Unlock l1 cache unconditionally

Re: [U-Boot] [PATCH 00/11] 85xx/86xx dma updates

2009-05-21 Thread Peter Tyser
On Thu, 2009-05-21 at 12:37 -0700, Ira Snyder wrote: > On Thu, May 21, 2009 at 12:09:58PM -0500, Peter Tyser wrote: > > This patch series attempts to clean up the DMA implementation for the > > 85xx and 86xx architectures. The changes include: > > - consolidate 85xx and 86x

Re: [U-Boot] [PATCH 08/11] 8xxx: Rename dma_xfer() to dmacpy()

2009-05-21 Thread Peter Tyser
On Thu, 2009-05-21 at 12:46 -0500, Scott Wood wrote: > On Thu, May 21, 2009 at 12:10:06PM -0500, Peter Tyser wrote: > > -int dma_xfer(void *dest, uint count, void *src) { > > +int dmacpy(void *dest, const void *src, size_t n) { > > While we're changing this, perhaps

[U-Boot] [RFC/PATCH 2/3] mtest: Add optional support for DMA memory test

2009-05-21 Thread Peter Tyser
T and CONFIG_SYS_DMA_MEMTEST are defined and requires dmacpy() to be implemented. Signed-off-by: Peter Tyser --- common/cmd_mem.c | 65 ++ 1 files changed, 65 insertions(+), 0 deletions(-) diff --git a/common/cmd_mem.c b/common/cmd_mem.c index 2d

[U-Boot] [RFC/PATCH 0/3] Add optional dma transfers to mtest

2009-05-21 Thread Peter Tyser
defining CONFIG_FSL_DMA, CONFIG_SYS_ALT_MEMTEST, and CONFIG_SYS_DMA_MEMTEST. Other platforms will need to support the dmacpy() function in order to enable the DMA memory test. Peter Tyser (3): fsl_dma: Make DMA transactions snoopable mtest: Add optional support for DMA memory test XPedite5200

[U-Boot] [RFC/PATCH 3/3] XPedite5200, XPedite5370: Enable DMA memory test

2009-05-21 Thread Peter Tyser
Enable the Freescale DMA driver and DMA portion of mtest for the XPedite5200 and XPedite5370 boards Signed-off-by: Peter Tyser --- include/configs/XPEDITE5200.h |4 +++- include/configs/XPEDITE5370.h |2 ++ 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/include/configs

[U-Boot] [RFC/PATCH 1/3] fsl_dma: Make DMA transactions snoopable

2009-05-21 Thread Peter Tyser
Make DMA transactions snoopable so that CPUs can keep caches up-to-date. This allows dma transactions to be used for operations such as memory copies without any additional cache control operations. Signed-off-by: Peter Tyser --- drivers/dma/fsl_dma.c |4 ++-- 1 files changed, 2 insertions

[U-Boot] [PATCH 10/11] 85xx, 86xx: Move dma_init() call to common code

2009-05-21 Thread Peter Tyser
Signed-off-by: Peter Tyser --- board/mpc8540eval/mpc8540eval.c |2 +- board/sbc8560/sbc8560.c |2 +- cpu/mpc85xx/cpu_init.c |4 +++- cpu/mpc85xx/ddr-gen1.c |2 -- cpu/mpc86xx/cpu_init.c |3 +++ 5 files changed, 8 insertions(+), 5 deletions

[U-Boot] [PATCH 08/11] 8xxx: Rename dma_xfer() to dmacpy()

2009-05-21 Thread Peter Tyser
Also update dmacpy()'s argument order and type to match memcpy's for clarity Signed-off-by: Peter Tyser --- board/mpc8540eval/mpc8540eval.c | 22 +++--- board/sbc8560/sbc8560.c | 22 +++--- cpu/mpc83xx/cpu.c |4 ++-- c

[U-Boot] [PATCH 02/11] 85xx, 86xx: Sync up DMA code

2009-05-21 Thread Peter Tyser
r the channel start bit in the DMA mode register after a transfer Signed-off-by: Peter Tyser --- cpu/mpc85xx/cpu.c|8 cpu/mpc86xx/cpu.c| 14 -- include/asm-ppc/immap_86xx.h |2 ++ 3 files changed, 14 insertions(+), 10 deletions(-) diff --

[U-Boot] [PATCH 06/11] fsl_dma: Add support for arbitrarily large transfers

2009-05-21 Thread Peter Tyser
Support DMA transfers larger than the DMA controller's limit of (2 ^ 26 - 1) bytes Signed-off-by: Peter Tyser --- drivers/dma/fsl_dma.c | 42 ++ 1 files changed, 30 insertions(+), 12 deletions(-) diff --git a/drivers/dma/fsl_dma.c b/driver

[U-Boot] [PATCH 03/11] 85xx, 86xx: Break out DMA code to a common file

2009-05-21 Thread Peter Tyser
DMA support is now enabled via the CONFIG_FSL_DMA define instead of the previous CONFIG_DDR_ECC Signed-off-by: Peter Tyser --- cpu/mpc85xx/cpu.c | 47 cpu/mpc86xx/cpu.c | 55 drivers/dma/Makefile|1 + drivers/dma

[U-Boot] [PATCH 11/11] fsl_dma: Break out common memory initialization function

2009-05-21 Thread Peter Tyser
Signed-off-by: Peter Tyser --- board/mpc8540eval/mpc8540eval.c | 33 + board/sbc8560/sbc8560.c | 33 + cpu/mpc85xx/ddr-gen1.c | 27 +-- drivers/dma/fsl_dma.c | 32

[U-Boot] [PATCH 09/11] fsl_dma: Move dma function prototypes to common header file

2009-05-21 Thread Peter Tyser
Signed-off-by: Peter Tyser --- cpu/mpc85xx/ddr-gen1.c|4 include/asm-ppc/fsl_dma.h |5 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cpu/mpc85xx/ddr-gen1.c b/cpu/mpc85xx/ddr-gen1.c index 7c7a458..6e628bd 100644 --- a/cpu/mpc85xx/ddr-gen1.c +++ b/cpu

[U-Boot] [PATCH 07/11] fsl_dma: Fix Channel Start bug in dma_check()

2009-05-21 Thread Peter Tyser
The Channel Start (CS) bit in the Mode Register (MR) should actually be cleared as the comment in the code suggests. Previously, CS was being set, not cleared. Assuming normal operation of the DMA engine, this change shouldn't have any real affect. Signed-off-by: Peter Tyser --- driver

[U-Boot] [PATCH 05/11] fsl_dma: Update to use proper I/O accessor functions

2009-05-21 Thread Peter Tyser
Signed-off-by: Peter Tyser --- drivers/dma/fsl_dma.c | 32 ++-- 1 files changed, 18 insertions(+), 14 deletions(-) diff --git a/drivers/dma/fsl_dma.c b/drivers/dma/fsl_dma.c index baf2942..33ea828 100644 --- a/drivers/dma/fsl_dma.c +++ b/drivers/dma/fsl_dma.c

[U-Boot] [PATCH 01/11] fsl: Create common fsl_dma.h for 85xx and 86xx cpus

2009-05-21 Thread Peter Tyser
Break out DMA structures for the Freescale MPC85xx and MPC86xx cpus to reduce a large amount of code duplication Signed-off-by: Peter Tyser --- cpu/mpc85xx/cpu.c| 31 + cpu/mpc86xx/cpu.c| 27 --- include/asm-ppc/fsl_dma.h| 51

[U-Boot] [PATCH 00/11] 85xx/86xx dma updates

2009-05-21 Thread Peter Tyser
iver could be extended to support it with some ifdeffery. Peter Tyser (11): fsl: Create common fsl_dma.h for 85xx and 86xx cpus 85xx, 86xx: Sync up DMA code 85xx, 86xx: Break out DMA code to a common file fsl_dma: Add bitfield definitions for common registers fsl_dma: Update to use prop

<    2   3   4   5   6   7   8   9   10   >