diff options
author | Guillaume LECERF <glecerf@gmail.com> | 2010-05-20 10:54:10 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-05-20 11:57:00 -0400 |
commit | 8046112818b70329e930b1d4557ef0876c1ad2bb (patch) | |
tree | a3c4d5250158af0ea8931d77015f8fb4016235ec | |
parent | 1e804cec7a05e9bc26a523b1b4d0322bd894d2bc (diff) |
mtd: cfi_cmdset_0002: use AMD standard command-set with Winbond flash chips
Tested with W19L320SBT9C [1].
[1] http://www.datasheetarchive.com/pdf-datasheets/Datasheets-40/DSA-795343.pdf
[dwmw2: Fix MODULE_ALIAS and linkage]
Signed-off-by: Obinou <obconseil@gmail.com>
Signed-off-by: Guillaume LECERF <glecerf@gmail.com>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
-rw-r--r-- | drivers/mtd/chips/cfi_cmdset_0002.c | 3 | ||||
-rw-r--r-- | drivers/mtd/chips/gen_probe.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mtd/chips/cfi_cmdset_0002.c b/drivers/mtd/chips/cfi_cmdset_0002.c index cd905a1c0d20..d81079ef91a5 100644 --- a/drivers/mtd/chips/cfi_cmdset_0002.c +++ b/drivers/mtd/chips/cfi_cmdset_0002.c | |||
@@ -489,8 +489,10 @@ struct mtd_info *cfi_cmdset_0002(struct map_info *map, int primary) | |||
489 | 489 | ||
490 | return cfi_amdstd_setup(mtd); | 490 | return cfi_amdstd_setup(mtd); |
491 | } | 491 | } |
492 | struct mtd_info *cfi_cmdset_0006(struct map_info *map, int primary) __attribute__((alias("cfi_cmdset_0002"))); | ||
492 | struct mtd_info *cfi_cmdset_0701(struct map_info *map, int primary) __attribute__((alias("cfi_cmdset_0002"))); | 493 | struct mtd_info *cfi_cmdset_0701(struct map_info *map, int primary) __attribute__((alias("cfi_cmdset_0002"))); |
493 | EXPORT_SYMBOL_GPL(cfi_cmdset_0002); | 494 | EXPORT_SYMBOL_GPL(cfi_cmdset_0002); |
495 | EXPORT_SYMBOL_GPL(cfi_cmdset_0006); | ||
494 | EXPORT_SYMBOL_GPL(cfi_cmdset_0701); | 496 | EXPORT_SYMBOL_GPL(cfi_cmdset_0701); |
495 | 497 | ||
496 | static struct mtd_info *cfi_amdstd_setup(struct mtd_info *mtd) | 498 | static struct mtd_info *cfi_amdstd_setup(struct mtd_info *mtd) |
@@ -2042,4 +2044,5 @@ static void cfi_amdstd_destroy(struct mtd_info *mtd) | |||
2042 | MODULE_LICENSE("GPL"); | 2044 | MODULE_LICENSE("GPL"); |
2043 | MODULE_AUTHOR("Crossnet Co. <info@crossnet.co.jp> et al."); | 2045 | MODULE_AUTHOR("Crossnet Co. <info@crossnet.co.jp> et al."); |
2044 | MODULE_DESCRIPTION("MTD chip driver for AMD/Fujitsu flash chips"); | 2046 | MODULE_DESCRIPTION("MTD chip driver for AMD/Fujitsu flash chips"); |
2047 | MODULE_ALIAS("cfi_cmdset_0006"); | ||
2045 | MODULE_ALIAS("cfi_cmdset_0701"); | 2048 | MODULE_ALIAS("cfi_cmdset_0701"); |
diff --git a/drivers/mtd/chips/gen_probe.c b/drivers/mtd/chips/gen_probe.c index 75a8f9db8e4f..3b9a2843c5f8 100644 --- a/drivers/mtd/chips/gen_probe.c +++ b/drivers/mtd/chips/gen_probe.c | |||
@@ -249,6 +249,7 @@ static struct mtd_info *check_cmd_set(struct map_info *map, int primary) | |||
249 | #ifdef CONFIG_MTD_CFI_AMDSTD | 249 | #ifdef CONFIG_MTD_CFI_AMDSTD |
250 | case P_ID_AMD_STD: | 250 | case P_ID_AMD_STD: |
251 | case P_ID_SST_OLD: | 251 | case P_ID_SST_OLD: |
252 | case P_ID_WINBOND: | ||
252 | return cfi_cmdset_0002(map, primary); | 253 | return cfi_cmdset_0002(map, primary); |
253 | #endif | 254 | #endif |
254 | #ifdef CONFIG_MTD_CFI_STAA | 255 | #ifdef CONFIG_MTD_CFI_STAA |