]> git.sur5r.net Git - u-boot/commit
sf: always read 5 bytes for the idcode
authorMike Frysinger <vapier@gentoo.org>
Sat, 28 Mar 2009 10:41:09 +0000 (06:41 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 2 Apr 2009 10:50:21 +0000 (06:50 -0400)
commit0dcdbb172c2fdf60c5c578980308b312fd56496f
tree6f1680e9e84ef057e8d4e308f04d127f95994fb4
parent9726ba4abaa16cd6c385ad350d403f98a8eacf52
sf: always read 5 bytes for the idcode

Some SPI flash drivers like to have extended id information available
(like the spansion flash), so rather than making it re-issue the ID cmd
to get at the last 2 bytes, have the common code read 5 bytes rather than
just 3.  This also matches the Linux behavior where it always reads 5 id
bytes from all flashes.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
CC: Mingkai Hu <Mingkai.hu@freescale.com>
drivers/mtd/spi/spansion.c
drivers/mtd/spi/spi_flash.c