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

2010-04-30 Thread Mike Frysinger
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:

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

2010-04-30 Thread Thomas Chou
On 04/30/2010 08:48 PM, Mike Frysinger wrote: 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

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

2010-04-29 Thread Thomas Chou
Some old STMicro parts do not support JEDEC ID (0x9f). This patch uses RES (0xab) to get Electronic ID and translates it to JEDEC ID. This is needed to support the SPI flash chip on Altera EP1C20 board. Signed-off-by: Thomas Chou tho...@wytron.com.tw --- v2: move the logic to stmicro's probe