Debian Codegraph @

flashchips/xtx.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 = "XTX Technology Limited",
23 .name = "XT25F02E",
24 .bustype = BUS_SPI,
25 .manufacture_id = XTX_ID,
26 .model_id = XTX_XT25F02E,
27 .total_size = 256,
28 .page_size = 256,
29 .feature_bits = FEATURE_WRSR_WREN,
30 .tested = TEST_OK_PREW,
31 .probe = PROBE_SPI_RDID,
32 .probe_timing = TIMING_ZERO,
33 .block_erasers =
34 {
35 {
36 .eraseblocks = { {4 * 1024, 64} },
37 .block_erase = SPI_BLOCK_ERASE_20,
38 }, {
39 .eraseblocks = { {64 * 1024, 4} },
40 .block_erase = SPI_BLOCK_ERASE_D8,
41 }, {
42 .eraseblocks = { {256 * 1024, 1} },
43 .block_erase = SPI_BLOCK_ERASE_60,
44 }, {
45 .eraseblocks = { {256 * 1024, 1} },
46 .block_erase = SPI_BLOCK_ERASE_C7,
47 }
48 },
49 .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP1_SRWD,
50 .unlock = SPI_DISABLE_BLOCKPROTECT_BP1_SRWD,
51 .write = SPI_CHIP_WRITE256,
52 .read = SPI_CHIP_READ,
53 .voltage = {2700, 3600},
54 },
55
56 {
57 .vendor = "XTX Technology Limited",
58 .name = "XT25F64B",
59 .bustype = BUS_SPI,
60 .manufacture_id = XTX_ID,
61 .model_id = XTX_XT25F64B,
62 .total_size = 8 * 1024,
63 .page_size = 256,
64 /* Supports SFDP */
65 /* OTP: 4 x 256 bytes */
66 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
67 .tested = TEST_OK_PREW,
68 .probe = PROBE_SPI_RDID,
69 .probe_timing = TIMING_ZERO,
70 .block_erasers =
71 {
72 {
73 .eraseblocks = { {4 * 1024, 2048} },
74 .block_erase = SPI_BLOCK_ERASE_20,
75 }, {
76 .eraseblocks = { {32 * 1024, 256} },
77 .block_erase = SPI_BLOCK_ERASE_52,
78 }, {
79 .eraseblocks = { {64 * 1024, 128} },
80 .block_erase = SPI_BLOCK_ERASE_D8,
81 }, {
82 .eraseblocks = { {8 * 1024 * 1024, 1} },
83 .block_erase = SPI_BLOCK_ERASE_60,
84 }, {
85 .eraseblocks = { {8 * 1024 * 1024, 1} },
86 .block_erase = SPI_BLOCK_ERASE_C7,
87 }
88 },
89 .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP4_SRWD,
90 .unlock = SPI_DISABLE_BLOCKPROTECT_BP4_SRWD,
91 .write = SPI_CHIP_WRITE256,
92 .read = SPI_CHIP_READ,
93 .voltage = {2700, 3600},
94 },
95
96 {
97 .vendor = "XTX Technology Limited",
98 .name = "XT25F128B",
99 .bustype = BUS_SPI,
100 .manufacture_id = XTX_ID,
101 .model_id = XTX_XT25F128B,
102 .total_size = 16 * 1024,
103 .page_size = 256,
104 /* Supports SFDP */
105 /* OTP: 4 x 256 bytes */
106 .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI,
107 .tested = TEST_OK_PREW,
108 .probe = PROBE_SPI_RDID,
109 .probe_timing = TIMING_ZERO,
110 .block_erasers =
111 {
112 {
113 .eraseblocks = { {4 * 1024, 4096} },
114 .block_erase = SPI_BLOCK_ERASE_20,
115 }, {
116 .eraseblocks = { {32 * 1024, 512} },
117 .block_erase = SPI_BLOCK_ERASE_52,
118 }, {
119 .eraseblocks = { {64 * 1024, 256} },
120 .block_erase = SPI_BLOCK_ERASE_D8,
121 }, {
122 .eraseblocks = { {16 * 1024 * 1024, 1} },
123 .block_erase = SPI_BLOCK_ERASE_60,
124 }, {
125 .eraseblocks = { {16 * 1024 * 1024, 1} },
126 .block_erase = SPI_BLOCK_ERASE_C7,
127 }
128 },
129 .printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP4_SRWD,
130 .unlock = SPI_DISABLE_BLOCKPROTECT_BP4_SRWD,
131 .write = SPI_CHIP_WRITE256,
132 .read = SPI_CHIP_READ,
133 .voltage = {2700, 3600},
134 },