From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Wed, 21 Apr 2010 15:51:33 +0800 Subject: [U-Boot] [PATCH] spi_flash: support old STMicro parts with RES In-Reply-To: <201004210342.19832.vapier@gentoo.org> References: <1271830447-19221-1-git-send-email-thomas@wytron.com.tw> <201004210342.19832.vapier@gentoo.org> Message-ID: <4BCEAE85.5040401@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 04/21/2010 03:42 PM, Mike Frysinger wrote: > please move this logic to stmicro's probe function to keep the common code > clear of such cruft. > -mike > Hi Mike, Thanks. I can move them to stmicro.c. But I still need to sort 0xff to stmicro. Is this OK? Best regards, Thomas diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c index 8986879..d400639 100644 --- a/drivers/mtd/spi/spi_flash.c +++ b/drivers/mtd/spi/spi_flash.c @@ -159,6 +159,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