public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] CFI: geometry reversal for STMicro M29W320DT
@ 2009-03-06 15:09 Richard Retanubun
  2009-03-06 15:27 ` Stefan Roese
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Retanubun @ 2009-03-06 15:09 UTC (permalink / raw)
  To: u-boot

Follow up to the flash_fixup_stm to fix geometry reversal
on STMicro M29W320ET flash chip. The M29W320DT has 4 erase region.

Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>

---
My baseline is 2009.03-rc1. If there are STMicro/Numonyx guys on
this mailing list, can you help provide a more 'generic' way of
detection? this way the exception list does not have to grow a lot.

  drivers/mtd/cfi_flash.c |    5 +++--
  1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c
index a66feac..391d169 100644
--- a/drivers/mtd/cfi_flash.c
+++ b/drivers/mtd/cfi_flash.c
@@ -1806,8 +1806,9 @@ static void flash_fixup_stm(flash_info_t *info, struct cfi_qry *qry)
  	if (qry->num_erase_regions > 1) {
  		/* reverse geometry if top boot part */
  		if (info->cfi_version < 0x3131) {
-			/* CFI < 1.1, guess by device id (only M29W320ET now) */
-			if (info->device_id == 0x2256) {
+			/* CFI < 1.1, guess by device id (M29W320{DT,ET} only) */
+			if (info->device_id == 0x22CA ||
+			    info->device_id == 0x2256) {
  				cfi_reverse_geometry(qry);
  			}
  		}
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-03-19 13:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-06 15:09 [U-Boot] [PATCH] CFI: geometry reversal for STMicro M29W320DT Richard Retanubun
2009-03-06 15:27 ` Stefan Roese
2009-03-06 16:30   ` Richard Retanubun
2009-03-09  8:30     ` Stefan Roese
2009-03-19 13:50       ` Richard Retanubun
2009-03-19 13:59         ` Stefan Roese

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox