Debian Codegraph @

flashchips/esmt.c

raw
1 /*
2 * This file is part of the flashrom project.
3 *
4 * Copyright (C) 2000 Silicon Integrated System Corporation
5 * Copyright (C) 2004 Tyan Corp
6 * Copyright (C) 2005-2008 coresystems GmbH <[email protected]>
7 * Copyright (C) 2006-2009 Carl-Daniel Hailfinger
8 * Copyright (C) 2009 Sean Nelson <[email protected]>
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 */
20
21 {
22 .vendor = "ESMT",
23 .name = "F25L008A",
24 .bustype = BUS_SPI,
25 .manufacture_id = ESMT_ID,
26 .model_id = ESMT_F25L008A,
27 .total_size = 1024,
28 .page_size = 256,
29 .feature_bits = FEATURE_WRSR_EITHER,
30 .tested = TEST_OK_PREW,
31 .probe = PROBE_SPI_RDID,
32 .probe_timing = TIMING_ZERO,
33 .block_erasers =
34 {
35 {
36 .eraseblocks = { {4 * 1024, 256} },
37 .block_erase = SPI_BLOCK_ERASE_20,
38 }, {
39 .eraseblocks = { {64 * 1024, 16} },
40 .block_erase = SPI_BLOCK_ERASE_D8,
41 }, {
42 .eraseblocks = { {1024 * 1024, 1} },
43 .block_erase = SPI_BLOCK_ERASE_60,
44 }, {
45 .eraseblocks = { {1024 * 1024, 1} },
46 .block_erase = SPI_BLOCK_ERASE_C7,
47 }
48 },
49 .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_PLAIN, /* TODO: improve */
50 .unlock = SPI_DISABLE_BLOCKPROTECT,
51 .write = SPI_CHIP_WRITE1,
52 .read = SPI_CHIP_READ,
53 .voltage = {2700, 3600},
54 },
55
56 {
57 .vendor = "ESMT",
58 .name = "F25L32PA",
59 .bustype = BUS_SPI,
60 .manufacture_id = ESMT_ID,
61 .model_id = ESMT_F25L32PA,
62 .total_size = 4096,
63 .page_size = 256,
64 .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP,
65 .tested = TEST_UNTESTED,
66 .probe = PROBE_SPI_RDID,
67 .probe_timing = TIMING_ZERO,
68 .block_erasers =
69 {
70 {
71 .eraseblocks = { {4 * 1024, 1024} },
72 .block_erase = SPI_BLOCK_ERASE_20,
73 }, {
74 .eraseblocks = { {64 * 1024, 64} },
75 .block_erase = SPI_BLOCK_ERASE_D8,
76 }, {
77 .eraseblocks = { {4 * 1024 * 1024, 1} },
78 .block_erase = SPI_BLOCK_ERASE_60,
79 }, {
80 .eraseblocks = { {4 * 1024 * 1024, 1} },
81 .block_erase = SPI_BLOCK_ERASE_C7,
82 }
83 },
84 .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP2_BPL,
85 .unlock = SPI_DISABLE_BLOCKPROTECT,
86 .write = SPI_CHIP_WRITE256,
87 .read = SPI_CHIP_READ,
88 .voltage = {2700, 3600},
89 },
90
91 {
92 .vendor = "ESMT",
93 .name = "F49B002UA",
94 .bustype = BUS_PARALLEL,
95 .manufacture_id = ESMT_ID,
96 .model_id = ESMT_F49B002UA,
97 .total_size = 256,
98 .page_size = 4096,
99 .feature_bits = FEATURE_EITHER_RESET,
100 .tested = TEST_UNTESTED,
101 .probe = PROBE_JEDEC,
102 .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */
103 .block_erasers =
104 {
105 {
106 .eraseblocks = {
107 {128 * 1024, 1},
108 {96 * 1024, 1},
109 {8 * 1024, 2},
110 {16 * 1024, 1},
111 },
112 .block_erase = JEDEC_SECTOR_ERASE,
113 }, {
114 .eraseblocks = { {256 * 1024, 1} },
115 .block_erase = JEDEC_CHIP_BLOCK_ERASE,
116 }
117 },
118 .write = WRITE_JEDEC1,
119 .read = READ_MEMMAPPED,
120 .voltage = {4500, 5500},
121 },