Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/linux-sunxi/sunxi-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIcenowy Zheng <icenowy@aosc.io>2020-09-20 02:35:11 +0300
committerIcenowy Zheng <icenowy@aosc.io>2020-09-20 02:44:29 +0300
commitbf02fd31f5714e3d3321a8d30f157b88fcb9004c (patch)
treea4b684d1f0c3fde9898a23c3627debcd49c825ed /fel-spiflash.c
parent613e4bae5c00a3d7a8c21341b61fe45b4b522cf5 (diff)
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>
Diffstat (limited to 'fel-spiflash.c')
-rw-r--r--fel-spiflash.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fel-spiflash.c b/fel-spiflash.c
index 612c9a5..b0b514b 100644
--- a/fel-spiflash.c
+++ b/fel-spiflash.c
@@ -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;