SPI: add flash ID [1/3]

PD#SWPL-202773

Problem:
need nor flash support.

Solution:
add id support.

Verify:
T5W

Signed-off-by: Wenbing Yu <wenbing.yu@amlogic.com>
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
Change-Id: I0c2c11139a32aa03d46ff3ca70c7c2e0368667f2
Signed-off-by: Wayne Zhang <wayne.zhang@amlogic.com>
This commit is contained in:
Wayne Zhang
2025-02-21 09:04:47 +00:00
committed by Dongjin Kim
parent 43ff01f1bb
commit 9857ce4dc1
3 changed files with 9 additions and 0 deletions

View File

@@ -50,6 +50,9 @@ static const struct flash_info gigadevice_parts[] = {
SPI_NOR_4B_OPCODES | SPI_NOR_HAS_LOCK |
SPI_NOR_HAS_TB | SPI_NOR_TB_SR_BIT6)
.fixups = &gd25q256_fixups },
#ifdef CONFIG_AMLOGIC_MODIFY
{ "GD25Q40C", INFO(0xC84013, 0x0, 64 * 1024, 8, SECT_4K) },
#endif
};
const struct spi_nor_manufacturer spi_nor_gigadevice = {

View File

@@ -87,6 +87,9 @@ static const struct flash_info macronix_parts[] = {
{ "mx66u2g45g", INFO(0xc2253c, 0, 64 * 1024, 4096,
SECT_4K | SPI_NOR_DUAL_READ |
SPI_NOR_QUAD_READ | SPI_NOR_4B_OPCODES) },
#ifdef CONFIG_AMLOGIC_MODIFY
{ "MX25V4035F", INFO(0xC22313, 0x0, 64 * 1024, 8, 0)},
#endif
};
static void macronix_default_init(struct spi_nor *nor)

View File

@@ -102,6 +102,9 @@ static const struct flash_info winbond_parts[] = {
SECT_4K | SPI_NOR_QUAD_READ | SPI_NOR_DUAL_READ) },
{ "w25q512jvq", INFO(0xef4020, 0, 64 * 1024, 1024,
SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
#ifdef CONFIG_AMLOGIC_MODIFY
{ "W25X40CL", INFO(0xEF3013, 0x0, 64 * 1024, 8, SECT_4K) },
#endif
};
/**