[U-Boot] [PATCH] Add README file for MPC8572DS board

2008-11-11 Thread Haiying Wang
Signed-off-by: Haiying Wang <[EMAIL PROTECTED]> --- doc/README.mpc8572ds | 167 ++ 1 files changed, 167 insertions(+), 0 deletions(-) create mode 100644 doc/README.mpc8572ds diff --git a/doc/README.mpc8572ds b/doc/README.mpc8572ds new fil

[U-Boot] [PATCH] Set IVPR to kenrel entry point in second core boot page

2008-12-03 Thread Haiying Wang
it is not a valid value for second core which runs kernel at different physical address other than 0x0. Signed-off-by: Haiying Wang <[EMAIL PROTECTED]> --- cpu/mpc85xx/release.S |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/cpu/mpc85xx/release.S b/cpu/mpc85xx/rel

[U-Boot] [PATCH] Add secondary CPUs processor frequency for e500 core

2008-12-04 Thread Haiying Wang
This patch updates e500 freqProcessor to array based on CONFIG_NUM_CPUS, and prints each CPU's frequency separately. It also fixes up each CPU's frequency in "clock-frequency" of fdt blob. Signed-off-by: James Yang <[EMAIL PROTECTED]> Signed-off-by: Haiying Wang <

[U-Boot] [PATCH v2] Add secondary CPUs processor frequency for e500 core

2008-12-05 Thread Haiying Wang
This patch updates e500 freqProcessor to array based on CONFIG_NUM_CPUS, and prints each CPU's frequency separately. It also fixes up each CPU's frequency in "clock-frequency" of fdt blob. Signed-off-by: James Yang <[EMAIL PROTECTED]> Signed-off-by: Haiying Wang <

[U-Boot] [PATCH 1/3] Minor fixes for I2C address on MPC8572DS

2008-10-03 Thread Haiying Wang
MPC8572DS has two i2c buses. This patch moves the DDR SPD_EEPROM to i2c bus 1 according to the board spec, and adds the 2nd i2c bus offset. Signed-off-by: Haiying Wang <[EMAIL PROTECTED]> --- include/configs/MPC8572DS.h |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-)

[U-Boot] [PATCH 3/3] Remove redundant #define for MPC8536DS

2008-10-03 Thread Haiying Wang
Signed-off-by: Haiying Wang <[EMAIL PROTECTED]> --- include/configs/MPC8536DS.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/include/configs/MPC8536DS.h b/include/configs/MPC8536DS.h index 2578bef..0ecf2a2 100644 --- a/include/configs/MPC8536DS.h +++ b/include/c

[U-Boot] (no subject)

2008-10-03 Thread Haiying Wang
Fix some bugs: 1. Correctly set intlv_ctl in cs_config. 2. Correctly set sa, ea in cs_bnds when bank interleaving mode is enabled. 3. Set base_address and total memory for each ddr controller in memory controller interleaving mode. Signed-off-by: Haiying Wang <[EMAIL PROTEC

[U-Boot] [PATCH 0/6] DDR intereleaving support

2008-10-03 Thread Haiying Wang
Current new DDR code has included DDR interleaving support but has not been tested out. The following patches fix the bugs for common code, enable run time configuration of memory controller interleaving mode and bank interleaving mode and add board specific parameters table to decides the ddr cont

[U-Boot] (no subject)

2008-10-03 Thread Haiying Wang
/cpu to /include directory. * add ddr dimm parameters to populate board specific options. * Fix fsl_ddr_board_options() for all the 8xxx boards which call this function. Signed-off-by: Haiying Wang <[EMAIL PROTECTED]> --- board/atum8548/ddr.c |5 ++- board/freescale/mpc

[U-Boot] (no subject)

2008-10-03 Thread Haiying Wang
* Check DDR interleaving mode from environment by reading memctl_intlv_ctl and ba_intlv_ctl. * Print DDR interleaving mode information * Add doc/README.fsl-ddr to describe the interleaving setting Signed-off-by: Haiying Wang <[EMAIL PROTECTED]> --- cpu/mpc8xxx/ddr/main.c

[U-Boot] (no subject)

2008-10-03 Thread Haiying Wang
Signed-off-by: Haiying Wang <[EMAIL PROTECTED]> --- cpu/mpc8xxx/ddr/ctrl_regs.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/cpu/mpc8xxx/ddr/ctrl_regs.c b/cpu/mpc8xxx/ddr/ctrl_regs.c index 6297141..1783e92 100644 --- a/cpu/mpc8xxx/ddr/ctrl_regs.c +++

[U-Boot] (no subject)

2008-10-03 Thread Haiying Wang
) interleaving mode by default, because the default on-board DDR DIMMs are 2x512MB single-rank. * Change CONFIG_ICS307_REFCLK_HZ from to 3000. Signed-off-by: James Yang <[EMAIL PROTECTED]> Signed-off-by: Haiying Wang <[EMAIL PROTECTED]> --- board/freescale/mpc8572ds/

[U-Boot] (no subject)

2008-10-03 Thread Haiying Wang
* Add board specific parameter table to choose correct cpo, clk_adjust, write_data_delay based on board ddr frequency and n_ranks. * Set odt_rd_cfg and odt_wr_cfg based on the dimm# and CS#. Signed-off-by: James Yang <[EMAIL PROTECTED]> Signed-off-by: Haiying Wang <[EMAIL PROTECTED]>

[U-Boot] [PATCH 1/6] Make DDR interleaving mode work correctly

2008-10-03 Thread Haiying Wang
Fix some bugs: 1. Correctly set intlv_ctl in cs_config. 2. Correctly set sa, ea in cs_bnds when bank interleaving mode is enabled. 3. Set base_address and total memory for each ddr controller in memory controller interleaving mode. Signed-off-by: Haiying Wang <[EMAIL PROTEC

[U-Boot] [PATCH 2/6] Pass dimm parameters to populate populate controller options

2008-10-03 Thread Haiying Wang
/cpu to /include directory. * add ddr dimm parameters to populate board specific options. * Fix fsl_ddr_board_options() for all the 8xxx boards which call this function. Signed-off-by: Haiying Wang <[EMAIL PROTECTED]> --- board/atum8548/ddr.c |5 ++- board/freescale/mpc

[U-Boot] [PATCH 3/6] Check DDR interleaving mode

2008-10-03 Thread Haiying Wang
* Check DDR interleaving mode from environment by reading memctl_intlv_ctl and ba_intlv_ctl. * Print DDR interleaving mode information * Add doc/README.fsl-ddr to describe the interleaving setting Signed-off-by: Haiying Wang <[EMAIL PROTECTED]> --- cpu/mpc8xxx/ddr/main.c

[U-Boot] [PATCH 4/6] Add debug information for DDR controller registers

2008-10-03 Thread Haiying Wang
Signed-off-by: Haiying Wang <[EMAIL PROTECTED]> --- cpu/mpc8xxx/ddr/ctrl_regs.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/cpu/mpc8xxx/ddr/ctrl_regs.c b/cpu/mpc8xxx/ddr/ctrl_regs.c index 6297141..1783e92 100644 --- a/cpu/mpc8xxx/ddr/ctrl_regs.c +++

[U-Boot] [PATCH 5/6] Add ddr interleaving suppport for MPC8572DS board

2008-10-03 Thread Haiying Wang
) interleaving mode by default, because the default on-board DDR DIMMs are 2x512MB single-rank. * Change CONFIG_ICS307_REFCLK_HZ from to 3000. Signed-off-by: James Yang <[EMAIL PROTECTED]> Signed-off-by: Haiying Wang <[EMAIL PROTECTED]> --- board/freescale/mpc8572ds/

[U-Boot] [PATCH 6/6] Add DDR options setting on MPC8641HPCN board

2008-10-03 Thread Haiying Wang
* Add board specific parameter table to choose correct cpo, clk_adjust, write_data_delay based on board ddr frequency and n_ranks. * Set odt_rd_cfg and odt_wr_cfg based on the dimm# and CS#. Signed-off-by: James Yang <[EMAIL PROTECTED]> Signed-off-by: Haiying Wang <[EMAIL PROTECTED]>

Re: [U-Boot] (no subject)

2008-10-03 Thread Haiying Wang
On Sat, 2008-10-04 at 01:35 +0200, Wolfgang Denk wrote: > Dear Haiying Wang, > > In message <[EMAIL PROTECTED]> you wrote: > > Fix some bugs: > > 1. Correctly set intlv_ctl in cs_config. > > 2. Correctly set sa, ea in cs_bnds when bank interleaving mode is e

Re: [U-Boot] [PATCH 1/3] Minor fixes for I2C address on MPC8572DS

2008-10-03 Thread Haiying Wang
, and adds the 2nd i2c bus offset. > > > > Signed-off-by: Haiying Wang <[EMAIL PROTECTED]> > > I see "[PATCH 1/3] Minor fixes for I2C address on MPC8572DS" and > "[PATCH 3/3] Remove redundant #define for MPC8536DS". > > I cannot see a "[PATCH 2/3]&

[U-Boot] [PATCH 2/3] Add ID EEPROM support for MPC8572DS

2008-10-03 Thread Haiying Wang
The ID EEPROM on MPC8572DS board locates on I2C bus 1. Its the storage for system information like mac addresses etc. This patch enables it. Signed-off-by: Haiying Wang <[EMAIL PROTECTED]> --- include/configs/MPC8572DS.h | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-)

[U-Boot] [PATCH 0/7] patch set for P1021MDS support

2010-08-15 Thread Haiying Wang
The patchset supports SRAM boot, P1021MDS NAND boot, P1021MDS QE/UEC, it is against the git://git.denx.de/u-boot-mpc85xx. Thanks. Haiying ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH] common/cmd_mmc.c: fix a bug

2010-08-16 Thread Haiying Wang
introduced by commit cc9f607beb49d4d3556c326efb83a0a51784e484, it causes: " cmd_mmc.c:136:2: warning: missing terminating " character cmd_mmc.c:133: error: missing terminating " character make[1]: *** [cmd_mmc.o] Error 1 " Signed-off-by: Haiying Wang --- common/cmd_mmc.

Re: [U-Boot] [PATCH 0/7] patch set for P1021MDS support

2010-08-16 Thread Haiying Wang
On Mon, 2010-16-08 at 07:42 +0200, Wolfgang Denk wrote: > Dear Haiying Wang, > Please keep in mind that patches shall be submitted against the > mainline repository, NOPT against any custodian branches. > This is to make sure everybody can apply and test these without > addinitiona

[U-Boot] [PATCH 1/7] nand_spl: remove static for nand_load

2010-08-16 Thread Haiying Wang
so it can be called in other file. Signed-off-by: Haiying Wang --- nand_spl/nand_boot_fsl_elbc.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/nand_spl/nand_boot_fsl_elbc.c b/nand_spl/nand_boot_fsl_elbc.c index 9547d44..efac293 100644 --- a/nand_spl

[U-Boot] [PATCH 3/7] Add support for SRAM Boot

2010-08-16 Thread Haiying Wang
es to keep the sram uboot size as small as possible. Signed-off-by: Haiying Wang --- Makefile | 18 ++- arch/powerpc/cpu/mpc85xx/cpu_init_nand.c | 31 +++- arch/powerpc/cpu/mpc85xx/sram_boot/Makefile| 190 arch/p

[U-Boot] [PATCH 2/7] powerpc/85xx: do not reloc l2srbar if CONFIG_FLASH_BASE is not defined

2010-08-16 Thread Haiying Wang
This fixes the compiling error for the board which doesn't have NOR flash (so CONFIG_FLASH_BASE is not defined) Signed-off-by: Haiying Wang --- arch/powerpc/cpu/mpc85xx/cpu_init.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init

[U-Boot] [PATCH 4/7] powerpc/p1021: Add P1021MDS board support

2010-08-16 Thread Haiying Wang
This patch supports P1021MDS NAND boot with the following features: * Boot from NAND flash with SRAM BOOT support.(No NOR flash on this board) * SPD DDR Initialization Signed-off-by: Haiying Wang Signed-off-by: Mohit Kumar Signed-off-by: Yu.Liu --- MAKEALL

[U-Boot] [PATCH 5/7] powerpc/p1021: Add more P1021 defines

2010-08-16 Thread Haiying Wang
Signed-off-by: Haiying Wang --- arch/powerpc/include/asm/immap_85xx.h |6 ++ arch/powerpc/include/asm/immap_qe.h |7 ++- 2 files changed, 12 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/include/asm/immap_85xx.h b/arch/powerpc/include/asm/immap_85xx.h index c1382c8

[U-Boot] [PATCH 6/7] powerpc/qe: supports loading QE firmware from nand flash

2010-08-16 Thread Haiying Wang
and because some platforms need to load QE firmware from NAND flash(no NOR flash), it makes qe_init to be called after nand_init. Signed-off-by: Haiying Wang --- arch/powerpc/cpu/mpc83xx/cpu_init.c |8 arch/powerpc/cpu/mpc85xx/cpu_init.c |8 arch/powerpc/lib/board.c

[U-Boot] [PATCH 7/7] powerpc/p1021mds: add QE and UEC support

2010-08-16 Thread Haiying Wang
-off-by: Haiying Wang --- arch/powerpc/cpu/mpc85xx/speed.c |4 ++ arch/powerpc/include/asm/immap_85xx.h | 13 board/freescale/p1021mds/p1021mds.c | 54 + drivers/qe/uec.c | 36 ++ include/configs

Re: [U-Boot] [PATCH 2/7] powerpc/85xx: do not reloc l2srbar if CONFIG_FLASH_BASE is not defined

2010-08-16 Thread Haiying Wang
On Mon, 2010-16-08 at 12:11 +0200, Wolfgang Denk wrote: > > > > diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init.c > > b/arch/powerpc/cpu/mpc85xx/cpu_init.c > > index 2c3be6d..1fbc0cc 100644 > > --- a/arch/powerpc/cpu/mpc85xx/cpu_init.c > > +++ b/arch/powerpc/cpu/mpc85xx/cpu_init.c > > @@ -327,7 +3

Re: [U-Boot] [PATCH 1/7] nand_spl: remove static for nand_load

2010-08-16 Thread Haiying Wang
On Mon, 2010-16-08 at 12:09 +0200, Wolfgang Denk wrote: > Dear Haiying Wang, > > In message <1281945721.24612.11.ca...@localhost.localdomain> you wrote: > > so it can be called in other file. > > > > Signed-off-by: Haiying Wang > > --- > > nand_sp

Re: [U-Boot] [PATCH 3/7] Add support for SRAM Boot

2010-08-16 Thread Haiying Wang
On Mon, 2010-16-08 at 12:23 +0200, Wolfgang Denk wrote: > Dear Haiying Wang, > > In message <1281945897.24612.17.ca...@localhost.localdomain> you wrote: > > Once CONFIG_MIDDLE_STAGE_SRAM_BOOT is defined, CONFIG_SRAM_BOOT is enabled > > to > > generate u-boot-sra

Re: [U-Boot] [PATCH 4/7] powerpc/p1021: Add P1021MDS board support

