diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-10-11 22:50:10 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-03-24 20:36:30 -0400 |
commit | 5b8cfbe63f7242ebb1008f30bbbc85a9d54b38cf (patch) | |
tree | 6fbc480547d377f3b24a8e6297448f04beabb396 /board/bf537-stamp | |
parent | 6f5fd56f0832ea5c254e2e4be84ea21fc8ecd5c5 (diff) | |
download | u-boot-5b8cfbe63f7242ebb1008f30bbbc85a9d54b38cf.tar.gz u-boot-5b8cfbe63f7242ebb1008f30bbbc85a9d54b38cf.tar.bz2 u-boot-5b8cfbe63f7242ebb1008f30bbbc85a9d54b38cf.zip |
Blackfin: add hack for crappy m25p80
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'board/bf537-stamp')
-rw-r--r-- | board/bf537-stamp/spi_flash.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/bf537-stamp/spi_flash.c b/board/bf537-stamp/spi_flash.c index 7b764b497b..797daf222d 100644 --- a/board/bf537-stamp/spi_flash.c +++ b/board/bf537-stamp/spi_flash.c @@ -51,6 +51,7 @@ static struct flash_info flash_st_serial_flash[] = { { "m25p10", 0x2011, 32 * 1024, 4 }, { "m25p20", 0x2012, 64 * 1024, 4 }, { "m25p40", 0x2013, 64 * 1024, 8 }, + { "m25p80", 0x20FF, 64 * 1024, 16 }, { "m25p16", 0x2015, 64 * 1024, 32 }, { "m25p32", 0x2016, 64 * 1024, 64 }, { "m25p64", 0x2017, 64 * 1024, 128 }, @@ -309,6 +310,11 @@ static int spi_detect_part(void) if (called_init) return 0; +#ifdef CONFIG_SPI_FLASH_M25P80 + flash.manufacturer_id = JED_MANU_ST; + flash.device_id1 = 0x20; + flash.device_id2 = 0xFF; +#else SPI_ON(); /* Send the request for the part identification */ @@ -328,6 +334,7 @@ static int spi_detect_part(void) flash.device_id2 = spi_write_read_byte(0); SPI_OFF(); +#endif dev_id = (flash.device_id1 << 8) | flash.device_id2; |