From: "Svend Bengt" <pastaanta@hotmail.com>
To: linux-mtd@lists.infradead.org
Subject: JEDEC flash confusion?
Date: Thu, 28 Jun 2001 10:43:51 -0000 [thread overview]
Message-ID: <F83i95HfqR77bieLYCT000174a7@hotmail.com> (raw)
Hi,
What chip driver should generally be used for JEDEC flash chips? When
looking at the MTD snapshots i found both jedec.c, cfi_jedec.c and
amd_flash.c as possible candidates. Will there be made a "unified" JEDEC
driver which incorporates support for all JEDEC flashes?
My own story is that I have a board with Macronix MX29F800B flash chips. I
made it work by patching the amd_flash.c to recognize Macronix manufacturer
ID and patching physmap.c to use amd_flash instead of cfi.
Regards,
T. Vestermark
BTW.
Here is my patch to mtd-snapshot-20010609 to include support for Macronix
flash. I hope you can use it. (Is this an OK way to supply patches?)
diff -r -C3 -P mtd_original/drivers/mtd/chips/amd_flash.c
mtd/drivers/mtd/chips/amd_flash.c
*** mtd_original/drivers/mtd/chips/amd_flash.c Sun Jun 3 00:00:07 2001
--- mtd/drivers/mtd/chips/amd_flash.c Sun Jun 17 19:13:48 2001
***************
*** 51,56 ****
--- 51,57 ----
#define MANUFACTURER_ST 0x0020
#define MANUFACTURER_SST 0x00BF
#define MANUFACTURER_TOSHIBA 0x0098
+ #define MANUFACTURER_MACRONIX 0x00C2
/* AMD */
#define AM29F800BB 0x2258
***************
*** 416,421 ****
--- 417,434 ----
{ offset: 0x010000, erasesize: 0x10000, numblocks: 15 }
}
}, {
+ mfr_id: MANUFACTURER_MACRONIX,
+ dev_id: AM29F800BB,
+ name: "Macronix MX29F800B",
+ size: 0x00100000,
+ numeraseregions: 4,
+ regions: {
+ { offset: 0x000000, erasesize: 0x04000, numblocks: 1 },
+ { offset: 0x004000, erasesize: 0x02000, numblocks: 2 },
+ { offset: 0x008000, erasesize: 0x08000, numblocks: 1 },
+ { offset: 0x010000, erasesize: 0x10000, numblocks: 15 }
+ }
+ }, {
mfr_id: MANUFACTURER_AMD,
dev_id: AM29LV800BT,
name: "AMD AM29LV800BT",
***************
*** 431,436 ****
--- 444,461 ----
mfr_id: MANUFACTURER_AMD,
dev_id: AM29F800BT,
name: "AMD AM29F800BT",
+ size: 0x00100000,
+ numeraseregions: 4,
+ regions: {
+ { offset: 0x000000, erasesize: 0x10000, numblocks: 15 },
+ { offset: 0x0F0000, erasesize: 0x08000, numblocks: 1 },
+ { offset: 0x0F8000, erasesize: 0x02000, numblocks: 2 },
+ { offset: 0x0FC000, erasesize: 0x04000, numblocks: 1 }
+ }
+ }, {
+ mfr_id: MANUFACTURER_MACRONIX,
+ dev_id: AM29F800BT,
+ name: "Macronix MX29F800T",
size: 0x00100000,
numeraseregions: 4,
regions: {
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
next reply other threads:[~2001-06-28 10:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-28 10:43 Svend Bengt [this message]
2001-06-28 11:16 ` JEDEC flash confusion? David Woodhouse
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F83i95HfqR77bieLYCT000174a7@hotmail.com \
--to=pastaanta@hotmail.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox