]> git.sur5r.net Git - u-boot/commit
sf: turn probe switch into a lookup table
authorReinhard Meyer <u-boot@emk-elektronik.de>
Tue, 5 Oct 2010 14:56:39 +0000 (16:56 +0200)
committerMike Frysinger <vapier@gentoo.org>
Wed, 13 Oct 2010 01:08:25 +0000 (21:08 -0400)
commit0d3fe2b1534cd202a97e2a2dda403a9b24b169d3
tree55c0c5752f2a86c53e4de2d8592b173c16a51602
parent076f1be8e1c1a1ea4760fc4ac7cac68bc28fc80d
sf: turn probe switch into a lookup table

This allows for arbitrarily long manufacturer ids following the JEDEC
standard of 0x7f continuation bytes.  It also makes adding new entries
easier as it's just one element in an array.  The downside is that it
increases code size a bit, but we're talking ~50 bytes.

Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
drivers/mtd/spi/spi_flash.c