Merge pull request #141 from Icenowy/eon-flash

fel: SPI: add Eon support
This commit is contained in:
Chen-Yu Tsai 2020-09-29 14:20:16 +08:00 committed by GitHub
commit 2783524e6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 = {
@ -472,6 +477,9 @@ void aw_fel_spiflash_info(feldev_handle *dev)
case 0xC2:
manufacturer = "Macronix";
break;
case 0x1C:
manufacturer = "Eon";
break;
default:
manufacturer = "Unknown";
break;