|
| 1 | +/* |
| 2 | + spi_vendors.h - Vendor IDs for SPI chips |
| 3 | + Copyright (c) 2019 Mike Nix. All rights reserved. |
| 4 | + This file is part of the esp8266 core for Arduino environment. |
| 5 | +
|
| 6 | + This library is free software; you can redistribute it and/or |
| 7 | + modify it under the terms of the GNU Lesser General Public |
| 8 | + License as published by the Free Software Foundation; either |
| 9 | + version 2.1 of the License, or (at your option) any later version. |
| 10 | +
|
| 11 | + This library is distributed in the hope that it will be useful, |
| 12 | + but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 | + Lesser General Public License for more details. |
| 15 | +
|
| 16 | + You should have received a copy of the GNU Lesser General Public |
| 17 | + License along with this library; if not, write to the Free Software |
| 18 | + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 19 | + */ |
| 20 | + |
| 21 | +#ifndef __SPI_VENDORS_H__ |
| 22 | +#define __SPI_VENDORS_H__ |
| 23 | + |
| 24 | +// Vendor IDs taken from Flashrom project |
| 25 | +// https://review.coreboot.org/cgit/flashrom.git/tree/flashchips.h?h=1.0.x |
| 26 | +// Moved here from ../../cores/esp8266/Esp.h |
| 27 | +typedef enum { |
| 28 | + SPI_FLASH_VENDOR_ALLIANCE = 0x52, /* Alliance Semiconductor */ |
| 29 | + SPI_FLASH_VENDOR_AMD = 0x01, /* AMD */ |
| 30 | + SPI_FLASH_VENDOR_AMIC = 0x37, /* AMIC */ |
| 31 | + SPI_FLASH_VENDOR_ATMEL = 0x1F, /* Atmel (now used by Adesto) */ |
| 32 | + SPI_FLASH_VENDOR_BRIGHT = 0xAD, /* Bright Microelectronics */ |
| 33 | + SPI_FLASH_VENDOR_CATALYST = 0x31, /* Catalyst */ |
| 34 | + SPI_FLASH_VENDOR_EON = 0x1C, /* EON Silicon Devices, missing 0x7F prefix */ |
| 35 | + SPI_FLASH_VENDOR_ESMT = 0x8C, /* Elite Semiconductor Memory Technology (ESMT) / EFST Elite Flash Storage */ |
| 36 | + SPI_FLASH_VENDOR_EXCEL = 0x4A, /* ESI, missing 0x7F prefix */ |
| 37 | + SPI_FLASH_VENDOR_FIDELIX = 0xF8, /* Fidelix */ |
| 38 | + SPI_FLASH_VENDOR_FUJITSU = 0x04, /* Fujitsu */ |
| 39 | + SPI_FLASH_VENDOR_GIGADEVICE = 0xC8, /* GigaDevice */ |
| 40 | + SPI_FLASH_VENDOR_HYUNDAI = 0xAD, /* Hyundai */ |
| 41 | + SPI_FLASH_VENDOR_INTEL = 0x89, /* Intel */ |
| 42 | + SPI_FLASH_VENDOR_ISSI = 0xD5, /* ISSI Integrated Silicon Solutions, see also PMC. */ |
| 43 | + SPI_FLASH_VENDOR_MACRONIX = 0xC2, /* Macronix (MX) */ |
| 44 | + SPI_FLASH_VENDOR_NANTRONICS = 0xD5, /* Nantronics, missing prefix */ |
| 45 | + SPI_FLASH_VENDOR_PMC = 0x9D, /* PMC, missing 0x7F prefix */ |
| 46 | + SPI_FLASH_VENDOR_PUYA = 0x85, /* Puya semiconductor (shanghai) co. ltd */ |
| 47 | + SPI_FLASH_VENDOR_SANYO = 0x62, /* Sanyo */ |
| 48 | + SPI_FLASH_VENDOR_SHARP = 0xB0, /* Sharp */ |
| 49 | + SPI_FLASH_VENDOR_SPANSION = 0x01, /* Spansion, same ID as AMD */ |
| 50 | + SPI_FLASH_VENDOR_SST = 0xBF, /* SST */ |
| 51 | + SPI_FLASH_VENDOR_ST = 0x20, /* ST / SGS/Thomson / Numonyx (later acquired by Micron) */ |
| 52 | + SPI_FLASH_VENDOR_SYNCMOS_MVC = 0x40, /* SyncMOS (SM) and Mosel Vitelic Corporation (MVC) */ |
| 53 | + SPI_FLASH_VENDOR_TENX = 0x5E, /* Tenx Technologies */ |
| 54 | + SPI_FLASH_VENDOR_TI = 0x97, /* Texas Instruments */ |
| 55 | + SPI_FLASH_VENDOR_TI_OLD = 0x01, /* TI chips from last century */ |
| 56 | + SPI_FLASH_VENDOR_WINBOND = 0xDA, /* Winbond */ |
| 57 | + SPI_FLASH_VENDOR_WINBOND_NEX = 0xEF, /* Winbond (ex Nexcom) serial flashes */ |
| 58 | + SPI_FLASH_VENDOR_XMC = 0x20, /* Wuhan Xinxin Semiconductor Manufacturing Corp */ |
| 59 | + |
| 60 | + SPI_FLASH_VENDOR_UNKNOWN = 0xFF |
| 61 | +} SPI_FLASH_VENDOR_t; |
| 62 | + |
| 63 | +#endif // __SPI_VENDORS_H__ |
0 commit comments