Re: [U-Boot] [PATCH V2 0/2] add sdhci generic framework

2013-10-14 Thread Lei Wen
il.com [mailto:vben...@gmail.com] On Behalf Of Vadim > Bendebury > Sent: Tuesday, October 15, 2013 10:09 AM > To: Lei Wen > Cc: Prafulla Wadaskar; aflem...@gmail.com; Rob Herring; u- > b...@lists.denx.de; Yu Tang; Prabhanjan Sarnaik; Ashish Karkare; Andy > Fleming > Subject: Re: [U-Boo

[U-Boot] [PATCH V2 5/6] lib: add gzip lib function callback

2012-09-28 Thread Lei Wen
Signed-off-by: Lei Wen --- Changelog: No change include/common.h |7 +++ lib/Makefile |1 + lib/gzip.c | 142 ++ 3 files changed, 150 insertions(+), 0 deletions(-) create mode 100644 lib/gzip.c diff --git a/include

[U-Boot] [PATCH V2 3/6] lib: zlib: include deflate into zlib build

2012-09-28 Thread Lei Wen
Add a new config CONFIG_GZIP_ENABLED, if enabled, the uboot bin would include zlib's deflate method which could be used for compressing. Signed-off-by: Lei Wen --- Changelog: No change include/u-boot/zlib.h | 40 +++- lib/zlib/trees.c |

Re: [U-Boot] [PATCH 0/6] add zip command support for uboot

2012-09-28 Thread Lei Wen
Hi Tom, > > If the patch is generally accepted, I would update with another > > version with the README update included. > > Yes, please v2 things with an updated README. Thanks. > > I have updated the patch set, please help re-check it. Thanks, Lei _

[U-Boot] [PATCH V2 6/6] common: add zip command support

2012-09-28 Thread Lei Wen
Signed-off-by: Lei Wen --- Changelog: Add README description for new added zip command README |6 + common/Makefile |1 + common/cmd_zip.c | 60 ++ 3 files changed, 67 insertions(+), 0 deletions(-) create mode 100644

[U-Boot] [PATCH V2 4/6] lib: zlib: remove the limitation for cannot using 0 as start

2012-09-28 Thread Lei Wen
compression. Signed-off-by: Lei Wen --- Changelog: No change lib/zlib/deflate.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/lib/zlib/deflate.c b/lib/zlib/deflate.c index 5c4022f..9a20b70 100644 --- a/lib/zlib/deflate.c +++ b/lib/zlib/deflate.c @@ -592,9 +592,7 @@ int

[U-Boot] [PATCH V2 2/6] lib: zlib: import trees file from 1.2.5

2012-09-28 Thread Lei Wen
Signed-off-by: Lei Wen --- Changelog: No change lib/zlib/trees.c | 1244 ++ lib/zlib/trees.h | 128 ++ 2 files changed, 1372 insertions(+), 0 deletions(-) create mode 100644 lib/zlib/trees.c create mode 100644 lib/zlib/trees.h diff

[U-Boot] [PATCH V2 0/6] add zip command support for uboot

2012-09-28 Thread Lei Wen
in uboot environment. The fourth patch make us could zip the memory from 0 in the address space. The latter fifth and sixth patch does the adding gzip lib function exporting and zip command support. Patch set test with zip&unzip and compared with original memory content. Lei Wen (6): lib:

Re: [U-Boot] [PATCH 0/6] add zip command support for uboot

2012-09-26 Thread Lei Wen
Hi Marek, On Wed, Sep 26, 2012 at 11:34 PM, Marek Vasut wrote: > Dear Lei Wen, > > > On Thu, Sep 6, 2012 at 6:49 PM, Marek Vasut wrote: > > > Dear Lukasz Majewski, > > > > > > [...] > > > > > > > > Ok, that means we can make use

Re: [U-Boot] [PATCH 0/6] add zip command support for uboot

2012-09-26 Thread Lei Wen
Hi Tom, On Thu, Sep 27, 2012 at 12:20 AM, Tom Rini wrote: > On Wed, Sep 26, 2012 at 05:34:25PM +0200, Marek Vasut wrote: > > Dear Lei Wen, > > > > > On Thu, Sep 6, 2012 at 6:49 PM, Marek Vasut wrote: > > > > Dear Lukasz Majewski, > > > > > &g

Re: [U-Boot] [PATCH 0/6] add zip command support for uboot

2012-09-25 Thread Lei Wen
On Thu, Sep 6, 2012 at 6:49 PM, Marek Vasut wrote: > Dear Lukasz Majewski, > > [...] > > > > Ok, that means we can make use of this command ? > > > > I cannot promise, that I will provide the "zip" support straightaway in > > the DFU. > > > > On the one hand if DFU is the only user of this comman

Re: [U-Boot] [PATCH 0/6] add zip command support for uboot

2012-09-05 Thread Lei Wen
Hi Marek, On Thu, Sep 6, 2012 at 12:18 PM, Marek Vasut wrote: > Dear adrian.w...@gmail.com, > >> From: Lei Wen > > Lei? Long time no see :) Long time no see. :) > >> This patch set add zip command support for uboot. >> The first two patches import deflate an

Re: [U-Boot] [PATCH 0/6] add zip command support for uboot

2012-05-08 Thread Lei Wen
On Wed, Apr 11, 2012 at 9:24 AM, Lei Wen wrote: > Hi Mike, > > On Wed, Apr 11, 2012 at 6:11 AM, Mike Frysinger wrote: >> On Tuesday 10 April 2012 01:05:13 Lei Wen wrote: >>> Hi Mike, >>> >>> On Tue, Apr 10, 2012 at 12:37 PM, Mike Frysinger wrote: >&

