diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2007-10-11 07:45:02 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2007-10-11 07:45:02 +0000 |
commit | 0500cd883ae7ca2350a5160d45850da7ba1d1660 (patch) | |
tree | d4901fed0ba14a57ec477d8f2a9bbd8792f18ec4 /target/linux/adm5120/patches-2.6.23/102-jedec_pmc_39lvxxx_chips.patch | |
parent | e103abd7dc7aa2ef781a5484f2fbe9c608f97df3 (diff) | |
download | master-187ad058-0500cd883ae7ca2350a5160d45850da7ba1d1660.tar.gz master-187ad058-0500cd883ae7ca2350a5160d45850da7ba1d1660.tar.bz2 master-187ad058-0500cd883ae7ca2350a5160d45850da7ba1d1660.zip |
[adm5120] prepare for 2.6.23
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9258 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/patches-2.6.23/102-jedec_pmc_39lvxxx_chips.patch')
-rw-r--r-- | target/linux/adm5120/patches-2.6.23/102-jedec_pmc_39lvxxx_chips.patch | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/target/linux/adm5120/patches-2.6.23/102-jedec_pmc_39lvxxx_chips.patch b/target/linux/adm5120/patches-2.6.23/102-jedec_pmc_39lvxxx_chips.patch new file mode 100644 index 0000000000..b61396d4be --- /dev/null +++ b/target/linux/adm5120/patches-2.6.23/102-jedec_pmc_39lvxxx_chips.patch @@ -0,0 +1,74 @@ +Index: linux-2.6.23/drivers/mtd/chips/jedec_probe.c +=================================================================== +--- linux-2.6.23.orig/drivers/mtd/chips/jedec_probe.c ++++ linux-2.6.23/drivers/mtd/chips/jedec_probe.c +@@ -121,6 +121,10 @@ + #define UPD29F064115 0x221C + + /* PMC */ ++#define PM39LV512 0x001B ++#define PM39LV010 0x001C ++#define PM39LV020 0x003D ++#define PM39LV040 0x003E + #define PM49FL002 0x006D + #define PM49FL004 0x006E + #define PM49FL008 0x006A +@@ -1246,6 +1250,58 @@ static const struct amd_flash_info jedec + ERASEINFO(0x02000,2), + ERASEINFO(0x04000,1), + } ++ }, { ++ .mfr_id = MANUFACTURER_PMC, ++ .dev_id = PM39LV512, ++ .name = "PMC Pm39LV512", ++ .uaddr = { ++ [0] = MTD_UADDR_0x0555_0x02AA /* x8 */ ++ }, ++ .DevSize = SIZE_64KiB, ++ .CmdSet = P_ID_AMD_STD, ++ .NumEraseRegions= 1, ++ .regions = { ++ ERASEINFO(0x01000,16), ++ } ++ }, { ++ .mfr_id = MANUFACTURER_PMC, ++ .dev_id = PM39LV010, ++ .name = "PMC Pm39LV010", ++ .uaddr = { ++ [0] = MTD_UADDR_0x0555_0x02AA /* x8 */ ++ }, ++ .DevSize = SIZE_128KiB, ++ .CmdSet = P_ID_AMD_STD, ++ .NumEraseRegions= 1, ++ .regions = { ++ ERASEINFO(0x01000,32), ++ } ++ }, { ++ .mfr_id = MANUFACTURER_PMC, ++ .dev_id = PM39LV020, ++ .name = "PMC Pm39LV020", ++ .uaddr = { ++ [0] = MTD_UADDR_0x0555_0x02AA /* x8 */ ++ }, ++ .DevSize = SIZE_256KiB, ++ .CmdSet = P_ID_AMD_STD, ++ .NumEraseRegions= 1, ++ .regions = { ++ ERASEINFO(0x01000,64), ++ } ++ }, { ++ .mfr_id = MANUFACTURER_PMC, ++ .dev_id = PM39LV040, ++ .name = "PMC Pm39LV040", ++ .uaddr = { ++ [0] = MTD_UADDR_0x0555_0x02AA /* x8 */ ++ }, ++ .DevSize = SIZE_512KiB, ++ .CmdSet = P_ID_AMD_STD, ++ .NumEraseRegions= 1, ++ .regions = { ++ ERASEINFO(0x01000,128), ++ } + }, { + .mfr_id = MANUFACTURER_PMC, + .dev_id = PM49FL002, |