mirror of
https://review.coreboot.org/flashrom.git
synced 2025-09-29 15:54:56 +02:00

Change-Id: I13f1a33de0fbc9ffd7fb24207be0dfd3f04c0bbf Signed-off-by: Antonio Vázquez <antoniovazquezblanco@gmail.com> Signed-off-by: Anastasia Klimchuk <aklm@flashrom.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/89265 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
184 lines
4.8 KiB
C
184 lines
4.8 KiB
C
/*
|
|
* This file is part of the flashrom project.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
* SPDX-FileCopyrightText: 2000 Silicon Integrated System Corporation
|
|
* SPDX-FileCopyrightText: 2004 Tyan Corp
|
|
* SPDX-FileCopyrightText: 2005-2008 coresystems GmbH <stepan@openbios.org>
|
|
* SPDX-FileCopyrightText: 2006-2009 Carl-Daniel Hailfinger
|
|
* SPDX-FileCopyrightText: 2009 Sean Nelson <audiohacked@gmail.com>
|
|
* SPDX-FileCopyrightText: 2025 Antonio Vázquez Blanco <antoniovazquezblanco@gmail.com>
|
|
*/
|
|
|
|
{
|
|
.vendor = "PUYA",
|
|
.name = "P25Q06H",
|
|
.bustype = BUS_SPI,
|
|
.manufacture_id = PUYA_ID,
|
|
.model_id = PUYA_P25Q06H,
|
|
.total_size = 64,
|
|
.page_size = 256,
|
|
/* supports SFDP */
|
|
/* OTP: 3 x 512 bytes */
|
|
.feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
|
|
.tested = TEST_UNTESTED,
|
|
.probe = PROBE_SPI_RDID,
|
|
.probe_timing = TIMING_ZERO,
|
|
.block_erasers =
|
|
{
|
|
{
|
|
.eraseblocks = { {256, 256} },
|
|
.block_erase = SPI_BLOCK_ERASE_81,
|
|
}, {
|
|
.eraseblocks = { {4 * 1024, 16} },
|
|
.block_erase = SPI_BLOCK_ERASE_20,
|
|
}, {
|
|
.eraseblocks = { {32 * 1024, 2} },
|
|
.block_erase = SPI_BLOCK_ERASE_52,
|
|
}, {
|
|
.eraseblocks = { {64 * 1024, 1} },
|
|
.block_erase = SPI_BLOCK_ERASE_D8,
|
|
}, {
|
|
.eraseblocks = { {64 * 1024, 1} },
|
|
.block_erase = SPI_BLOCK_ERASE_60,
|
|
}, {
|
|
.eraseblocks = { {64 * 1024, 1} },
|
|
.block_erase = SPI_BLOCK_ERASE_C7,
|
|
}
|
|
},
|
|
.printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP4_SRWD,
|
|
.unlock = SPI_DISABLE_BLOCKPROTECT_BP4_SRWD,
|
|
.write = SPI_CHIP_WRITE256,
|
|
.read = SPI_CHIP_READ,
|
|
.voltage = {2300, 3600},
|
|
},
|
|
|
|
{
|
|
.vendor = "PUYA",
|
|
.name = "P25Q11H",
|
|
.bustype = BUS_SPI,
|
|
.manufacture_id = PUYA_ID,
|
|
.model_id = PUYA_P25Q11H,
|
|
.total_size = 128,
|
|
.page_size = 256,
|
|
/* supports SFDP */
|
|
/* OTP: 3 x 512 bytes */
|
|
.feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
|
|
.tested = TEST_UNTESTED,
|
|
.probe = PROBE_SPI_RDID,
|
|
.probe_timing = TIMING_ZERO,
|
|
.block_erasers =
|
|
{
|
|
{
|
|
.eraseblocks = { {256, 512} },
|
|
.block_erase = SPI_BLOCK_ERASE_81,
|
|
}, {
|
|
.eraseblocks = { {4 * 1024, 32} },
|
|
.block_erase = SPI_BLOCK_ERASE_20,
|
|
}, {
|
|
.eraseblocks = { {32 * 1024, 4} },
|
|
.block_erase = SPI_BLOCK_ERASE_52,
|
|
}, {
|
|
.eraseblocks = { {64 * 1024, 2} },
|
|
.block_erase = SPI_BLOCK_ERASE_D8,
|
|
}, {
|
|
.eraseblocks = { {128 * 1024, 1} },
|
|
.block_erase = SPI_BLOCK_ERASE_60,
|
|
}, {
|
|
.eraseblocks = { {128 * 1024, 1} },
|
|
.block_erase = SPI_BLOCK_ERASE_C7,
|
|
}
|
|
},
|
|
.printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP4_SRWD,
|
|
.unlock = SPI_DISABLE_BLOCKPROTECT_BP4_SRWD,
|
|
.write = SPI_CHIP_WRITE256,
|
|
.read = SPI_CHIP_READ,
|
|
.voltage = {2300, 3600},
|
|
},
|
|
|
|
{
|
|
.vendor = "PUYA",
|
|
.name = "P25Q21H",
|
|
.bustype = BUS_SPI,
|
|
.manufacture_id = PUYA_ID,
|
|
.model_id = PUYA_P25Q21H,
|
|
.total_size = 256,
|
|
.page_size = 256,
|
|
/* supports SFDP */
|
|
/* OTP: 3 x 512 bytes */
|
|
.feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
|
|
.tested = TEST_OK_PREW,
|
|
.probe = PROBE_SPI_RDID,
|
|
.probe_timing = TIMING_ZERO,
|
|
.block_erasers =
|
|
{
|
|
{
|
|
.eraseblocks = { {256, 1024} },
|
|
.block_erase = SPI_BLOCK_ERASE_81,
|
|
}, {
|
|
.eraseblocks = { {4 * 1024, 64} },
|
|
.block_erase = SPI_BLOCK_ERASE_20,
|
|
}, {
|
|
.eraseblocks = { {32 * 1024, 8} },
|
|
.block_erase = SPI_BLOCK_ERASE_52,
|
|
}, {
|
|
.eraseblocks = { {64 * 1024, 4} },
|
|
.block_erase = SPI_BLOCK_ERASE_D8,
|
|
}, {
|
|
.eraseblocks = { {256 * 1024, 1} },
|
|
.block_erase = SPI_BLOCK_ERASE_60,
|
|
}, {
|
|
.eraseblocks = { {256 * 1024, 1} },
|
|
.block_erase = SPI_BLOCK_ERASE_C7,
|
|
}
|
|
},
|
|
.printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP4_SRWD,
|
|
.unlock = SPI_DISABLE_BLOCKPROTECT_BP4_SRWD,
|
|
.write = SPI_CHIP_WRITE256,
|
|
.read = SPI_CHIP_READ,
|
|
.voltage = {2300, 3600},
|
|
},
|
|
|
|
{
|
|
.vendor = "PUYA",
|
|
.name = "P25D80H",
|
|
.bustype = BUS_SPI,
|
|
.manufacture_id = PUYA_ID,
|
|
.model_id = PUYA_P25D80H,
|
|
.total_size = 1024,
|
|
.page_size = 256,
|
|
/* supports SFDP */
|
|
/* OTP: 3 x 512 bytes */
|
|
.feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_SCUR | FEATURE_CFGR,
|
|
.tested = TEST_OK_PREW,
|
|
.probe = PROBE_SPI_RDID,
|
|
.probe_timing = TIMING_ZERO,
|
|
.block_erasers =
|
|
{
|
|
{
|
|
.eraseblocks = { {256, 4096} },
|
|
.block_erase = SPI_BLOCK_ERASE_81,
|
|
}, {
|
|
.eraseblocks = { {4 * 1024, 256} },
|
|
.block_erase = SPI_BLOCK_ERASE_20,
|
|
}, {
|
|
.eraseblocks = { {32 * 1024, 32} },
|
|
.block_erase = SPI_BLOCK_ERASE_52,
|
|
}, {
|
|
.eraseblocks = { {64 * 1024, 16} },
|
|
.block_erase = SPI_BLOCK_ERASE_D8,
|
|
}, {
|
|
.eraseblocks = { {1024 * 1024, 1} },
|
|
.block_erase = SPI_BLOCK_ERASE_60,
|
|
}, {
|
|
.eraseblocks = { {1024 * 1024, 1} },
|
|
.block_erase = SPI_BLOCK_ERASE_C7,
|
|
}
|
|
},
|
|
.printlock = SPI_PRETTYPRINT_STATUS_REGISTER_BP4_SRWD,
|
|
.unlock = SPI_DISABLE_BLOCKPROTECT_BP4_SRWD,
|
|
.write = SPI_CHIP_WRITE256,
|
|
.read = SPI_CHIP_READ,
|
|
.voltage = {2300, 3600},
|
|
},
|