diff options
author | Mike Rapoport <mike@compulab.co.il> | 2008-05-27 04:20:07 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2008-06-04 12:23:12 -0400 |
commit | 1b0b30acf3fc76e5d4d278fa5a8c9c6ac9898745 (patch) | |
tree | e801810870fa40193b7059e701a0bbb3abb05c9e /drivers/mtd | |
parent | 5c9c11e1c47c2101253a95c54ef72e13edcc728a (diff) |
[MTD] [NOR] Add support for Eon EN29SL800B[BT] NOR flash chips
This patch add support for non-CFI Eon EN29SL800B[BT] NOR flash chips.
The Eon chips have manufacturer ID in the first bank, therefore this patch
depends on support for flash chips with ID in bank other than 0.
Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/chips/jedec_probe.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/drivers/mtd/chips/jedec_probe.c b/drivers/mtd/chips/jedec_probe.c index 279fe60b7855..b229da8060dd 100644 --- a/drivers/mtd/chips/jedec_probe.c +++ b/drivers/mtd/chips/jedec_probe.c | |||
@@ -26,6 +26,7 @@ | |||
26 | /* Manufacturers */ | 26 | /* Manufacturers */ |
27 | #define MANUFACTURER_AMD 0x0001 | 27 | #define MANUFACTURER_AMD 0x0001 |
28 | #define MANUFACTURER_ATMEL 0x001f | 28 | #define MANUFACTURER_ATMEL 0x001f |
29 | #define MANUFACTURER_EON 0x001c | ||
29 | #define MANUFACTURER_FUJITSU 0x0004 | 30 | #define MANUFACTURER_FUJITSU 0x0004 |
30 | #define MANUFACTURER_HYUNDAI 0x00AD | 31 | #define MANUFACTURER_HYUNDAI 0x00AD |
31 | #define MANUFACTURER_INTEL 0x0089 | 32 | #define MANUFACTURER_INTEL 0x0089 |
@@ -70,6 +71,10 @@ | |||
70 | #define AT49BV32X 0x00C8 | 71 | #define AT49BV32X 0x00C8 |
71 | #define AT49BV32XT 0x00C9 | 72 | #define AT49BV32XT 0x00C9 |
72 | 73 | ||
74 | /* Eon */ | ||
75 | #define EN29SL800BB 0x226B | ||
76 | #define EN29SL800BT 0x22EA | ||
77 | |||
73 | /* Fujitsu */ | 78 | /* Fujitsu */ |
74 | #define MBM29F040C 0x00A4 | 79 | #define MBM29F040C 0x00A4 |
75 | #define MBM29F800BA 0x2258 | 80 | #define MBM29F800BA 0x2258 |
@@ -634,6 +639,36 @@ static const struct amd_flash_info jedec_table[] = { | |||
634 | ERASEINFO(0x02000,8) | 639 | ERASEINFO(0x02000,8) |
635 | } | 640 | } |
636 | }, { | 641 | }, { |
642 | .mfr_id = MANUFACTURER_EON, | ||
643 | .dev_id = EN29SL800BT, | ||
644 | .name = "Eon EN29SL800BT", | ||
645 | .devtypes = CFI_DEVICETYPE_X16|CFI_DEVICETYPE_X8, | ||
646 | .uaddr = MTD_UADDR_0x0AAA_0x0555, | ||
647 | .dev_size = SIZE_1MiB, | ||
648 | .cmd_set = P_ID_AMD_STD, | ||
649 | .nr_regions = 4, | ||
650 | .regions = { | ||
651 | ERASEINFO(0x10000,15), | ||
652 | ERASEINFO(0x08000,1), | ||
653 | ERASEINFO(0x02000,2), | ||
654 | ERASEINFO(0x04000,1), | ||
655 | } | ||
656 | }, { | ||
657 | .mfr_id = MANUFACTURER_EON, | ||
658 | .dev_id = EN29SL800BB, | ||
659 | .name = "Eon EN29SL800BB", | ||
660 | .devtypes = CFI_DEVICETYPE_X16|CFI_DEVICETYPE_X8, | ||
661 | .uaddr = MTD_UADDR_0x0AAA_0x0555, | ||
662 | .dev_size = SIZE_1MiB, | ||
663 | .cmd_set = P_ID_AMD_STD, | ||
664 | .nr_regions = 4, | ||
665 | .regions = { | ||
666 | ERASEINFO(0x04000,1), | ||
667 | ERASEINFO(0x02000,2), | ||
668 | ERASEINFO(0x08000,1), | ||
669 | ERASEINFO(0x10000,15), | ||
670 | } | ||
671 | }, { | ||
637 | .mfr_id = MANUFACTURER_FUJITSU, | 672 | .mfr_id = MANUFACTURER_FUJITSU, |
638 | .dev_id = MBM29F040C, | 673 | .dev_id = MBM29F040C, |
639 | .name = "Fujitsu MBM29F040C", | 674 | .name = "Fujitsu MBM29F040C", |