Re: [U-Boot] [RESEND 2/2] mmc:fix Call mmc_init() when executing mmc_get_dev()

2012-04-21 Thread Lei Wen
Hi Lukasz, On Fri, Apr 20, 2012 at 3:09 PM, Lukasz Majewski wrote: > Hi, Lei > >> I'm concerning with this adding init here. >> Since not every platform mount with emmc as boot device, and what they >> need is booting fast. > > If I remember correctly, u-boot policy is to not initialize the mmc >

Re: [U-Boot] [RESEND 1/2] mmc:fix: Set mmc width according to MMC host capabilities

2012-04-19 Thread Lei Wen
.h > @@ -47,6 +47,9 @@ >  #define MMC_MODE_SPI           0x400 >  #define MMC_MODE_HC            0x800 > > +#define MMC_MODE_MASK_WIDTH_BITS (MMC_MODE_4BIT | MMC_MODE_8BIT) > +#define MMC_MODE_WIDTH_BITS_SHIFT 8 > + >  #define SD_DATA_4BIT   0x0004 > >  #define IS_S

Re: [U-Boot] [RESEND 2/2] mmc:fix Call mmc_init() when executing mmc_get_dev()

2012-04-19 Thread Lei Wen
Hi Lukasz, On Thu, Apr 19, 2012 at 8:39 PM, Lukasz Majewski wrote: > This code adds call to mmc_init(), for partition related commands (e.g. > fatls, fatinfo etc.). > > It is safe to call mmc_init() multiple times since mmc->has_init flag > prevents from multiple initialization. > > The FAT relat

Re: [U-Boot] [PATCH v4 0/4] mmc: support sdhci instead of s5p_mmc

2012-04-10 Thread Lei Wen
vers/mmc/s5p_sdhci.c > ___ > U-Boot mailing list > U-Boot@lists.denx.de > http://lists.denx.de/mailman/listinfo/u-boot Ack to this series. Acked-by: Lei Wen Thanks, Lei ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 0/6] add zip command support for uboot

2012-04-10 Thread Lei Wen
Hi Mike, On Wed, Apr 11, 2012 at 6:11 AM, Mike Frysinger wrote: > On Tuesday 10 April 2012 01:05:13 Lei Wen wrote: >> Hi Mike, >> >> On Tue, Apr 10, 2012 at 12:37 PM, Mike Frysinger wrote: >> > On Tuesday 03 April 2012 05:31:09 Lei Wen wrote: >> >> Hi

Re: [U-Boot] [PATCH 0/6] add zip command support for uboot

2012-04-09 Thread Lei Wen
Hi Mike, On Tue, Apr 10, 2012 at 12:37 PM, Mike Frysinger wrote: > On Tuesday 03 April 2012 05:31:09 Lei Wen wrote: >> Hi Mike, >> >> On Tue, Apr 3, 2012 at 3:17 AM, Mike Frysinger wrote: >> > On Tue, Mar 27, 2012 at 04:04, Lei Wen wrote: >> >>

Re: [U-Boot] [PATCH 0/6] add zip command support for uboot

2012-04-03 Thread Lei Wen
Hi Mike, On Tue, Apr 3, 2012 at 3:17 AM, Mike Frysinger wrote: > On Tue, Mar 27, 2012 at 04:04, Lei Wen wrote: >> On Sun, Mar 25, 2012 at 11:53 PM,   wrote: >>> From: Lei Wen >>> >>> This patch set add zip command support for uboot. >>> The first t

Re: [U-Boot] [PATCH 0/6] add zip command support for uboot

2012-04-02 Thread Lei Wen
Dear Wolfgang, On Wed, Mar 28, 2012 at 10:23 AM, Lei Wen wrote: > Hi Tom, > > On Wed, Mar 28, 2012 at 2:12 AM, Tom Rini wrote: >> On Tue, Mar 27, 2012 at 04:04:29PM +0800, Lei Wen wrote: >>> Hi, >>> >>> On Sun, Mar 25, 2012 at 11:53 PM,   wrote: >&

Re: [U-Boot] [PATCH v2 1/3] mmc: sdhci: fix the wrong operation when response type is R1b

2012-03-31 Thread Lei Wen
Hi Jaehoon, On Sat, Mar 31, 2012 at 2:55 PM, Jae hoon Chung wrote: > Hi Lei. > > I will try to  test with  your opinion. > Just wondering..If apply with my patch, is it something problem? First, you patch limit the original mask which could be extend to other flag to only SDHCI_INT_RESPONSE | SD

Re: [U-Boot] [PATCH v2 1/3] mmc: sdhci: fix the wrong operation when response type is R1b

2012-03-30 Thread Lei Wen
Hi Jaehoon, On Fri, Mar 30, 2012 at 2:23 PM, Jaehoon Chung wrote: > On 03/30/2012 02:24 PM, Lei Wen wrote: > >> Hi Jaehoon, >> >> On Fri, Mar 30, 2012 at 12:36 PM, Jaehoon Chung >> wrote: >>> Hi Lei. >>> >>> First, thanks for implemented

Re: [U-Boot] [PATCH v2 1/3] mmc: sdhci: fix the wrong operation when response type is R1b

2012-03-29 Thread Lei Wen
Hi Jaehoon, On Fri, Mar 30, 2012 at 12:36 PM, Jaehoon Chung wrote: > Hi Lei. > > First, thanks for implemented the generic sdhci controller. It is my pleasure to share this common code, and I'm glad that it is used for other platforms now. :) > > On 03/30/2012 12:33 PM, Le

