Debian Codegraph @

flashchips/ene.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 = "ENE",
23 .name = "KB9012 (EDI)",
24 .bustype = BUS_SPI,
25 .total_size = 128,
26 .page_size = 128,
27 .feature_bits = FEATURE_ERASED_ZERO,
28 .tested = TEST_OK_PREW,
29 .spi_cmd_set = SPI_EDI,
30 .probe = PROBE_EDI_KB9012,
31 .probe_timing = TIMING_ZERO,
32 .block_erasers =
33 {
34 {
35 .eraseblocks = { {128, 1024} },
36 .block_erase = EDI_CHIP_BLOCK_ERASE,
37 },
38 },
39 .write = EDI_CHIP_WRITE,
40 .read = EDI_CHIP_READ,
41 .voltage = {2700, 3600},
42 .gran = WRITE_GRAN_128BYTES,
43 },