Debian Codegraph @

flashchips/esi.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 = "ESI",
23 .name = "ES25P16",
24 .bustype = BUS_SPI,
25 .manufacture_id = EXCEL_ID_NOPREFIX,
26 .model_id = EXCEL_ES25P16,
27 .total_size = 2 * 1024,
28 .page_size = 256,
29 /* 256-byte parameter page separate from memory array:
30 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
31 .feature_bits = FEATURE_WRSR_WREN,
32 .tested = TEST_UNTESTED,
33 .probe = PROBE_SPI_RDID,
34 .probe_timing = TIMING_ZERO,
35 .block_erasers =
36 {
37 {
38 .eraseblocks = { {64 * 1024, 32} },
39 .block_erase = SPI_BLOCK_ERASE_D8,
40 }, {
41 .eraseblocks = { {2 * 1024 * 1024, 1} },
42 .block_erase = SPI_BLOCK_ERASE_C7,
43 }
44 },
45 .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP2_SRWD,
46 .unlock = SPI_DISABLE_BLOCKPROTECT_BP2_SRWD,
47 .write = SPI_CHIP_WRITE256,
48 .read = SPI_CHIP_READ, /* Fast Read (0x0B) supported */
49 .voltage = {2700, 3600},
50 },
51
52 {
53 .vendor = "ESI",
54 .name = "ES25P40",
55 .bustype = BUS_SPI,
56 .manufacture_id = EXCEL_ID_NOPREFIX,
57 .model_id = EXCEL_ES25P40,
58 .total_size = 512,
59 .page_size = 256,
60 /* 256-byte parameter page separate from memory array:
61 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
62 .feature_bits = FEATURE_WRSR_WREN,
63 .tested = TEST_UNTESTED,
64 .probe = PROBE_SPI_RDID,
65 .probe_timing = TIMING_ZERO,
66 .block_erasers =
67 {
68 {
69 .eraseblocks = { {64 * 1024, 8} },
70 .block_erase = SPI_BLOCK_ERASE_D8,
71 }, {
72 .eraseblocks = { {512 * 1024, 1} },
73 .block_erase = SPI_BLOCK_ERASE_C7,
74 }
75 },
76 .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP2_SRWD,
77 .unlock = SPI_DISABLE_BLOCKPROTECT_BP2_SRWD,
78 .write = SPI_CHIP_WRITE256,
79 .read = SPI_CHIP_READ, /* Fast Read (0x0B) supported */
80 .voltage = {2700, 3600},
81 },
82
83 {
84 .vendor = "ESI",
85 .name = "ES25P80",
86 .bustype = BUS_SPI,
87 .manufacture_id = EXCEL_ID_NOPREFIX,
88 .model_id = EXCEL_ES25P80,
89 .total_size = 1024,
90 .page_size = 256,
91 /* 256-byte parameter page separate from memory array:
92 * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
93 .feature_bits = FEATURE_WRSR_WREN,
94 .tested = TEST_UNTESTED,
95 .probe = PROBE_SPI_RDID,
96 .probe_timing = TIMING_ZERO,
97 .block_erasers =
98 {
99 {
100 .eraseblocks = { {64 * 1024, 16} },
101 .block_erase = SPI_BLOCK_ERASE_D8,
102 }, {
103 .eraseblocks = { {1024 * 1024, 1} },
104 .block_erase = SPI_BLOCK_ERASE_C7,
105 }
106 },
107 .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP2_SRWD,
108 .unlock = SPI_DISABLE_BLOCKPROTECT_BP2_SRWD,
109 .write = SPI_CHIP_WRITE256,
110 .read = SPI_CHIP_READ, /* Fast Read (0x0B) supported */
111 .voltage = {2700, 3600},
112 },