Re: [U-Boot] [PATCH v2 1/3] mmc: sdhci: fix the wrong operation when response type is R1b

2012-03-29 Thread Lei Wen
Hi Jaehoon, On Fri, Mar 30, 2012 at 10:39 AM, Jaehoon Chung wrote: > When response type is R1b, mask value is added the SDHCI_INT_DAT_END. > but in while(), didn't check that flag. > So sdhci controller didn't work fine. > CMD6 didn't always complete. Could you elaborate it more in details?

Re: [U-Boot] [PATCH 0/6] add zip command support for uboot

2012-03-27 Thread Lei Wen
Hi Tom, On Wed, Mar 28, 2012 at 2:12 AM, Tom Rini wrote: > On Tue, Mar 27, 2012 at 04:04:29PM +0800, Lei Wen wrote: >> Hi, >> >> On Sun, Mar 25, 2012 at 11:53 PM,   wrote: >> > From: Lei Wen >> > >> > This patch set add zip command support for

Re: [U-Boot] [PATCH 0/6] add zip command support for uboot

2012-03-27 Thread Lei Wen
Hi, On Sun, Mar 25, 2012 at 11:53 PM, wrote: > From: Lei Wen > > This patch set add zip command support for uboot. > The first two patches import deflate and trees functions from zlib 1.2.5 > without any change. While the third patch did the necessary change to > make the im

Re: [U-Boot] [PATCH] lib: zlib: update to 1.2.6

2012-03-08 Thread Lei Wen
Hi Wolfgang, On Thu, Mar 8, 2012 at 4:13 PM, Wolfgang Denk wrote: > Dear Lei Wen, > > In message > you > wrote: >> >> > I wonder which benefits we get for this price we are paying? >> >> The main reason I'd like to introduce this upgrade is for

Re: [U-Boot] [PATCH] lib: zlib: update to 1.2.6

2012-03-07 Thread Lei Wen
Hi Wolfgang, On Wed, Mar 7, 2012 at 10:30 PM, Wolfgang Denk wrote: > Dear Lei Wen, > > In message > you > wrote: >> >> I miss add the zconf.h into the patch... >> V2 patch is attached... > > Argh.  Please NEVER send patches as attachments.  Always send

Re: [U-Boot] [PATCH] lib: zlib: update to 1.2.6

2012-03-06 Thread Lei Wen
Hi Mike, On Wed, Mar 7, 2012 at 12:15 AM, Mike Frysinger wrote: > On Tuesday 06 March 2012 03:55:19 Lei Wen wrote: >> In this patch, I update the current zlib from 1.2.5 to 1.2.6. >> >> There is a lot of warnings when using checkpatch script, I don't know >>

Re: [U-Boot] [PATCH] nand_util: correct YAFFS image write function

2012-01-24 Thread Lei Wen
On Sat, Jan 21, 2012 at 4:46 AM, Scott Wood wrote: > On 01/20/2012 12:17 AM, Kassey Lee wrote: >> hi, Lei, Scott: >>      I think this is correct, >>      do you have some comments ? > > Looks right. > > -Scott Also looks fine to me. Acke

Re: [U-Boot] [PATCH] drivers/mmc/mv_sdhci.c: Fix build warning

2011-12-12 Thread Lei Wen
NULL [-Waddress] > > Signed-off-by: Anatolij Gustschin > Cc: Lei Wen > Cc: Andy Fleming > --- >  drivers/mmc/mv_sdhci.c |    3 +-- >  1 files changed, 1 insertions(+), 2 deletions(-) > > diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mmc/mv_sdhci.c > index 1501974..2

Re: [U-Boot] [PATCH] Revert "mmc: retry the cmd8 to meet 74 clocks requirement in the spec"

2011-11-15 Thread Lei Wen
retry > 0 && err); > - > -       if (err) > -               return err; > +       err = mmc_send_if_cond(mmc); > >        /* Now try to get the SD card's operating condition */ >        err = sd_send_op_cond(mmc); > -- > 1.7.3.5 > > Acked-by: Lei Wen ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] Nokia N900 - eMMC not working after commit 02f3029f1810b99869254d0cf0a71946a008a728

2011-11-15 Thread Lei Wen
Hi Macpaul, On Tue, Nov 15, 2011 at 11:34 AM, Macpaul Lin wrote: > HI Lei Wen, > > 2011/11/14 Lei Wen : >> Hi Macpaul, >> >>>> It seems some socs always treat cmd8 as failed...? >>>> I think it is reasonable to add a quirk configuration surround t

Re: [U-Boot] Nokia N900 - eMMC not working after commit 02f3029f1810b99869254d0cf0a71946a008a728

2011-11-14 Thread Lei Wen
Hi Macpaul, On Mon, Nov 14, 2011 at 2:36 PM, Macpaul Lin wrote: > Hi Lei Wen, > > 2011/11/14 Lei Wen : >> Hi Macpaul, >> >> I see... >> It seems some socs always treat cmd8 as failed...? >> I think it is reasonable to add a quirk configuration surround the

Re: [U-Boot] Nokia N900 - eMMC not working after commit 02f3029f1810b99869254d0cf0a71946a008a728

2011-11-13 Thread Lei Wen
Hi Macpaul, On Mon, Nov 14, 2011 at 2:14 PM, Macpaul Lin wrote: > HI Lei Wen, > > 2011/11/12 Macpaul Lin : >> Hi Lei Wen, >> >> 2011/11/12 Lei Wen : >>> Hi Pali, >>> >> I have got 3 times retry fail on CMD8 also with FTSDC010 in recent, too.

