[PATCH] MTD: Add support for the CPCI405 board
Matthias Fuchs
matthias.fuchs at esd-electronics.com
Thu Jun 15 04:16:01 EDT 2006
Hi,
David Woodhouse wrote:
> Please could you send the SST39VF3201 support separately?
See below.
>
> I want to stop adding map drivers -- any reason you can't use physmap?
No special reason. Just by habit.
> Either with a platform_device, or preferably by extending it to use an
> of_device too, since this is a PPC platform.
Ok, I will take a look at that. Probably cloning katana_setup_mtd() from
the katana board will be just fine.
Regards
Matthias
Signed-off-by: Matthias Fuchs <matthias.fuchs at esd-electronics.com>
---
diff --git a/drivers/mtd/chips/jedec_probe.c
b/drivers/mtd/chips/jedec_probe.c
index 517ea33..f99f73e 100644
--- a/drivers/mtd/chips/jedec_probe.c
+++ b/drivers/mtd/chips/jedec_probe.c
@@ -147,6 +147,7 @@ #define SST29LE512 0x003d
#define SST39LF800 0x2781
#define SST39LF160 0x2782
#define SST39VF1601 0x234b
+#define SST39VF3201 0x235b
#define SST39LF512 0x00D4
#define SST39LF010 0x00D5
#define SST39LF020 0x00D6
@@ -1483,6 +1484,22 @@ static const struct amd_flash_info jedec
}
}, {
+ .mfr_id = MANUFACTURER_SST, /* should be CFI */
+ .dev_id = SST39VF3201,
+ .name = "SST 39VF3201",
+ .uaddr = {
+ [0] = MTD_UADDR_0x5555_0x2AAA, /* x8 */
+ [1] = MTD_UADDR_0x5555_0x2AAA /* x16 */
+ },
+ .DevSize = SIZE_4MiB,
+ .CmdSet = P_ID_AMD_STD,
+ .NumEraseRegions= 2,
+ .regions = {
+ ERASEINFO(0x1000,512),
+ ERASEINFO(0x1000,512)
+ }
+
+ }, {
.mfr_id = MANUFACTURER_ST, /* FIXME - CFI
device? */
.dev_id = M29W800DT,
.name = "ST M29W800DT",
More information about the linux-mtd
mailing list