2010-08-16 Thread Haiying Wang
On Mon, 2010-16-08 at 12:33 +0200, Wolfgang Denk wrote: > > --- /dev/null > > +++ b/board/freescale/p1021mds/bcsr.h > > @@ -0,0 +1,18 @@ > > +/* > > + * Copyright (C) 2010 Freescale Semiconductor, Inc. > > + * > > + * This program is free software; you can redistribute it and/or modify it > > + * u

Re: [U-Boot] [PATCH 6/7] powerpc/qe: supports loading QE firmware from nand flash

2010-08-17 Thread Haiying Wang
On Mon, 2010-16-08 at 12:40 +0200, Wolfgang Denk wrote: > Dear Haiying Wang, > > In message <1281947090.24612.23.ca...@localhost.localdomain> you wrote: > > and because some platforms need to load QE firmware from NAND flash(no NOR > > flash), it makes qe_init t

Re: [U-Boot] [PATCH 1/3] mpc8569mds: fix CONFIG_ENV_SIZE

2010-09-29 Thread Haiying Wang
On Wed, 2010-29-09 at 20:25 +0200, Wolfgang Denk wrote: > You submitted the same patch series twice, without any version ID in > the subject, and without any other indication about possible changes. I am so sorry for sending the patchset twice. I did not add "smtp-server" at the first time, then I

Re: [U-Boot] [PATCH 4/8 v2] powerpc/85xx: add TPL_BOOT support

2011-01-23 Thread Haiying Wang
On Sat, 2011-01-22 at 23:12 +0100, Wolfgang Denk wrote: > You should not undo a previous copyright. I guess you mean: > > Copyright 2009-2010 Freescale Semiconductor, Inc. > > ? Yes. Sorry about it. > > +DECLARE_GLOBAL_DATA_PTR; > > Please move this up to top of file. OK. > > +unsigned lon

Re: [U-Boot] [PATCH 3/8 v2] Introduce the Tertiary Program loader

2011-01-23 Thread Haiying Wang
On Sat, 2011-01-22 at 23:04 +0100, Wolfgang Denk wrote: > > diff --git a/Makefile b/Makefile > > index 87a383d..94af465 100644 > > --- a/Makefile > > +++ b/Makefile > > @@ -290,6 +290,10 @@ LDPPFLAGS += \ > > $(shell $(LD) --version | \ > > sed -ne 's/GNU ld version > > \([0-9][0-9]*\)\.

Re: [U-Boot] [PATCH 3/8 v2] Introduce the Tertiary Program loader

2011-01-24 Thread Haiying Wang
On Mon, 2011-01-24 at 13:49 +0100, Wolfgang Denk wrote: > > > > > > > > +ifeq ($(CONFIG_TPL_U_BOOT),y) > > > > +TPL_BOOT = tpl > > > > +endif > > > > > > I don't understand what the "TPL_BOOT" is good for, or how it's > > > supposed to work. > > TPL_BOOT works like NAND_SPL but after NAND_SPL is

Re: [U-Boot] [PATCH 3/8 v2] Introduce the Tertiary Program loader

2011-01-24 Thread Haiying Wang
On Mon, 2011-01-24 at 23:09 +0100, Wolfgang Denk wrote: > Dear Haiying Wang, > > In message <1295906076.2051.127.camel@haiying-laptop> you wrote: > > > > > What I do not understand is what the TPL_BOOT variable in the > > > Makefile is good for. I cannot un

Re: [U-Boot] [PATCH 3/8 v2] Introduce the Tertiary Program loader

2011-01-26 Thread Haiying Wang
Dear Wolfgang, On Mon, 2011-01-24 at 23:29 +0100, Wolfgang Denk wrote: > Dear Haiying Wang, > > In message <1295907459.2051.158.camel@haiying-laptop> you wrote: > > > > > It's not the name. But you use it ina few places here, buth then hard > > > e

Re: [U-Boot] [PATCH 5/8 v3] P1021: add P1021MDS board support

2011-01-28 Thread Haiying Wang
On Fri, 2011-01-28 at 11:02 +0100, Fabian Cenedese wrote: > > I'm not questioning the patch, I'm just trying to understand. > > >+#define CONFIG_MP /* Multiprocessor support */ > >+ > >+#define CONFIG_PCI /* Disable PCI/PCIE */ > > Shouldn't that be "Enab

Re: [U-Boot] [PATCH 5/8 v3] P1021: add P1021MDS board support