Re: [U-Boot] Nokia N900 - eMMC not working after commit 02f3029f1810b99869254d0cf0a71946a008a728

2011-11-11 Thread Lei Wen
Hi Pali, On Sat, Nov 12, 2011 at 7:17 AM, Pali Rohár wrote: > Hello, > > after commit 02f3029f1810b99869254d0cf0a71946a008a728 mmc: retry the cmd8 to > meet 74 clocks requirement in the spec > > internal eMMC memory on Nokia N900 in u-boot not working. If I comment code > "if (err) return err;" a

Re: [U-Boot] [PATCH V4 0/5] fix and enhancement patches for sdhci

2011-11-01 Thread Lei Wen
Hi Andy, On Tue, Oct 18, 2011 at 10:58 PM, Lei Wen wrote: > Hi Andy, > > On Sat, Oct 8, 2011 at 10:14 PM, Lei Wen wrote: >> This seris fix several issue like flush cache and build warning. And >> give this generic driver enhancement for timeout when transferring data >&g

Re: [U-Boot] [PATCH] mmc: mv_sdhci: Fix host version read for Armada100

2011-11-01 Thread Lei Wen
Hi Ajay, On Tue, Nov 1, 2011 at 5:39 PM, Ajay Bhargav wrote: > sdhci_readw does not work for host version read in Armada100 series > SoCs. This patch fix this issue by making a sdhci_readl call to get host > version. > > Signed-off-by: Ajay Bhargav > --- >  drivers/mmc/mv_sdhci.c |    6 ++ >

[U-Boot] [PATCH] part_efi: fix build warning

2011-10-31 Thread Lei Wen
'get_partition_info_efi': part_efi.c:172: warning: passing argument 3 of 'is_gpt_valid' from incompatible pointer type part_efi.c:95: note: expected 'struct gpt_header *' but argument is of type 'struct gpt_header **' Signed-off-by: Lei Wen --- disk/part_e

[U-Boot] [PATCH 2/2] armada100: define CONFIG_SYS_CACHELINE_SIZE

2011-10-31 Thread Lei Wen
By default, on Armada100 SoC DCache Lnd ICache line lengths are 32 bytes long Signed-off-by: Lei Wen --- arch/arm/include/asm/arch-armada100/config.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/arch-armada100/config.h b/arch/arm/include/asm

[U-Boot] [PATCH 1/2] pantheon: define CONFIG_SYS_CACHELINE_SIZE

2011-10-31 Thread Lei Wen
By default, on Pantheon SoC DCache Lnd ICache line lengths are 32 bytes long Signed-off-by: Lei Wen --- arch/arm/include/asm/arch-pantheon/config.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/arch-pantheon/config.h b/arch/arm/include/asm/arch

[U-Boot] [PATCH 0/2] fix build error for pantheon and armada100

2011-10-31 Thread Lei Wen
For the CONFIG_SYS_CACHELINE_SIZE is required to be defined defaultly. Add it to pantheon and armada100 accordingly. Lei Wen (2): pantheon: define CONFIG_SYS_CACHELINE_SIZE armada100: define CONFIG_SYS_CACHELINE_SIZE arch/arm/include/asm/arch-armada100/config.h |2 ++ arch/arm/include

Re: [U-Boot] [PATCH V2 0/4] add mmc support for pantheon platform

2011-10-31 Thread Lei Wen
Hi Albert, On Tue, Oct 25, 2011 at 2:25 PM, Albert ARIBAUD wrote: > Le 25/10/2011 08:15, Albert ARIBAUD a écrit : >> >> Hi Lei Wen, >> >> Le 25/10/2011 03:21, Lei Wen a écrit : >>> >>> Hi Albert, >>> >>> On Tue, Oct 25, 201

Re: [U-Boot] [PATCH V2] ARM: orion5x: reduce dependence of including platform file

2011-10-31 Thread Lei Wen
Hi Prafulla, On Thu, Oct 27, 2011 at 5:02 PM, Prafulla Wadaskar wrote: > > >> -Original Message----- >> From: Lei Wen [mailto:lei...@marvell.com] >> Sent: Wednesday, October 26, 2011 7:52 AM >> To: Wolfgang Denk; Albert ARIBAUD; Prafulla Wadaskar; u- >> b

Re: [U-Boot] [PATCH] ARM: orion5x: reduce dependence of including platform file

2011-10-25 Thread Lei Wen
Hi Wolfgang, On Wed, Oct 26, 2011 at 2:50 AM, Wolfgang Denk wrote: > Dear Lei Wen, > > In message > you > wrote: >> >> >> +#include >> > >> > I don't like this. >> > >> > >> > Board config files MUST NOT d

[U-Boot] [PATCH V2] ARM: orion5x: reduce dependence of including platform file

2011-10-25 Thread Lei Wen
. Signed-off-by: Lei Wen --- Changelog: V2: seperate orion5x define structure as kirkwood and armada does arch/arm/cpu/arm926ejs/orion5x/cpu.c|2 + arch/arm/cpu/arm926ejs/orion5x/dram.c |1 + arch/arm/cpu/arm926ejs/orion5x/timer.c |1 + arch/arm/include/asm/arch

Re: [U-Boot] [PATCH V2 0/4] add mmc support for pantheon platform

2011-10-25 Thread Lei Wen
Hi Wolfgang, On Wed, Oct 26, 2011 at 2:51 AM, Wolfgang Denk wrote: > Dear Lei Wen, > > In message > you > wrote: >> >> >> Actually, I have post another fixing series before this, so if it got >> >> be applied before this merged, >> >>

