fel: SPI: add Eon support

Add the JEDEC manufacturer ID for Eon to the list of recognized
vendors, also add the EN25QH series to the list of supported chips.
Those chips are used on some internal boards with V831 from Sipeed now,
but the chips themselves are widely available on the market. Tag the
struct definition with the member names on the way to improve readability
of the SPI flash chip description.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
This commit is contained in:
Icenowy Zheng 2020-09-20 07:35:11 +08:00
parent 613e4bae5c
commit bf02fd31f5

View File

@ -49,6 +49,11 @@ spi_flash_info_t spi_flash_info[] = {
.small_erase_cmd = 0x20, .small_erase_size = 4 * 1024,
.program_cmd = 0x02, .program_size = 256,
.text_description = "Macronix MX25Lxxxx" },
{ .id = 0x1C70, .write_enable_cmd = 0x6,
.large_erase_cmd = 0xD8, .large_erase_size = 64 * 1024,
.small_erase_cmd = 0x20, .small_erase_size = 4 * 1024,
.program_cmd = 0x02, .program_size = 256,
.text_description = "Eon EN25QHxx" },
};
spi_flash_info_t default_spi_flash_info = {
@ -471,6 +476,9 @@ void aw_fel_spiflash_info(feldev_handle *dev)
case 0xC2:
manufacturer = "Macronix";
break;
case 0x1C:
manufacturer = "Eon";
break;
default:
manufacturer = "Unknown";
break;