Re: [PATCH] [MTD] [NAND] pxa3xx: fix timing and cmdset for samsung2GbX8

From: Eric Miao
Date: Mon Aug 16 2010 - 08:22:30 EST


Cc'ed Lei and Haojian.

On Mon, Aug 16, 2010 at 4:50 PM, Axel Lin <axel.lin@xxxxxxxxx> wrote:
> This patch adds timing settings for samsung2GbX8 and
> fixes the cmdset settings. samsung2GbX8 is large page.
>
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>
> ---
> Âdrivers/mtd/nand/pxa3xx_nand.c | Â 16 ++++++++++++++--
> Â1 files changed, 14 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
> index 4d89f37..47c0442 100644
> --- a/drivers/mtd/nand/pxa3xx_nand.c
> +++ b/drivers/mtd/nand/pxa3xx_nand.c
> @@ -227,9 +227,21 @@ static struct pxa3xx_nand_flash samsung512MbX16 = {
>    Â.chip_id    Â= 0x46ec,
> Â};
>
> +static struct pxa3xx_nand_timing samsung2GbX8_timing = {
> + Â Â Â .tCH Â Â= 5,
> + Â Â Â .tCS Â Â= 20,
> + Â Â Â .tWH Â Â= 10,
> + Â Â Â .tWP Â Â= 12,
> + Â Â Â .tRH Â Â= 10,
> + Â Â Â .tRP Â Â= 12,
> + Â Â Â .tR Â Â = 25000,
> + Â Â Â .tWHR Â = 60,
> + Â Â Â .tAR Â Â= 10,
> +};
> +
> Âstatic struct pxa3xx_nand_flash samsung2GbX8 = {
> -    .timing     = &samsung512MbX16_timing,
> -    .cmdset     = &smallpage_cmdset,
> +    .timing     = &samsung2GbX8_timing,
> +    .cmdset     = &largepage_cmdset,
> Â Â Â Â.page_per_block = 64,
>    Â.page_size   Â= 2048,
>    Â.flash_width  Â= 8,
> --
> 1.7.2
>
>
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/