summaryrefslogtreecommitdiff
path: root/target/linux/brcm63xx
diff options
context:
space:
mode:
authorcshore <cshore@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-12-07 16:42:23 +0000
committercshore <cshore@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-12-07 16:42:23 +0000
commiteea5cc41dc7e0ee3f22f9c1d800fe37a8fef5a06 (patch)
tree403df04148cffe8e9769673613f1176c72f86102 /target/linux/brcm63xx
parent6e4ddb80d8bd4a75d57701256b682ae699a7931e (diff)
[brcm63xx] patches-2.6.35: Added flash chip definition for Macronix MX29LV640T.
Thanks blunoise git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24307 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx')
-rw-r--r--target/linux/brcm63xx/patches-2.6.35/500-mx29lv640t_flash_chip30
1 files changed, 30 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/patches-2.6.35/500-mx29lv640t_flash_chip b/target/linux/brcm63xx/patches-2.6.35/500-mx29lv640t_flash_chip
new file mode 100644
index 0000000000..9d0185666f
--- /dev/null
+++ b/target/linux/brcm63xx/patches-2.6.35/500-mx29lv640t_flash_chip
@@ -0,0 +1,30 @@
+--- a/drivers/mtd/chips/jedec_probe.c
++++ b/drivers/mtd/chips/jedec_probe.c
+@@ -105,6 +105,7 @@
+ #define MX29LV040C 0x004F
+ #define MX29LV160T 0x22C4
+ #define MX29LV160B 0x2249
++#define MX29LV640T 0x227e
+ #define MX29F040 0x00A4
+ #define MX29F016 0x00AD
+ #define MX29F002T 0x00B0
+@@ -1162,6 +1163,19 @@ static const struct amd_flash_info jedec
+ ERASEINFO(0x04000,1)
+ }
+ }, {
++ .mfr_id = CFI_MFR_MACRONIX,
++ .dev_id = MX29LV640T,
++ .name = "MXIC MX29LV640T",
++ .devtypes = CFI_DEVICETYPE_X16|CFI_DEVICETYPE_X8,
++ .uaddr = MTD_UADDR_0x0AAA_0x0555,
++ .dev_size = SIZE_8MiB,
++ .cmd_set = P_ID_AMD_STD,
++ .nr_regions = 2,
++ .regions = {
++ ERASEINFO(0x10000,127),
++ ERASEINFO(0x02000,8)
++ }
++ }, {
+ .mfr_id = CFI_MFR_NEC,
+ .dev_id = UPD29F064115,
+ .name = "NEC uPD29F064115",