[U-Boot] [PATCH 5/6 v2] spi_flash: support old STMicro parts with RES

Mike Frysinger vapier at gentoo.org
Fri Apr 30 14:48:15 CEST 2010


On Thursday 29 April 2010 23:34:17 Thomas Chou wrote:
> --- a/drivers/mtd/spi/spi_flash.c
> +++ b/drivers/mtd/spi/spi_flash.c
> @@ -147,6 +147,7 @@ struct spi_flash *spi_flash_probe(unsigned int bus,
> unsigned int cs, #endif
>  #ifdef CONFIG_SPI_FLASH_STMICRO
>  	case 0x20:
> +	case 0xff:
>  		flash = spi_flash_probe_stmicro(spi, idcode);
>  		break;
>  #endif

hrm, this kind of sucks, but i guess for now it's fine.  stick a comment in 
there about why we're sending the normal error byte to the stmicro function.
	/* Let the stmicro func handle non-JEDEC ids */
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100430/c3f1e88b/attachment.pgp 


More information about the U-Boot mailing list