| 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 = "PUYA", |
| 23 |
.name = "P25Q06H", |
| 24 |
.bustype = BUS_SPI, |
| 25 |
.manufacture_id = PUYA_ID, |
| 26 |
.model_id = PUYA_P25Q06H, |
| 27 |
.total_size = 64, |
| 28 |
.page_size = 256, |
| 29 |
/* supports SFDP */ |
| 30 |
/* OTP: 3 x 512 bytes */ |
| 31 |
.feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 32 |
.tested = TEST_UNTESTED, |
| 33 |
.probe = PROBE_SPI_RDID, |
| 34 |
.probe_timing = TIMING_ZERO, |
| 35 |
.block_erasers = |
| 36 |
{ |
| 37 |
{ |
| 38 |
.eraseblocks = { {256, 256} }, |
| 39 |
.block_erase = SPI_BLOCK_ERASE_81, |
| 40 |
}, { |
| 41 |
.eraseblocks = { {4 * 1024, 16} }, |
| 42 |
.block_erase = SPI_BLOCK_ERASE_20, |
| 43 |
}, { |
| 44 |
.eraseblocks = { {32 * 1024, 2} }, |
| 45 |
.block_erase = SPI_BLOCK_ERASE_52, |
| 46 |
}, { |
| 47 |
.eraseblocks = { {64 * 1024, 1} }, |
| 48 |
.block_erase = SPI_BLOCK_ERASE_D8, |
| 49 |
}, { |
| 50 |
.eraseblocks = { {64 * 1024, 1} }, |
| 51 |
.block_erase = SPI_BLOCK_ERASE_60, |
| 52 |
}, { |
| 53 |
.eraseblocks = { {64 * 1024, 1} }, |
| 54 |
.block_erase = SPI_BLOCK_ERASE_C7, |
| 55 |
} |
| 56 |
}, |
| 57 |
.printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP4_SRWD, |
| 58 |
.unlock = SPI_DISABLE_BLOCKPROTECT_BP4_SRWD, |
| 59 |
.write = SPI_CHIP_WRITE256, |
| 60 |
.read = SPI_CHIP_READ, |
| 61 |
.voltage = {2300, 3600}, |
| 62 |
}, |
| 63 |
|
| 64 |
{ |
| 65 |
.vendor = "PUYA", |
| 66 |
.name = "P25Q11H", |
| 67 |
.bustype = BUS_SPI, |
| 68 |
.manufacture_id = PUYA_ID, |
| 69 |
.model_id = PUYA_P25Q11H, |
| 70 |
.total_size = 128, |
| 71 |
.page_size = 256, |
| 72 |
/* supports SFDP */ |
| 73 |
/* OTP: 3 x 512 bytes */ |
| 74 |
.feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 75 |
.tested = TEST_UNTESTED, |
| 76 |
.probe = PROBE_SPI_RDID, |
| 77 |
.probe_timing = TIMING_ZERO, |
| 78 |
.block_erasers = |
| 79 |
{ |
| 80 |
{ |
| 81 |
.eraseblocks = { {256, 512} }, |
| 82 |
.block_erase = SPI_BLOCK_ERASE_81, |
| 83 |
}, { |
| 84 |
.eraseblocks = { {4 * 1024, 32} }, |
| 85 |
.block_erase = SPI_BLOCK_ERASE_20, |
| 86 |
}, { |
| 87 |
.eraseblocks = { {32 * 1024, 4} }, |
| 88 |
.block_erase = SPI_BLOCK_ERASE_52, |
| 89 |
}, { |
| 90 |
.eraseblocks = { {64 * 1024, 2} }, |
| 91 |
.block_erase = SPI_BLOCK_ERASE_D8, |
| 92 |
}, { |
| 93 |
.eraseblocks = { {128 * 1024, 1} }, |
| 94 |
.block_erase = SPI_BLOCK_ERASE_60, |
| 95 |
}, { |
| 96 |
.eraseblocks = { {128 * 1024, 1} }, |
| 97 |
.block_erase = SPI_BLOCK_ERASE_C7, |
| 98 |
} |
| 99 |
}, |
| 100 |
.printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP4_SRWD, |
| 101 |
.unlock = SPI_DISABLE_BLOCKPROTECT_BP4_SRWD, |
| 102 |
.write = SPI_CHIP_WRITE256, |
| 103 |
.read = SPI_CHIP_READ, |
| 104 |
.voltage = {2300, 3600}, |
| 105 |
}, |
| 106 |
|
| 107 |
{ |
| 108 |
.vendor = "PUYA", |
| 109 |
.name = "P25Q21H", |
| 110 |
.bustype = BUS_SPI, |
| 111 |
.manufacture_id = PUYA_ID, |
| 112 |
.model_id = PUYA_P25Q21H, |
| 113 |
.total_size = 256, |
| 114 |
.page_size = 256, |
| 115 |
/* supports SFDP */ |
| 116 |
/* OTP: 3 x 512 bytes */ |
| 117 |
.feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 118 |
.tested = TEST_OK_PREW, |
| 119 |
.probe = PROBE_SPI_RDID, |
| 120 |
.probe_timing = TIMING_ZERO, |
| 121 |
.block_erasers = |
| 122 |
{ |
| 123 |
{ |
| 124 |
.eraseblocks = { {256, 1024} }, |
| 125 |
.block_erase = SPI_BLOCK_ERASE_81, |
| 126 |
}, { |
| 127 |
.eraseblocks = { {4 * 1024, 64} }, |
| 128 |
.block_erase = SPI_BLOCK_ERASE_20, |
| 129 |
}, { |
| 130 |
.eraseblocks = { {32 * 1024, 8} }, |
| 131 |
.block_erase = SPI_BLOCK_ERASE_52, |
| 132 |
}, { |
| 133 |
.eraseblocks = { {64 * 1024, 4} }, |
| 134 |
.block_erase = SPI_BLOCK_ERASE_D8, |
| 135 |
}, { |
| 136 |
.eraseblocks = { {256 * 1024, 1} }, |
| 137 |
.block_erase = SPI_BLOCK_ERASE_60, |
| 138 |
}, { |
| 139 |
.eraseblocks = { {256 * 1024, 1} }, |
| 140 |
.block_erase = SPI_BLOCK_ERASE_C7, |
| 141 |
} |
| 142 |
}, |
| 143 |
.printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP4_SRWD, |
| 144 |
.unlock = SPI_DISABLE_BLOCKPROTECT_BP4_SRWD, |
| 145 |
.write = SPI_CHIP_WRITE256, |
| 146 |
.read = SPI_CHIP_READ, |
| 147 |
.voltage = {2300, 3600}, |
| 148 |
}, |