* JEDEC flash confusion?
@ 2001-06-28 10:43 Svend Bengt
2001-06-28 11:16 ` David Woodhouse
0 siblings, 1 reply; 2+ messages in thread
From: Svend Bengt @ 2001-06-28 10:43 UTC (permalink / raw)
To: linux-mtd
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: JEDEC flash confusion?
2001-06-28 10:43 JEDEC flash confusion? Svend Bengt
@ 2001-06-28 11:16 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2001-06-28 11:16 UTC (permalink / raw)
To: Svend Bengt; +Cc: linux-mtd
pastaanta@hotmail.com said:
> 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?
Hopefully, yes. We'll use the cfi_cmdset_0002 back end, and write a probe
routine which does the necessary magic to identify the chips, then sets up a
faked CFI data structure.
Some work has already been done on this, but it is merged into the real CFI
probe code, which in hindsight was probably the wrong thing to do - it
should be separated into a new probe routine.
pastaanta@hotmail.com said:
> 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?)
3 out of 3 hunks FAILED -- saving rejects to amd_flash.c.rej
Your mailer ate the whitespace.
--
dwmw2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-06-28 11:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-28 10:43 JEDEC flash confusion? Svend Bengt
2001-06-28 11:16 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox