# Example SPI flash-model-list INI file.
# For EC chips using external SPI flash such as KB39XX,
# use /fl to specify the INI file, for example:
#     EcFlash.exe /idx 380 /w bin_file /v /fl ExampleFlashList.ini
# If /fl not specified, a built-in flash-model-list is used.

###Example###
[0x123456]                  # [Device ID & Manufacture]
  ## Required items
FLASH       = "Example"     # Flash model name
FLASH_SIZE  = 128           # Flash size in KBytes
SECTOR_SIZE = 4096          # Sector size in Bytes, for CMD_SECTOR_ERASE
  ## Optional items. If not specified default values are used.
#                   Default value:
# CMD_CHIP_ERASE    = 0xC7
# CMD_SECTOR_ERASE  = 0x20 # or 0x21 if FLASH_SIZE > 16384 KB (i.e., 16MB)
# CMD_PROG          = 0x02 # or 0x12 if FLASH_SIZE > 16384 KB (i.e., 16MB)
# CMD_READ          = 0x0B # or 0x0C if FLASH_SIZE > 16384 KB (i.e., 16MB)
# CMD_WRITE_STAT_EN = N/A  # Enable-Write-Status-Register(EWSR) CMD, specify it only if required by the device
# Tbp               = N/A  # Byte/AAI-byte/AAI-word Program Time (us), specify it only if required by the device

###AMIC###
[0x3730]                    # [Device ID & Manufacture]
FLASH       = "A25L010"     # Flash model name
FLASH_SIZE  = 128           # Flash size in KBytes
SECTOR_SIZE = 4096          # Sector size in Bytes, for CMD_SECTOR_ERASE

CMD_WRITE_STAT_EN = 0x06    # Enable-Write-Status-Register(EWSR) CMD, required by this device

###MXIC###
[0xC22019]                  # [Device ID & Manufacture]
FLASH       = "MX25L25645G" # Flash model name
FLASH_SIZE  = 32768         # Flash size in KBytes
SECTOR_SIZE = 4096          # Sector size in Bytes, for CMD_SECTOR_ERASE

[0xC22011]                  # [Device ID & Manufacture]
FLASH       = "MX25L1005"   # Flash model name
FLASH_SIZE  = 128           # Flash size in KBytes
SECTOR_SIZE = 4096          # Sector size in Bytes, for CMD_SECTOR_ERASE

[0xC22013]                  # [Device ID & Manufacture]
FLASH       = "MX25L4005"   # Flash model name
FLASH_SIZE  = 512           # Flash size in KBytes
SECTOR_SIZE = 4096          # Sector size in Bytes, for CMD_SECTOR_ERASE

[0xC22014]                  # [Device ID & Manufacture]
FLASH       = "MX25L8005"   # Flash model name
FLASH_SIZE  = 1024          # Flash size in KBytes
SECTOR_SIZE = 4096          # Sector size in Bytes, for CMD_SECTOR_ERASE

[0xC22015]                  # [Device ID & Manufacture]
FLASH       = "MX25L1605"   # Flash model name
FLASH_SIZE  = 2048          # Flash size in KBytes
SECTOR_SIZE = 4096          # Sector size in Bytes, for CMD_SECTOR_ERASE

###PMC###
[0x7F9D7E]                  # [Device ID & Manufacture]
FLASH       = "Pm25LV040A"  # Flash model name
FLASH_SIZE  = 512           # Flash size in KBytes
SECTOR_SIZE = 4096          # Sector size in Bytes, for CMD_SECTOR_ERASE

CMD_SECTOR_ERASE  = 0xD7

[0x7F9D7C]                  # [Device ID & Manufacture]
FLASH       = "Pm25LV010"   # Flash model name
FLASH_SIZE  = 128           # Flash size in KBytes
SECTOR_SIZE = 4096          # Sector size in Bytes, for CMD_SECTOR_ERASE

CMD_SECTOR_ERASE  = 0xD7

[0x7F9D21]                  # [Device ID & Manufacture]
FLASH       = "Pm25LD010C"  # Flash model name
FLASH_SIZE  = 128           # Flash size in KBytes
SECTOR_SIZE = 4096          # Sector size in Bytes, for CMD_SECTOR_ERASE

CMD_SECTOR_ERASE  = 0xD7

###SPANSION###
[0x010213]                  # [Device ID & Manufacture]
FLASH       = "SP25FL008A"  # Flash model name
FLASH_SIZE  = 1024          # Flash size in KBytes
SECTOR_SIZE = 4096          # Sector size in Bytes, for CMD_SECTOR_ERASE

CMD_SECTOR_ERASE  = 0xD8

###SST###
[0xBF258E]                  # [Device ID & Manufacture]
FLASH       = "SST25VF080B" # Flash model name
FLASH_SIZE  = 1024          # Flash size in KBytes
SECTOR_SIZE = 4096          # Sector size in Bytes, for CMD_SECTOR_ERASE

CMD_CHIP_ERASE    = 0x60
CMD_PROG          = 0xAD    # AAI
CMD_WRITE_STAT_EN = 0x50    # Enable-Write-Status-Register(EWSR) CMD, required by this device

[0xBF80]                    # [Device ID & Manufacture]
FLASH       = "SST25LF080A" # Flash model name
FLASH_SIZE  = 1024          # Flash size in KBytes
SECTOR_SIZE = 4096          # Sector size in Bytes, for CMD_SECTOR_ERASE

CMD_CHIP_ERASE    = 0x60    # Chip erase
CMD_PROG          = 0xAF    # AAI
CMD_WRITE_STAT_EN = 0x50    # Enable-Write-Status-Register(EWSR) CMD, required by this device
Tbp               = 14      # Byte/AAI-byte/AAI-word Program Time (us), required by this device

###TSI###
[0x373012]                  # [Device ID & Manufacture]
FLASH       = "TS25L020A"   # Flash model name
FLASH_SIZE  = 256           # Flash size in KBytes
SECTOR_SIZE = 4096          # Sector size in Bytes, for CMD_SECTOR_ERASE

CMD_WRITE_STAT_EN = 0x50    # Enable-Write-Status-Register(EWSR) CMD, required by this device

###WINBOND###
[0xEF3013]                   # [Device ID & Manufacture]
FLASH       = "W25X40"       # Flash model name
FLASH_SIZE  = 512            # Flash size in KBytes
SECTOR_SIZE = 4096           # Sector size in Bytes, for CMD_SECTOR_ERASE

[0xEF3014]                   # [Device ID & Manufacture]
FLASH       = "W25X80"       # Flash model name
FLASH_SIZE  = 1024           # Flash size in KBytes
SECTOR_SIZE = 4096           # Sector size in Bytes, for CMD_SECTOR_ERASE