Re: [U-Boot] [PATCH V2 0/4] add mmc support for pantheon platform

2011-10-25 Thread Lei Wen
Hi Wolfgang, On Tue, Oct 25, 2011 at 3:38 PM, Wolfgang Denk wrote: > Dear Lei Wen, > > In message > you > wrote: >> >> Actually, I have post another fixing series before this, so if it got >> be applied before this merged, >> the warning would be d

Re: [U-Boot] [PATCH] ARM: orion5x: reduce dependence of including platform file

2011-10-25 Thread Lei Wen
Hi Wolfgang, On Tue, Oct 25, 2011 at 3:43 PM, Wolfgang Denk wrote: > Dear Lei Wen, > > In message <1319509652-5648-1-git-send-email-lei...@marvell.com> you wrote: >> For files like the drivers/serial/serial.c, it must include the >> platform file, as the CONFIG_SYS_NS1

[U-Boot] [PATCH] ARM: orion5x: reduce dependence of including platform file

2011-10-24 Thread Lei Wen
. Signed-off-by: Lei Wen --- arch/arm/cpu/arm926ejs/orion5x/cpu.c|3 ++- arch/arm/cpu/arm926ejs/orion5x/dram.c |2 +- arch/arm/cpu/arm926ejs/orion5x/timer.c |2 +- arch/arm/include/asm/arch-orion5x/orion5x.h |6 -- common/cmd_ide.c

Re: [U-Boot] [PATCH 4/5] serial: reduce include platform file for marvell chip

2011-10-24 Thread Lei Wen
Hi Albert, On Tue, Oct 25, 2011 at 12:46 AM, Albert ARIBAUD wrote: > Hi all, > > Le 02/10/2011 16:16, Lei Wen a écrit : >> >> Build pass with following config: >> dkb_config >> aspenite_config >> edminiv2_config >> openrd_ultimate_config &

Re: [U-Boot] [PATCH V2 0/4] add mmc support for pantheon platform

2011-10-24 Thread Lei Wen
Hi Albert, On Tue, Oct 25, 2011 at 1:20 AM, Albert ARIBAUD wrote: > Hi Lei Wen, > > Le 04/10/2011 08:33, Lei Wen a écrit : >> This patch seris add the mmc support for the pantheon platform. >> Also give platform like dkb and aspenite a workaround when enabling >> the

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

Re: [U-Boot] [PATCH 0/3] enable dcache for pantheon and armada100

2011-10-18 Thread Lei Wen
Hi Prafulla, On Sat, Oct 8, 2011 at 9:59 PM, Lei Wen wrote: > This patch seris use Marvell its own special op code to flush the dcache > > Lei Wen (3): >  ARM: add special dcache flush op code for 88SV331xV5 >  ARM: pantheon: enable dcache by default >  ARM: armada100: enable

Re: [U-Boot] [PATCH V4 0/5] fix and enhancement patches for sdhci

2011-10-18 Thread Lei Wen
Hi Andy, On Sat, Oct 8, 2011 at 10:14 PM, Lei Wen wrote: > This seris fix several issue like flush cache and build warning. And > give this generic driver enhancement for timeout when transferring data > and additional structure member to access in platform self driver. > > Change

Re: [U-Boot] [PATCH V2 1/2] mmc: change magic number to macro define

2011-10-15 Thread Lei Wen
Hi Wolfgang, On Sat, Oct 15, 2011 at 4:36 AM, Wolfgang Denk wrote: > Dear Lei Wen, > > In message > you > wrote: >> >> > And both the "index" and "value" arguments are never used in I/O >> > context, i. e. they are actual plain intege

Re: [U-Boot] [PATCH 0/5] Marvell: reduce dependence files

2011-10-14 Thread Lei Wen
Hi Prafulla, On Fri, Oct 14, 2011 at 6:19 PM, Prafulla Wadaskar wrote: > Dear Lei > > I was pulling this patch series. > I found certain patches could not be applied, I had resolved them since > gplugd are in. > But I found certain warnings and errors if I build with aspenite_config > > May you

[U-Boot] [PATCH V2 5/5] gpio: mvmfp: reduce include platform file

2011-10-14 Thread Lei Wen
Build pass with following config: dkb_config aspenite_config Signed-off-by: Lei Wen --- Changelog: V2: no change drivers/gpio/mvmfp.c |7 --- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/drivers/gpio/mvmfp.c b/drivers/gpio/mvmfp.c index e7830c6..f56c037 100644 --- a

[U-Boot] [PATCH V2 4/5] serial: reduce include platform file for marvell chip

2011-10-14 Thread Lei Wen
Build pass with following config: dkb_config aspenite_config edminiv2_config openrd_ultimate_config sheevaplug_config mv88f6281gtw_ge_config rd6281a_config guruplug_config km_kirkwood_config Signed-off-by: Lei Wen Acked-by: Wolfgang Denk --- Changelog: V2: no change drivers/serial/serial.c

[U-Boot] [PATCH V2 3/5] ARM: kirkwood: reduce dependence of including platform file

2011-10-14 Thread Lei Wen
. Signed-off-by: Lei Wen --- Changelog: V2: no change arch/arm/cpu/arm926ejs/kirkwood/cpu.c |2 ++ arch/arm/cpu/arm926ejs/kirkwood/dram.c |2 ++ arch/arm/cpu/arm926ejs/kirkwood/mpp.c |2 ++ arch/arm/cpu/arm926ejs/kirkwood/timer.c |1 + arch/arm