2011-01-28 Thread Haiying Wang
On Fri, 2011-01-28 at 08:49 -0600, Kumar Gala wrote: > > + > > +struct law_entry law_table[] = { > > +#ifndef CONFIG_IN_TPL > > + SET_LAW(CONFIG_SYS_PCIE1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCIE_1), > > + SET_LAW(CONFIG_SYS_PCIE1_IO_PHYS, LAW_SIZE_64K, LAW_TRGT_IF_PCIE_1), > > + SET_LAW(CON

Re: [U-Boot] [PATCH 7/7] add gc-sections to TPL boot

2011-01-28 Thread Haiying Wang
On Fri, 2011-01-28 at 11:36 -0600, Scott Wood wrote: > On Thu, 27 Jan 2011 23:58:10 -0500 > wrote: > > > From: Haiying Wang > > > > Signed-off-by: Haiying Wang > > --- > > arch/powerpc/config.mk |4 > > config.mk |7

Re: [U-Boot] [PATCH 7/7] add gc-sections to TPL boot

2011-01-28 Thread Haiying Wang
On Fri, 2011-01-28 at 12:30 -0600, Scott Wood wrote: > > > > diff --git a/config.mk b/config.mk > > > > index 5147c35..d7bb07f 100644 > > > > --- a/config.mk > > > > +++ b/config.mk > > > > @@ -260,8 +260,13 @@ $(obj)%.s: %.c > > > > > > > > ###

Re: [U-Boot] [PATCH 7/7] add gc-sections to TPL boot

2011-01-28 Thread Haiying Wang
On Fri, 2011-01-28 at 13:46 -0500, Haiying Wang wrote: > > In any case, I don't think we want different behavior here based on > > whether we have TPL. Either LDFLAGS is used in partial linking, or > > it's not. > I don't understand why LDFLAGS was added

Re: [U-Boot] [PATCH 5/8 v3] P1021: add P1021MDS board support

2011-01-28 Thread Haiying Wang
On Fri, 2011-01-28 at 13:06 -0600, Timur Tabi wrote: > On Thu, Jan 27, 2011 at 10:58 PM, wrote: > > > +/* These are used when DDR doesn't use SPD. */ > > +#define CONFIG_SYS_SDRAM_SIZE 512/* DDR is 512MB */ > > +#define CONFIG_SYS_DDR_CS0_BNDS 0x001F > > +#defi

Re: [U-Boot] [PATCH 5/8 v3] P1021: add P1021MDS board support

2011-01-28 Thread Haiying Wang
On Fri, 2011-01-28 at 13:24 -0600, Timur Tabi wrote: > Haiying Wang wrote: > >>> +#define CONFIG_SYS_I2C_EEPROM_ADDR 0x52 > >> > > >> > Not 0x57? That's where the NXID EEPROM almost always is. > > It is board specific value, isn't i

Re: [U-Boot] [PATCH] Introduce a new linker flag LDFLAGS_FINAL

2011-01-31 Thread Haiying Wang
On Mon, 2011-01-31 at 20:33 +0100, Wolfgang Denk wrote: > If I understand the intention of the LDFLAGS_u-boot setting > corrrectly, then you would have to add a "LDFLAGS_nand_spl" setting. No, I don't want to add a LDFLAGS_nand_spl for nand_spl only, I need LDFLAGS_FINAL to be passed to nand spl,

Re: [U-Boot] [PATCH 6/6] p1021mds: add QE and UEC support

2011-01-31 Thread Haiying Wang
On Mon, 2011-01-31 at 21:11 +0100, Wolfgang Denk wrote: > > > > +#ifdef CONFIG_P1021 > > + ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR); > > + > > + /* QE9 and QE12 need to be set for enabling QE MII managment signals */ > > + setbits_be32(&gur->pmuxcr, MPC85xx_PMUXCR_QE9); > >

Re: [U-Boot] [PATCH 5/6] powerpc/85xx: do not initialize QE if QE's firmware is in nand flash

2011-01-31 Thread Haiying Wang
On Mon, 2011-01-31 at 21:08 +0100, Wolfgang Denk wrote: > Dear haiying.w...@freescale.com, > > In message <1296499317-26616-6-git-send-email-haiying.w...@freescale.com> you > wrote: > > From: Haiying Wang > > > > For some board which doesn't have

Re: [U-Boot] [PATCH 3/6] P1021: add P1021MDS board support

2011-01-31 Thread Haiying Wang
On Mon, 2011-01-31 at 21:03 +0100, Wolfgang Denk wrote: > Dear haiying.w...@freescale.com, > > diff --git a/board/freescale/p1021mds/config.mk > > b/board/freescale/p1021mds/config.mk > > new file mode 100644 > > index 000..3888f61 > > --- /dev/null > > +++ b/board/freescale/p1021mds/config.mk

Re: [U-Boot] [PATCH 6/6] p1021mds: add QE and UEC support

2011-01-31 Thread Haiying Wang
On Mon, 2011-01-31 at 15:28 -0600, Kumar Gala wrote: > On Jan 31, 2011, at 2:50 PM, Haiying Wang wrote: > > > On Mon, 2011-01-31 at 21:11 +0100, Wolfgang Denk wrote: > >>> > >>> +#ifdef CONFIG_P1021 > >>> + ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC

Re: [U-Boot] [PATCH] Introduce a new linker flag LDFLAGS_FINAL

2011-02-01 Thread Haiying Wang
On Tue, 2011-02-01 at 08:34 +0100, Wolfgang Denk wrote: > Can you please be more specific? I don't see where "the > LDFLAGS_u-boot commit" (you mean 8aba9dc ?) would change any related > code. The relevant hunk looks like this: > > @@ -204,9 +204,11 @@ endif > > AFLAGS := $(AFLAGS_DEBUG) -D_

Re: [U-Boot] [PATCH 6/6] p1021mds: add QE and UEC support

2011-02-01 Thread Haiying Wang
On Tue, 2011-02-01 at 10:50 -0600, Scott Wood wrote: > > > > > If it is a one time setting, there should be no problem to put it into > > board code. But these pin settings need to be done before any usage of > > phy read/write (accessing MDIO/MDC), and need to be released after the > > usage of p

Re: [U-Boot] [PATCH 6/6] p1021mds: add QE and UEC support

2011-02-01 Thread Haiying Wang
On Tue, 2011-02-01 at 13:15 -0600, Kumar Gala wrote: > On Feb 1, 2011, at 11:01 AM, Haiying Wang wrote: > > > On Tue, 2011-02-01 at 10:50 -0600, Scott Wood wrote: > >>>> > >>> If it is a one time setting, there should be no problem to put it into > >

Re: [U-Boot] [PATCH] powerpc: Add cpu_late_init_r to allow for initialization post env setup

2011-02-02 Thread Haiying Wang
On Wed, 2011-02-02 at 11:27 -0600, Kumar Gala wrote: > +void cpu_late_init_r(void) > +{ > +#ifdef CONFIG_QE > + uint qe_base = CONFIG_SYS_IMMR + 0x0008; /* QE immr base */ > + qe_init(qe_base); > + qe_reset(); > +#endif > +} You did not move qe_reset() inside qe_init() as you recomm

Re: [U-Boot] [PATCH] Fix NAND_SPL and ONENAND_IPL in Makefile

2011-02-03 Thread Haiying Wang
Dear Wolfgang, On Thu, 2011-01-27 at 09:44 -0500, haiying.w...@freescale.com wrote: > From: Haiying Wang > > Signed-off-by: Haiying Wang > Acked-by: Scott Wood > > --- > Makefile | 30 ++ > 1 files changed, 14 insertions(+), 16 deleti

Re: [U-Boot] [PATCH] Introduce a new linker flag LDFLAGS_FINAL

2011-02-04 Thread Haiying Wang
Dear Wolfgang, On Tue, 2011-02-01 at 14:40 -0600, Scott Wood wrote: > On Tue, 1 Feb 2011 21:20:50 +0100 > Wolfgang Denk wrote: > > > Dear Scott Wood, > > > > In message <20110201135136.0817f...@udp111988uds.am.freescale.net> you > > wrote: > > > > > > > > Prior to the introduction of LDFLAGS_

Re: [U-Boot] [PATCH] powerpc/85xx: Add basic support for P1010RDB

2011-05-04 Thread Haiying Wang
On Wed, 2011-05-04 at 22:53 +0530, Poonam Aggrwal wrote: > +sinclude $(obj).depend > + > +# > diff --git a/nand_spl/board/freescale/p1010rdb/nand_boot.c > b/nand_spl/board/freescale/p1010rdb/nand_boot.c > new file mode 100644

Re: [U-Boot] [PATCH] powerpc/85xx: Add basic support for P1010RDB

2011-05-04 Thread Haiying Wang
On Wed, 2011-05-04 at 12:34 -0500, Kumar Gala wrote: > >> + > >> +#define udelay(x) {int i, j; for (i = 0; i < x; i++) for (j = 0; j < > >> 1; j++); } > > There were many comments on this udelay before, we should not use this > > define, but use the udelay() which u-boot provides. > > > > Is

[U-Boot] [PATCH 2/3] MPC85xx: Load and enable QE microcode patch in IRAM

2009-03-26 Thread Haiying Wang
For the silicon which doesn't have ROM support in QE, it always needs to load a pre-built ucode binary to IRAM so that QE can work. Signed-off-by: Haiying Wang Signed-off-by: Hillel Avni --- drivers/qe/qe.c |9 + drivers/qe/qe.h |1 + 2 files changed, 10 insertions(

[U-Boot] [PATCH 1/3] MPC85xx: Add MPC8569 CPU support

2009-03-26 Thread Haiying Wang
There is a workaround for MPC8569 CPU Errata, which needs to set Bit 13 of LBCR in 4K bootpage. We setup a temp TLB for eLBC controller in bootpage, then invalidate it after LBCR bit 13 is set. Signed-off-by: Haiying Wang --- cpu/mpc85xx/Makefile |1 + cpu/mpc85xx/cpu.c

[U-Boot] [PATCH 3/3] MPC85xx: Add MPC8569MDS board support

2009-03-26 Thread Haiying Wang
This patch adds MPC8569MDS board support. The UART, QE UEC1 and UEC2, BRD EEPROM on I2C2 bus, PCI express and DDR3 SPD are supported in this patch. Signed-off-by: Haiying Wang Signed-off-by: Hillel Avni --- MAKEALL |1 + Makefile

[U-Boot] [PATCH v2 1/3] MPC85xx: Add MPC8569 CPU support

2009-03-27 Thread Haiying Wang
There is a workaround for MPC8569 CPU Errata, which needs to set Bit 13 of LBCR in 4K bootpage. We setup a temp TLB for eLBC controller in bootpage, then invalidate it after LBCR bit 13 is set. Signed-off-by: Haiying Wang --- cpu/mpc85xx/Makefile |1 + cpu/mpc85xx/cpu.c

[U-Boot] [PATCH v2 3/3] MPC85xx: Add MPC8569MDS board support

2009-03-27 Thread Haiying Wang
This patch adds MPC8569MDS board support. The UART, QE UEC1 and UEC2, BRD EEPROM on I2C2 bus, PCI express and DDR3 SPD are supported in this patch. Signed-off-by: Haiying Wang Signed-off-by: Hillel Avni --- MAKEALL |1 + Makefile

[U-Boot] [PATCH 2/9] MPC85xx: Change QE RISC ALLOCATION to support 4 RISCs

2009-04-29 Thread Haiying Wang
Also define the QE_RISC_ALLOCATION_RISCs to MACROs instead of using enum, and define MAX_QE_RISC for QE based silicons. Signed-off-by: Haiying Wang --- drivers/qe/qe.c|3 --- drivers/qe/qe.h| 15 ++- drivers/qe/uec.c | 30

[U-Boot] [PATCH 5/9] MPC85xx: Increase the size of malloc for MPC8569MDS board

2009-04-29 Thread Haiying Wang
MPC8569MDS board needs more memory for malloc because it will support four Ethernet interfaces. Signed-off-by: Haiying Wang --- include/configs/MPC8569MDS.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/configs/MPC8569MDS.h b/include/configs/MPC8569MDS.h

[U-Boot] [PATCH 4/9] MPC85xx: Add PIB support at CS4/CS5 for MPC8569MDS board

2009-04-29 Thread Haiying Wang
Signed-off-by: Haiying Wang Signed-off-by: Yu Liu --- include/configs/MPC8569MDS.h | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/include/configs/MPC8569MDS.h b/include/configs/MPC8569MDS.h index b0af5dc..2cba98f 100644 --- a/include/configs/MPC8569MDS.h +++ b

[U-Boot] [PATCH 1/9] MPC85xx: Add QE clk support for mpc85xx platforms

2009-04-29 Thread Haiying Wang
Signed-off-by: Haiying Wang --- cpu/mpc85xx/cpu.c|4 cpu/mpc85xx/speed.c | 13 + include/asm-ppc/immap_85xx.h |2 ++ include/e500.h |1 + 4 files changed, 20 insertions(+), 0 deletions(-) diff --git a/cpu/mpc85xx/cpu.c b/cpu

[U-Boot] [PATCH 7/9] MPC85xx: Add UEC3 and UEC4 support for MPC8569MDS board

2009-04-29 Thread Haiying Wang
Signed-off-by: Haiying Wang --- board/freescale/mpc8569mds/bcsr.c |4 board/freescale/mpc8569mds/mpc8569mds.c | 30 ++ include/configs/MPC8569MDS.h| 23 +++ 3 files changed, 57 insertions(+), 0 deletions(-) diff

[U-Boot] [PATCH 6/9] MPC85xx: Add UART1 support for MPC8569MDS board

2009-04-29 Thread Haiying Wang
MPC8569 UART1 signals are muxed with PortF bit[9-12], we need to define those pins before using UART1. Signed-off-by: Haiying Wang --- board/freescale/mpc8569mds/mpc8569mds.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/board/freescale/mpc8569mds/mpc8569mds.c b

[U-Boot] [PATCH 3/9] MPC85xx: Set the correct MURAM size for MPC8569

2009-04-29 Thread Haiying Wang
MPC8569 has 128K bytes MURAM. Signed-off-by: Haiying Wang --- include/asm-ppc/immap_qe.h |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/include/asm-ppc/immap_qe.h b/include/asm-ppc/immap_qe.h index 9530b29..7613b5c 100644 --- a/include/asm-ppc/immap_qe.h +++ b

[U-Boot] [PATCH 8/9] MPC85xx: Add RMII support for MPC8569MDS board

2009-04-29 Thread Haiying Wang
This patch supports UCC working at RMII mode on PIB board, fixup fdt blob to support rmii in kernel. It also changes the name of enable_mpc8569mds_qe_mdio to enalbe_mpc8569mds_qe_uec which is more accurate. Signed-off-by: Haiying Wang --- board/freescale/mpc8569mds/bcsr.c | 15

[U-Boot] [PATCH 9/9] MPC85xx: Add more SNUM number for QE

2009-04-29 Thread Haiying Wang
Some QE chips like 8569 need more SNUM numbers for supporting 4 UECs in RGMII- 1000 mode. Signed-off-by: Haiying Wang --- drivers/qe/qe.c| 13 +++-- drivers/qe/qe.h|1 - include/asm-ppc/immap_qe.h |3 +++ 3 files changed, 14 insertions(+), 3 deletions

[U-Boot] [PATCH 1/9 v2] MPC85xx: Add QE clk support for mpc85xx platforms

2009-05-01 Thread Haiying Wang
Signed-off-by: Haiying Wang Acked-by: Timur Tabi --- v2 change: Fix the indention issue pointed by Scott, and add Acked-by. cpu/mpc85xx/cpu.c|4 cpu/mpc85xx/speed.c | 13 + include/asm-ppc/immap_85xx.h |2 ++ include/e500.h |1

[U-Boot] [PATCH 08/15] MPC85xx: Add UEC3 and UEC4 support for MPC8569MDS

2009-05-20 Thread Haiying Wang
Signed-off-by: Haiying Wang --- board/freescale/mpc8569mds/bcsr.c |4 board/freescale/mpc8569mds/mpc8569mds.c | 30 ++ include/configs/MPC8569MDS.h| 23 +++ 3 files changed, 57 insertions(+), 0 deletions(-) diff

[U-Boot] [PATCH 15/15] 85xx: Fix the wrong BCSR address of MPC8569MDS

2009-05-20 Thread Haiying Wang
From: Dave Liu The BCSR17[7] = 1 will unlock the write protect of FLASH. The WP# pin only controls the write protect of top/bottom sector, That is why we can save env, but we can't write the first sector before the patch. Signed-off-by: Dave Liu Signed-off-by: Haiying Wang ---

[U-Boot] [PATCH 02/15] MPC85xx: Fix MURAM size for MPC8569

2009-05-20 Thread Haiying Wang
MPC8569 has 128K bytes MURAM. Signed-off-by: Haiying Wang --- include/asm-ppc/immap_qe.h |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/include/asm-ppc/immap_qe.h b/include/asm-ppc/immap_qe.h index 66a4735..55667ca 100644 --- a/include/asm-ppc/immap_qe.h +++ b

[U-Boot] [PATCH 03/15] MPC85xx: Fix some settings for MPC8569MDS board

2009-05-20 Thread Haiying Wang
thus the saved environment variables will not be erased after u-boot is re-programmed. Signed-off-by: Haiying Wang Signed-off-by: Dave Liu --- include/configs/MPC8569MDS.h | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/configs/MPC8569MDS.h b/include/co

[U-Boot] [PATCH 07/15] drivers/qe: Add more SNUM number for QE

2009-05-20 Thread Haiying Wang
Some QE chips like 8569 need more SNUM numbers for supporting 4 UECs in RGMII- 1000 mode. Signed-off-by: Haiying Wang Acked-by: Timur Tabi --- drivers/qe/qe.c| 15 --- drivers/qe/qe.h|1 - include/asm-ppc/immap_qe.h |5 - 3 files changed, 16

[U-Boot] [PATCH 05/15] MPC85xx: Add UART1 support for MPC8569MDS

2009-05-20 Thread Haiying Wang
MPC8569 UART1 signals are muxed with PortF bit[9-12], we need to define those pins before using UART1. Signed-off-by: Haiying Wang --- board/freescale/mpc8569mds/mpc8569mds.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/board/freescale/mpc8569mds/mpc8569mds.c b

[U-Boot] [PATCH 06/15] drivers/qe: Change QE RISC ALLOCATION to support 4 RISCs

2009-05-20 Thread Haiying Wang
Also define the QE_RISC_ALLOCATION_RISCs to MACROs instead of using enum, and define MAX_QE_RISC for QE based silicons. Signed-off-by: Haiying Wang Acked-by: Timur Tabi --- drivers/qe/qe.c|3 --- drivers/qe/qe.h| 17 +++-- drivers/qe/uec.c

[U-Boot] [PATCH 12/15] drivers/qe: add sgmii support in for UEC driver

2009-05-20 Thread Haiying Wang
Signed-off-by: Haiying Wang --- drivers/qe/uec.c | 17 + drivers/qe/uec.h | 31 +-- 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/drivers/qe/uec.c b/drivers/qe/uec.c index deeb947..7649f9f 100644 --- a/drivers/qe/uec.c +++ b

[U-Boot] [PATCH 00/15] patchset for QE UEC and MPC8569MDS

2009-05-20 Thread Haiying Wang
Here is the patchset for adding new features for QE UEC and MPC8569MDS board. Please review this patchset and ignore the one(9 patches) I sent out some weeks ago, since there are some update in the new patches. Thanks. Haiying ___ U-Boot mailing list

[U-Boot] [PATCH 09/15] MPC85xx: Add RMII support for MPC8569MDS

2009-05-20 Thread Haiying Wang
This patch supports UCC working at RMII mode on PIB board, fixup fdt blob to support rmii in kernel. It also changes the name of enable_mpc8569mds_qe_mdio to enalbe_mpc8569mds_qe_uec which is more accurate. Signed-off-by: Haiying Wang --- board/freescale/mpc8569mds/bcsr.c | 15

[U-Boot] [PATCH 11/15] MPC85xx: update uec to support up to 8 UECs in QE

2009-05-20 Thread Haiying Wang
Signed-off-by: Haiying Wang --- cpu/mpc85xx/cpu.c |6 + cpu/mpc85xx/fdt.c |4 ++- drivers/qe/uec.c | 66 - 3 files changed, 74 insertions(+), 2 deletions(-) diff --git a/cpu/mpc85xx/cpu.c b/cpu/mpc85xx/cpu.c index b812d88

[U-Boot] [PATCH 04/15] MPC85xx: Add PIB support at CS4/CS5 for MPC8569MDS

2009-05-20 Thread Haiying Wang
Signed-off-by: Haiying Wang Signed-off-by: Yu Liu --- include/configs/MPC8569MDS.h | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/include/configs/MPC8569MDS.h b/include/configs/MPC8569MDS.h index ea996ff..c87e51d 100644 --- a/include/configs/MPC8569MDS.h +++ b

[U-Boot] [PATCH 01/15] MPC85xx: Add QE clk support

2009-05-20 Thread Haiying Wang
Signed-off-by: Haiying Wang Acked-by: Timur Tabi --- cpu/mpc85xx/cpu.c|4 cpu/mpc85xx/speed.c | 15 ++- include/asm-ppc/immap_85xx.h |2 ++ include/e500.h |1 + 4 files changed, 21 insertions(+), 1 deletions(-) diff --git a/cpu

[U-Boot] [PATCH 13/15] MPC85xx: Add UEC6 and UEC8 at SGMII mode for MPC8569MDS

2009-05-20 Thread Haiying Wang
On MPC8569MDS board, UCC6 and UCC8 can be configured to work at SGMII mode via UEM on PB board. Since MPC8569 supports up to 4 Gigabit Ethernet ports, we disable UEC6 and UEC8 by default. Signed-off-by: Haiying Wang --- include/configs/MPC8569MDS.h | 25 + 1 files

[U-Boot] [PATCH 14/15] MPC85xx: Add README for MPC8569MDS

2009-05-20 Thread Haiying Wang
Signed-off-by: Haiying Wang --- doc/README.mpc8569mds | 78 + 1 files changed, 78 insertions(+), 0 deletions(-) create mode 100644 doc/README.mpc8569mds diff --git a/doc/README.mpc8569mds b/doc/README.mpc8569mds new file mode 100644 index

[U-Boot] [PATCH 10/15] Update the number of ethxaddr in reading system eeprom

2009-05-20 Thread Haiying Wang
We support up to 8 mac addresses in system eeprom, so we'd limit the mac_count to 8, and update the number of ethxaddr if there is more than 4 ethernet ports. Signed-off-by: Haiying Wang --- board/freescale/common/sys_eeprom.c | 11 +-- 1 files changed, 9 insertions(+), 2 dele

[U-Boot] [PATCH] drivers/qe: Rename the camel-case identifiers in uec

2009-05-21 Thread Haiying Wang
Rename riscRx/riscTx to risc_rx/risc_tx to comply with Codingstyle. Signed-off-by: Haiying Wang --- This patch should be applied before the 15 patches I sent out yesterday drivers/qe/uec.c | 32 drivers/qe/uec.h |4 ++-- 2 files changed, 18 insertions

[U-Boot] [PATCH 06/15 v2] drivers/qe: Change QE RISC ALLOCATION to support 4 RISCs

2009-05-21 Thread Haiying Wang
Also define the QE_RISC_ALLOCATION_RISCs to MACROs instead of using enum, and define MAX_QE_RISC for QE based silicons. Signed-off-by: Haiying Wang Acked-by: Timur Tabi --- v2 change: rename riscRx and riscTx to risc_rx and risc_tx drivers/qe/qe.c|3 --- drivers/qe/qe.h

[U-Boot] [PATCH 10/15 v2] Update the number of ethxaddr in reading system eeprom

2009-05-21 Thread Haiying Wang
We support up to 8 mac addresses in system eeprom, so we define the macro MAX_NUM_PORTS to limit the mac_count to 8, and update the number of ethxaddr according to mac_count. Signed-off-by: Haiying Wang --- v2 change: define MAC_NUM_PORTS to limit the mac_count board/freescale/common

[U-Boot] [PATCH 10/15 v3] Update the number of ethxaddr in reading system eeprom

2009-05-21 Thread Haiying Wang
We support up to 8 mac addresses in system eeprom, so we define the macro MAX_NUM_PORTS to limit the mac_count to 8, and update the number of ethxaddr according to mac_count. Signed-off-by: Haiying Wang --- v3 change: Modify printf info and replace 8 with MAX_NUM_PORTS for array mac[] board

[U-Boot] [PATCH 03/14 v2] MPC85xx: Fix some settings for MPC8569MDS board

2009-06-04 Thread Haiying Wang
- Increase the size of malloc to 512KB because MPC8569MDS needs more memory for malloc to support up to eight Ethernet interfaces. - Move Environment address out of uboot thus the saved environment variables will not be erased after u-boot is re-programmed. Signed-off-by: Haiying Wang --- v2

[U-Boot] [PATCH 10/14 v4] Update the number of ethxaddr in reading system eeprom

2009-06-04 Thread Haiying Wang
We support up to 8 mac addresses in system eeprom, so we define the macro MAX_NUM_PORTS to limit the mac_count to 8, and update the number of ethxaddr according to mac_count. Signed-off-by: Haiying Wang --- v4 change: white space clean up board/freescale/common/sys_eeprom.c | 23

  1   2   >