Debian Codegraph @

flashchips/sharp.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 = "Sharp",
23 .name = "LH28F008BJT-BTLZ1",
24 .bustype = BUS_PARALLEL,
25 .manufacture_id = SHARP_ID,
26 .model_id = SHARP_LH28F008BJ__PB,
27 .total_size = 1024,
28 .page_size = 64 * 1024,
29 .tested = TEST_OK_PREW,
30 .probe = PROBE_AT82802AB,
31 .probe_timing = TIMING_ZERO,
32 .block_erasers =
33 {
34 {
35 .eraseblocks = {
36 {8 * 1024, 8},
37 {64 * 1024, 15}
38 },
39 .block_erase = ERASE_BLOCK_82802AB,
40 }, {
41 .eraseblocks = { {1024 * 1024, 1} },
42 .block_erase = ERASE_SECTOR_49LFXXXC,
43 }
44 },
45 .unlock = UNLOCK_LH28F008BJT,
46 .write = WRITE_82802AB,
47 .read = READ_MEMMAPPED,
48 .voltage = {2700, 3600},
49 },
50
51 {
52 .vendor = "Sharp",
53 .name = "LHF00L04",
54 .bustype = BUS_FWH, /* A/A Mux */
55 .manufacture_id = SHARP_ID,
56 .model_id = SHARP_LHF00L04,
57 .total_size = 1024,
58 .page_size = 64 * 1024,
59 .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP,
60 .tested = TEST_UNTESTED,
61 .probe = PROBE_AT82802AB,
62 .probe_timing = TIMING_ZERO,
63 .block_erasers =
64 {
65 {
66 .eraseblocks = {
67 {64 * 1024, 15},
68 {8 * 1024, 8}
69 },
70 .block_erase = ERASE_BLOCK_82802AB,
71 }, {
72 .eraseblocks = {
73 {1024 * 1024, 1}
74 },
75 .block_erase = NO_BLOCK_ERASE_FUNC, /* 30 D0, only in A/A mux mode */
76 },
77 },
78 .unlock = UNLOCK_REGSPACE2_UNIFORM_64K,
79 .write = WRITE_82802AB,
80 .read = READ_MEMMAPPED,
81 .voltage = {3000, 3600},
82 },