[U-Boot] [PATCH V2 2/5] ARM: armada100: reduce dependence of including platform file

2011-10-14 Thread Lei Wen
. Signed-off-by: Lei Wen --- Changelog: V2: no change arch/arm/cpu/arm926ejs/armada100/cpu.c |2 +- arch/arm/cpu/arm926ejs/armada100/dram.c |1 + arch/arm/cpu/arm926ejs/armada100/timer.c|1 + arch/arm/include/asm/arch-armada100/armada100.h | 131

[U-Boot] [PATCH V2 1/5] ARM: pantheon: reduce dependence of including platform file

2011-10-14 Thread Lei Wen
. Signed-off-by: Lei Wen --- Changelog: V2: no change arch/arm/cpu/arm926ejs/pantheon/cpu.c |2 +- arch/arm/cpu/arm926ejs/pantheon/dram.c|1 + arch/arm/cpu/arm926ejs/pantheon/timer.c |1 + arch/arm/include/asm/arch-pantheon/config.h |2 ++ arch/arm/include

[U-Boot] [PATCH V2 0/5] Marvell: reduce dependence files

2011-10-14 Thread Lei Wen
Changelog: V2: rebase over latest u-boot-marvell.git Lei Wen (5): ARM: pantheon: reduce dependence of including platform file ARM: armada100: reduce dependence of including platform file ARM: kirkwood: reduce dependence of including platform file serial: reduce include platform file for

Re: [U-Boot] [PATCH V2 1/2] mmc: change magic number to macro define

2011-10-13 Thread Lei Wen
Hi Wolfgang, On Fri, Oct 14, 2011 at 4:09 AM, Wolfgang Denk wrote: > Dear Lei Wen, > > In message > Graeme > Russ wrote: >> >> > So do you means I should keep the EXT_CSD_HS_TIMING? Or I change like >> > below? >> > >> &g

Re: [U-Boot] [PATCH V2 1/2] mmc: change magic number to macro define

2011-10-11 Thread Lei Wen
Hi Graeme, On Tue, Oct 11, 2011 at 9:09 AM, Graeme Russ wrote: > Hi Lei Wen, > > On Tue, Oct 11, 2011 at 11:48 AM, Lei Wen wrote: >> Hi Wolfgang, >> >> On Tue, Oct 11, 2011 at 1:33 AM, Wolfgang Denk wrote: >>> Dear Lei Wen, >>> >>> In m

Re: [U-Boot] [PATCH V2 1/2] mmc: change magic number to macro define

2011-10-10 Thread Lei Wen
Hi Wolfgang, On Tue, Oct 11, 2011 at 1:33 AM, Wolfgang Denk wrote: > Dear Lei Wen, > > In message > you > wrote: >> >> >> So macro may looks more concise and could parse from its meaning easily >> >> eno= >> >> ugh. >> > &g

Re: [U-Boot] [PATCH V2 1/2] mmc: change magic number to macro define

2011-10-10 Thread Lei Wen
Hi Wolfgang, On Fri, Oct 7, 2011 at 1:39 AM, Wolfgang Denk wrote: > Dear Lei Wen, > > In message > you > wrote: >> >> The ext_csd current usage in mmc.c is not too much, here I mean only few of >> the fields of the ext_csd is used, also fully definition of

[U-Boot] [PATCH V4 5/5] mmc: sdhci: fix sdma bug for large file transfer

2011-10-08 Thread Lei Wen
SDHCI spec need to reset the sdma base address while the software try to accorss the 512k bytes address boundary. When meet such accross behavior, sdhci controller would generate a interrupt automatically, and software need handle this. Signed-off-by: Lei Wen --- Changelog: V2: no change V3: new

[U-Boot] [PATCH V4 4/5] mmc: sdhci: add timeout for data transfer

2011-10-08 Thread Lei Wen
Signed-off-by: Lei Wen --- Changelog: V2: no change V3: no change V4: no change drivers/mmc/sdhci.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 31c738e..77a9e70 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers

[U-Boot] [PATCH V4 1/5] mmc: sdhci: fix cache flush

2011-10-08 Thread Lei Wen
Only flush the memory range needed. Signed-off-by: Lei Wen --- Changelog: V2: no change V3: no change V4: no change drivers/mmc/sdhci.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 9ebd33d..4a92453 100644 --- a

[U-Boot] [PATCH V4 3/5] mmc: sdhci: add mmc structure for host

2011-10-08 Thread Lei Wen
So that sdhci host would tell in the driver that the mmc current attributes. Signed-off-by: Lei Wen --- Changelog: V2: no change V3: no change V4: add empty line after mmc.h include drivers/mmc/sdhci.c |1 + include/sdhci.h |3 +++ 2 files changed, 4 insertions(+), 0 deletions

[U-Boot] [PATCH V4 0/5] fix and enhancement patches for sdhci

2011-10-08 Thread Lei Wen
this series V4: minor code style change Lei Wen (5): mmc: sdhci: fix cache flush mmc: sdhci: fix build warning mmc: sdhci: add mmc structure for host mmc: sdhci: add timeout for data transfer mmc: sdhci: fix sdma bug for large file transfer drivers/mmc/sdhci.c | 14

[U-Boot] [PATCH V4 2/5] mmc: sdhci: fix build warning

2011-10-08 Thread Lei Wen
ing: 'struct sdhci_host' declared inside parameter list include/sdhci.h:229: warning: 'struct sdhci_host' declared inside parameter list Signed-off-by: Lei Wen --- Changelog: V2: code style change V2.1: delete "Change-Id" V3: no change V4: no change include/sdhci.h |

