[U-Boot] [PATCH] mtd: SPI Flash: Support the STMicro Flash
Tsi-Chung Liew
Tsi-Chung.Liew at freescale.com
Thu Aug 21 19:48:39 CEST 2008
From: TsiChung Liew <Tsi-Chung.Liew at freescale.com>
Add MTD SPI Flash support for M25P16, M25P40,
M25P64, and M25P80.
Signed-off-by: Jason McMullan <mcmullan at netapp.com>
Signed-off-by: TsiChung Liew <Tsi-Chung.Liew at freescale.com>
---
drivers/mtd/spi/stmicro.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/spi/stmicro.c b/drivers/mtd/spi/stmicro.c
index 3854cbe..6e5ce7a 100644
--- a/drivers/mtd/spi/stmicro.c
+++ b/drivers/mtd/spi/stmicro.c
@@ -2,7 +2,7 @@
* (C) Copyright 2000-2002
* Wolfgang Denk, DENX Software Engineering, wd at denx.de.
*
- * Copyright 2008, Network Appliance Inc.
+ * Network Appliance Inc.
* Jason McMullan <mcmullan at netapp.com>
*
* See file CREDITS for list of people who contributed to this
@@ -129,7 +129,7 @@ static int stmicro_wait_ready(struct spi_flash *flash, unsigned long timeout)
if ((status & STMICRO_SR_WIP) == 0)
break;
- } while (1 || get_timer(timebase) < timeout);
+ } while (get_timer(timebase) < timeout);
spi_xfer(spi, 0, NULL, NULL, SPI_XFER_END);
--
1.5.6.4
More information about the U-Boot
mailing list