On Wed, Aug 06, 2008 at 09:42:27PM +0200, Guennadi Liakhovetski wrote:
> +     if (ctrl & NAND_CTRL_CHANGE) {
> +             if (ctrl & NAND_CLE)
> +                     this->IO_ADDR_W = (void __iomem *)NFCMMD;
> +             else if (ctrl & NAND_ALE)
> +                     this->IO_ADDR_W = (void __iomem *)NFADDR;
> +             else
> +                     this->IO_ADDR_W = (void __iomem *)NFDATA;
> +             if (ctrl & NAND_NCE)
> +                     s3c_nand_select_chip(mtd, 0);
> +             else
> +                     s3c_nand_select_chip(mtd, -1);

What if select_chip(mtd, 1) had been called?

> +/*
> + * Function for checking device ready pin
> + * Written by jsgood
> + */
> +static int s3c_nand_device_ready(struct mtd_info *mtdinfo)
> +{
> +     while (!(readl(NFSTAT) & NFSTAT_RnB)) {}
> +     return 1;
> +}

Might want a timeout here.

> +     u_char err_type, repared;

repaired

-Scott

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to