All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] Incorrect flash ids?
@ 2004-01-13  0:24 listmember at orkun.us
  2004-01-13  8:55 ` Anders Larsen
  0 siblings, 1 reply; 7+ messages in thread
From: listmember at orkun.us @ 2004-01-13  0:24 UTC (permalink / raw)
  To: u-boot

Taken from include/flash.c...

#define INTEL_ID_28F128J3   0x89189818  /*  16M = 8M x 16 x 128 */
#define INTEL_ID_28F320J5   0x00140014  /*  32M = 128K x  32    */
#define INTEL_ID_28F640J5   0x00150015  /*  64M = 128K x  64    */
#define INTEL_ID_28F320J3A  0x00160016  /*  32M = 128K x  32    */
#define INTEL_ID_28F640J3A  0x00170017  /*  64M = 128K x  64    */
#define INTEL_ID_28F128J3A  0x00180018  /* 128M = 128K x 128    */

If I understand correctly, it seems to me that these definitions are
incorrect.  I think correct definitions should be as follows:

#define INTEL_ID_28F128J3   0x89188918  /*  16M = 8M x 16 x 128 */
#define INTEL_ID_28F320J5   0x89148914  /*  32M = 128K x  32    */
#define INTEL_ID_28F640J5   0x89158915  /*  64M = 128K x  64    */
#define INTEL_ID_28F320J3A  0x89168916  /*  32M = 128K x  32    */
#define INTEL_ID_28F640J3A  0x89178917  /*  64M = 128K x  64    */
#define INTEL_ID_28F128J3A  0x89188918  /* 128M = 128K x 128    */
#define INTEL_ID_28F256L18T 0x880D880D  /* 256M = 128K x 255 + 32k x 4 */

Please note that INTEL_ID_28F128J3 also changed (0x89189818 =>
0x89188918). I think 8 and 9 changed places due to a typo.

Best regards,
Tolunay

Here is the patch:

--- u-boot-1.0.0/include/flash.h        2003-08-29 17:00:48.000000000 -0500
+++ u-boot/include/flash.h      2004-01-12 18:14:33.061103106 -0600
@@ -207,12 +207,12 @@ extern int flash_real_protect(flash_info
 #define INTEL_ID_28F640C3T  0x88CC88CC /*  64M = 4M x 16 top boot sector 
     */
 #define INTEL_ID_28F640C3B  0x88CD88CD /*  64M = 4M x 16 bottom boot
sector    */

-#define INTEL_ID_28F128J3   0x89189818 /*  16M = 8M x 16 x 128 */
-#define INTEL_ID_28F320J5   0x00140014 /*  32M = 128K x  32    */
-#define INTEL_ID_28F640J5   0x00150015 /*  64M = 128K x  64    */
-#define INTEL_ID_28F320J3A  0x00160016 /*  32M = 128K x  32    */
-#define INTEL_ID_28F640J3A  0x00170017 /*  64M = 128K x  64    */
-#define INTEL_ID_28F128J3A  0x00180018 /* 128M = 128K x 128    */
+#define INTEL_ID_28F128J3   0x89188918 /*  16M = 8M x 16 x 128 */
+#define INTEL_ID_28F320J5   0x89148914 /*  32M = 128K x  32    */
+#define INTEL_ID_28F640J5   0x89158915 /*  64M = 128K x  64    */
+#define INTEL_ID_28F320J3A  0x89168916 /*  32M = 128K x  32    */
+#define INTEL_ID_28F640J3A  0x89178917 /*  64M = 128K x  64    */
+#define INTEL_ID_28F128J3A  0x89188918 /* 128M = 128K x 128    */
 #define INTEL_ID_28F256L18T 0x880D880D /* 256M = 128K x 255 + 32k x 4 */

 #define INTEL_ID_28F160S3   0x00D000D0 /*  16M = 512K x  32 (64kB x 32)  
     */

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [U-Boot-Users] Incorrect flash ids?
@ 2004-01-13 18:59 Rune Torgersen
  0 siblings, 0 replies; 7+ messages in thread
From: Rune Torgersen @ 2004-01-13 18:59 UTC (permalink / raw)
  To: u-boot

Because these flashes are 16bit wide and there are usually two of them
(one for high order 16bits and one for the low order 16 bits)

> 
> Actually, it is 0x00180018. So, the question is why duplicate 
> the id in the high and low order 16 bits?
> 

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

end of thread, other threads:[~2004-01-13 18:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-13  0:24 [U-Boot-Users] Incorrect flash ids? listmember at orkun.us
2004-01-13  8:55 ` Anders Larsen
2004-01-13  9:16   ` listmember at orkun.us
2004-01-13 11:13     ` Anders Larsen
2004-01-13 18:47       ` listmember at orkun.us
2004-01-13 18:54         ` listmember at orkun.us
2004-01-13 18:59 Rune Torgersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.