30 #ifndef PIOS_FLASH_JEDEC_H_
31 #define PIOS_FLASH_JEDEC_H_
37 #define JEDEC_MANUFACTURER_ANY 0x00
38 #define JEDEC_MANUFACTURER_ST 0x20
39 #define JEDEC_MANUFACTURER_MACRONIX 0xC2
40 #define JEDEC_MANUFACTURER_WINBOND 0xEF
41 #define JEDEC_MANUFACTURER_SPANSION 0x01
42 #define JEDEC_MANUFACTURER_MICRON 0x20
44 #define JEDEC_MEMORYTYPE_ANY 0x00
uint8_t expect_manufacturer
const struct pios_flash_driver pios_jedec_flash_driver
uint8_t expect_memorytype
int32_t PIOS_Flash_Jedec_Init(uintptr_t *flash_id, pios_spi_t spi_id, uint32_t slave_num, const struct pios_flash_jedec_cfg *cfg)
uint8_t data[XFER_BYTES_PER_PACKET]
int32_t PIOS_Flash_Jedec_ReadOTPData(uintptr_t chip_id, uint32_t chip_offset, uint8_t *data, uint16_t len)
static struct flyingpicmd_cfg_fa cfg
uint32_t PIOS_Flash_Jedec_GetCapacity(uintptr_t chip_id)