Re: [U-Boot] [PATCH V3 3/5] mmc: sdhci: add mmc structure for host

2011-10-08 Thread Lei Wen
Hi Sergei, On Sat, Oct 8, 2011 at 9:52 PM, Sergei Shtylyov wrote: > Hello. > > On 08-10-2011 17:47, Lei Wen wrote: > >> So that sdhci host would tell in the driver that the mmc current >> attributes. > >> Signed-off-by: Lei Wen > [...] > >> diff --git

Re: [U-Boot] [PATCH] ARM: pantheon: enable dcache by default

2011-10-08 Thread Lei Wen
Hi Prafulla, On Fri, Oct 7, 2011 at 11:53 AM, Prafulla Wadaskar wrote: > > >> -Original Message----- >> From: Lei Wen [mailto:lei...@marvell.com] >> Sent: Wednesday, October 05, 2011 8:43 PM >> To: Prafulla Wadaskar; u-boot@lists.denx.de >> Subject: [PA

[U-Boot] [PATCH 2/3] ARM: pantheon: enable dcache by default

2011-10-08 Thread Lei Wen
Signed-off-by: Lei Wen --- arch/arm/cpu/arm926ejs/pantheon/cpu.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/arm926ejs/pantheon/cpu.c b/arch/arm/cpu/arm926ejs/pantheon/cpu.c index 8b2eafa..18da1c1 100644 --- a/arch/arm/cpu/arm926ejs/pantheon

[U-Boot] [PATCH 3/3] ARM: armada100: enable dcache by default

2011-10-08 Thread Lei Wen
Signed-off-by: Lei Wen --- arch/arm/cpu/arm926ejs/armada100/cpu.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/arm926ejs/armada100/cpu.c b/arch/arm/cpu/arm926ejs/armada100/cpu.c index c21938e..47b764d 100644 --- a/arch/arm/cpu/arm926ejs/armada100

[U-Boot] [PATCH 0/3] enable dcache for pantheon and armada100

2011-10-08 Thread Lei Wen
This patch seris use Marvell its own special op code to flush the dcache Lei Wen (3): ARM: add special dcache flush op code for 88SV331xV5 ARM: pantheon: enable dcache by default ARM: armada100: enable dcache by default arch/arm/cpu/arm926ejs/armada100/cpu.c |8 arch/arm/cpu

[U-Boot] [PATCH 1/3] ARM: add special dcache flush op code for 88SV331xV5

2011-10-08 Thread Lei Wen
Marvell 88SV331xV5 has its specific arm cp15 opcode, which could flush out whole dcache by only one line of asm code. Signed-off-by: Lei Wen --- arch/arm/lib/cache.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/lib/cache.c b/arch/arm/lib/cache.c index

[U-Boot] [PATCH V3 4/5] mmc: sdhci: add timeout for data transfer

2011-10-08 Thread Lei Wen
Signed-off-by: Lei Wen --- Changelog: V2: no change V3: no change drivers/mmc/sdhci.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 31c738e..77a9e70 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c

[U-Boot] [PATCH V3 5/5] mmc: sdhci: fix sdma bug for large file transfer

2011-10-08 Thread Lei Wen
SDHCI spec need to reset the sdma base address while the software try to accorss the 512k bytes address boundary. When meet such accross behavior, sdhci controller would generate a interrupt automatically, and software need handle this. Signed-off-by: Lei Wen --- Changelog: V2: no change V3: new

[U-Boot] [PATCH V3 3/5] mmc: sdhci: add mmc structure for host

2011-10-08 Thread Lei Wen
So that sdhci host would tell in the driver that the mmc current attributes. Signed-off-by: Lei Wen --- Changelog: V2: no change V3: no change drivers/mmc/sdhci.c |1 + include/sdhci.h |2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/sdhci.c b

[U-Boot] [PATCH V3 2/5] mmc: sdhci: fix build warning

2011-10-08 Thread Lei Wen
ing: 'struct sdhci_host' declared inside parameter list include/sdhci.h:229: warning: 'struct sdhci_host' declared inside parameter list Signed-off-by: Lei Wen --- Changelog: V2: code style change V2.1: delete "Change-Id" V3: no change include/sdhci.h |3 +++ 1 files ch

[U-Boot] [PATCH V3 1/5] mmc: sdhci: fix cache flush

2011-10-08 Thread Lei Wen
Only flush the memory range needed. Signed-off-by: Lei Wen --- Changelog: V2: no change V3: no change drivers/mmc/sdhci.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 9ebd33d..4a92453 100644 --- a/drivers/mmc/sdhci.c

[U-Boot] [PATCH V3 0/5] fix and enhancement patches for sdhci

2011-10-08 Thread Lei Wen
this series Lei Wen (5): mmc: sdhci: fix cache flush mmc: sdhci: fix build warning mmc: sdhci: add mmc structure for host mmc: sdhci: add timeout for data transfer mmc: sdhci: fix sdma bug for large file transfer drivers/mmc/sdhci.c | 14 +++--- include/sdhci.h |5

Re: [U-Boot] [PATCH V2 1/2] mmc: change magic number to macro define

2011-10-08 Thread Lei Wen
On Fri, Oct 7, 2011 at 4:36 PM, Prafulla Wadaskar wrote: > > >> -Original Message- >> From: u-boot-boun...@lists.denx.de [mailto:u-boot-boun...@lists.denx.de] >> On Behalf Of Lei Wen >> Sent: Thursday, October 06, 2011 8:41 PM >> To: Marek Vasut >&g

Re: [U-Boot] [PATCH V2 1/2] mmc: change magic number to macro define

2011-10-06 Thread Lei Wen
Hi Marek, On Tue, Oct 4, 2011 at 8:07 PM, Marek Vasut wrote: > On Tuesday, October 04, 2011 08:35:10 AM Lei Wen wrote: >> Previous magic number is hard to parse its meaning, change it to >> respective macro definition >> >> Signed-off-by: Lei Wen > > [..]

[U-Boot] [PATCH] ARM: pantheon: enable dcache by default

2011-10-05 Thread Lei Wen
Marvell 88SV331xV5 has its specific arm cp15 opcode, which could flush out whole dcache by only one line of asm code. Signed-off-by: Lei Wen --- arch/arm/cpu/arm926ejs/pantheon/cpu.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/arm926ejs

[U-Boot] [PATCH] USB: gadaget: add Marvell controller support

2011-10-05 Thread Lei Wen
Signed-off-by: Lei Wen --- drivers/usb/gadget/Makefile |1 + drivers/usb/gadget/gadget_chips.h |7 + drivers/usb/gadget/mv_udc.c | 499 + include/usb/mv_udc.h | 151 +++ 4 files changed, 658 insertions(+), 0 deletions

Re: [U-Boot] [PATCH V3] part: show efi partition name when print out partition info

2011-10-04 Thread Lei Wen
Hi, On Fri, Sep 30, 2011 at 9:45 AM, Lei Wen wrote: > On Fri, Sep 30, 2011 at 12:16 AM, Marek Vasut wrote: >> On Thursday, September 29, 2011 04:14:40 AM Lei Wen wrote: >>> Hi Wolfgang, >>> >>> On Thu, Sep 8, 2011 at 12:11 PM, Lei Wen wrote: >>>

[U-Boot] [PATCH V2.1 2/4] mmc: sdhci: fix build warning

2011-10-04 Thread Lei Wen
ing: 'struct sdhci_host' declared inside parameter list include/sdhci.h:229: warning: 'struct sdhci_host' declared inside parameter list Signed-off-by: Lei Wen --- Changelog: V2: code style change V2.1: delete "Change-Id" include/sdhci.h |3 +++ 1 files changed, 3

[U-Boot] [PATCH V2 0/4] add mmc support for pantheon platform

2011-10-03 Thread Lei Wen
function into seperated patch Lei Wen (4): ARM: pantheon: add mmc definition Marvell: dkb: add mmc support dkb: make mmc command as default enabled mmc: mv_sdhci: fix 8bus width access for 88SV331xV5 arch/arm/cpu/arm926ejs/pantheon/cpu.c | 11 ++ arch/arm/include/asm/arch

[U-Boot] [PATCH V2 1/4] ARM: pantheon: add mmc definition

2011-10-03 Thread Lei Wen
Signed-off-by: Lei Wen --- Changelog: V2: no change arch/arm/cpu/arm926ejs/pantheon/cpu.c | 11 +++ arch/arm/include/asm/arch-pantheon/config.h | 18 ++ arch/arm/include/asm/arch-pantheon/cpu.h | 12 arch/arm/include/asm/arch-pantheon

[U-Boot] [PATCH V2 4/4] mmc: sdhci: add timeout for data transfer

2011-10-03 Thread Lei Wen
Signed-off-by: Lei Wen --- Changelog: V2: no change drivers/mmc/sdhci.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 31c738e..77a9e70 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -81,8 +81,9

[U-Boot] [PATCH V2 2/2] mmc: test mmc bus width on startup

2011-10-03 Thread Lei Wen
For we don't know mmc bus width from reading registers, the only way to check is to test. Current compare offset is: EXT_CSD_PARTITIONING_SUPPORT EXT_CSD_ERASE_GROUP_DEF EXT_CSD_REV EXT_CSD_HC_ERASE_GRP_SIZE EXT_CSD_SEC_CNT Signed-off-by: Lei Wen --- Changelog: V2: change all magic numbe

[U-Boot] [PATCH V2 1/2] mmc: change magic number to macro define

2011-10-03 Thread Lei Wen
Previous magic number is hard to parse its meaning, change it to respective macro definition Signed-off-by: Lei Wen --- Changelog: V2: change all magic number for ext_csd to macro definition drivers/mmc/mmc.c | 21 - include/mmc.h | 16 +--- 2 files

[U-Boot] [PATCH V2 0/2] test mmc bus on startup

2011-10-03 Thread Lei Wen
Changelog: V2: Clean up mmc.c to change all magic number for ext_csd to the macro definition Lei Wen (2): mmc: change magic number to macro define mmc: test mmc bus width on startup drivers/mmc/mmc.c | 66 ++-- include/mmc.h | 16

[U-Boot] [PATCH V2 4/4] mmc: mv_sdhci: fix 8bus width access for 88SV331xV5

2011-10-03 Thread Lei Wen
ister if it find the driver is going to switch to the 8bit mode. Signed-off-by: Lei Wen --- Changelog: V2: no change drivers/mmc/mv_sdhci.c | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mmc/mv_sdhci.c

[U-Boot] [PATCH V2 3/4] dkb: make mmc command as default enabled

2011-10-03 Thread Lei Wen
Signed-off-by: Lei Wen --- Changelog: V2: remove enable mmc function into seperated patch include/configs/dkb.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/configs/dkb.h b/include/configs/dkb.h index 3d27c58..fb02d92 100644 --- a/include/configs/dkb.h +++ b

  1   2   3   4   5   >