[U-Boot] [PATCH v3 1/5] sf: disable write protection for Macronix flash

Mike Frysinger vapier at gentoo.org
Mon May 2 18:50:13 CEST 2011


On Mon, May 2, 2011 at 05:38, Simon Guinot wrote:
> --- a/drivers/mtd/spi/macronix.c
> +++ b/drivers/mtd/spi/macronix.c
> @@ -120,6 +120,45 @@
>        },
>  };
>
> +static int macronix_write_status(struct spi_flash *flash, u8 sr)
> +{
> +       u8 cmd;
> +       int ret;
> +
> +       ret = spi_flash_cmd(flash->spi, CMD_MX25XX_WREN, NULL, 0);

this is spi_flash_cmd_write_enable() now
-mike


More information about the U-Boot mailing list