Commit bf02fd31 authored by Icenowy Zheng's avatar Icenowy Zheng
Browse files

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: default avatarIcenowy Zheng <icenowy@aosc.io>
parent 613e4bae
...@@ -49,6 +49,11 @@ spi_flash_info_t spi_flash_info[] = { ...@@ -49,6 +49,11 @@ spi_flash_info_t spi_flash_info[] = {
.small_erase_cmd = 0x20, .small_erase_size = 4 * 1024, .small_erase_cmd = 0x20, .small_erase_size = 4 * 1024,
.program_cmd = 0x02, .program_size = 256, .program_cmd = 0x02, .program_size = 256,
.text_description = "Macronix MX25Lxxxx" }, .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 = { spi_flash_info_t default_spi_flash_info = {
...@@ -471,6 +476,9 @@ void aw_fel_spiflash_info(feldev_handle *dev) ...@@ -471,6 +476,9 @@ void aw_fel_spiflash_info(feldev_handle *dev)
case 0xC2: case 0xC2:
manufacturer = "Macronix"; manufacturer = "Macronix";
break; break;
case 0x1C:
manufacturer = "Eon";
break;
default: default:
manufacturer = "Unknown"; manufacturer = "Unknown";
break; break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment