diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2012-09-29 14:33:53 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-10-19 15:52:39 -0400 |
commit | e5c9d7c0757c2e1dcd7e3130b4c3446a7e9236c8 (patch) | |
tree | 93b2494a73e44f3471d5864ddf5e4390c057a3fd | |
parent | 3c25ddd9655eb35f439d9cf92cea0077ce1d4f2c (diff) |
bcma: add some more flash chips for serial flash
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/bcma/driver_chipcommon_sflash.c | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/drivers/bcma/driver_chipcommon_sflash.c b/drivers/bcma/driver_chipcommon_sflash.c index a0993fcd13c2..63e688393825 100644 --- a/drivers/bcma/driver_chipcommon_sflash.c +++ b/drivers/bcma/driver_chipcommon_sflash.c | |||
@@ -31,15 +31,42 @@ struct bcma_sflash_tbl_e { | |||
31 | }; | 31 | }; |
32 | 32 | ||
33 | static struct bcma_sflash_tbl_e bcma_sflash_st_tbl[] = { | 33 | static struct bcma_sflash_tbl_e bcma_sflash_st_tbl[] = { |
34 | { "", 0x14, 0x10000, 32, }, | 34 | { "M25P20", 0x11, 0x10000, 4, }, |
35 | { "M25P40", 0x12, 0x10000, 8, }, | ||
36 | |||
37 | { "M25P16", 0x14, 0x10000, 32, }, | ||
38 | { "M25P32", 0x14, 0x10000, 64, }, | ||
39 | { "M25P64", 0x16, 0x10000, 128, }, | ||
40 | { "M25FL128", 0x17, 0x10000, 256, }, | ||
35 | { 0 }, | 41 | { 0 }, |
36 | }; | 42 | }; |
37 | 43 | ||
38 | static struct bcma_sflash_tbl_e bcma_sflash_sst_tbl[] = { | 44 | static struct bcma_sflash_tbl_e bcma_sflash_sst_tbl[] = { |
45 | { "SST25WF512", 1, 0x1000, 16, }, | ||
46 | { "SST25VF512", 0x48, 0x1000, 16, }, | ||
47 | { "SST25WF010", 2, 0x1000, 32, }, | ||
48 | { "SST25VF010", 0x49, 0x1000, 32, }, | ||
49 | { "SST25WF020", 3, 0x1000, 64, }, | ||
50 | { "SST25VF020", 0x43, 0x1000, 64, }, | ||
51 | { "SST25WF040", 4, 0x1000, 128, }, | ||
52 | { "SST25VF040", 0x44, 0x1000, 128, }, | ||
53 | { "SST25VF040B", 0x8d, 0x1000, 128, }, | ||
54 | { "SST25WF080", 5, 0x1000, 256, }, | ||
55 | { "SST25VF080B", 0x8e, 0x1000, 256, }, | ||
56 | { "SST25VF016", 0x41, 0x1000, 512, }, | ||
57 | { "SST25VF032", 0x4a, 0x1000, 1024, }, | ||
58 | { "SST25VF064", 0x4b, 0x1000, 2048, }, | ||
39 | { 0 }, | 59 | { 0 }, |
40 | }; | 60 | }; |
41 | 61 | ||
42 | static struct bcma_sflash_tbl_e bcma_sflash_at_tbl[] = { | 62 | static struct bcma_sflash_tbl_e bcma_sflash_at_tbl[] = { |
63 | { "AT45DB011", 0xc, 256, 512, }, | ||
64 | { "AT45DB021", 0x14, 256, 1024, }, | ||
65 | { "AT45DB041", 0x1c, 256, 2048, }, | ||
66 | { "AT45DB081", 0x24, 256, 4096, }, | ||
67 | { "AT45DB161", 0x2c, 512, 4096, }, | ||
68 | { "AT45DB321", 0x34, 512, 8192, }, | ||
69 | { "AT45DB642", 0x3c, 1024, 8192, }, | ||
43 | { 0 }, | 70 | { 0 }, |
44 | }; | 71 | }; |
45 | 72 | ||
@@ -84,6 +111,8 @@ int bcma_sflash_init(struct bcma_drv_cc *cc) | |||
84 | break; | 111 | break; |
85 | } | 112 | } |
86 | break; | 113 | break; |
114 | case 0x13: | ||
115 | return -ENOTSUPP; | ||
87 | default: | 116 | default: |
88 | for (e = bcma_sflash_st_tbl; e->name; e++) { | 117 | for (e = bcma_sflash_st_tbl; e->name; e++) { |
89 | if (e->id == id) | 118 | if (e->id == id) |