2 ******************************************************************************
4 * @addtogroup PIOS PIOS Core hardware abstraction layer
6 * @addtogroup PIOS_FLASH JEDEC devices catalog
9 * @file pios_flash_jedec_catalog.h
10 * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2013.
11 * @brief Driver for talking to most JEDEC flash chips
12 * @see The GNU Public License (GPL) Version 3
14 *****************************************************************************/
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 3 of the License, or
19 * (at your option) any later version.
21 * This program is distributed in the hope that it will be useful, but
22 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
23 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
26 * You should have received a copy of the GNU General Public License along
27 * with this program; if not, write to the Free Software Foundation, Inc.,
28 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32 #ifndef PIOS_FLASH_JEDEC_CATALOG_H_
33 #define PIOS_FLASH_JEDEC_CATALOG_H_
34 #include <pios_flash_jedec_priv.h>
36 // this structure contains the catalog of all "known" flash chip used
37 const struct pios_flash_jedec_cfg pios_flash_jedec_catalog
[] =
40 .expect_manufacturer
= JEDEC_MANUFACTURER_ST
,
41 .expect_memorytype
= 0x20,
42 .expect_capacity
= 0x15,
46 .fast_read_dummy_bytes
= 1,
49 .expect_manufacturer
= JEDEC_MANUFACTURER_ST
,
50 .expect_memorytype
= 0x71,
51 .expect_capacity
= 0x15,
55 .fast_read_dummy_bytes
= 1,
58 .expect_manufacturer
= JEDEC_MANUFACTURER_WINBOND
,
59 .expect_memorytype
= 0x30,
60 .expect_capacity
= 0x13,
64 .fast_read_dummy_bytes
= 1,
67 .expect_manufacturer
= JEDEC_MANUFACTURER_WINBOND
,
68 .expect_memorytype
= 0x40,
69 .expect_capacity
= 0x15,
73 .fast_read_dummy_bytes
= 1,
76 .expect_manufacturer
= JEDEC_MANUFACTURER_WINBOND
,
77 .expect_memorytype
= 0x40,
78 .expect_capacity
= 0x17,
82 .fast_read_dummy_bytes
= 1,
85 .expect_manufacturer
= JEDEC_MANUFACTURER_MICRON
,
86 .expect_memorytype
= 0xBA,
87 .expect_capacity
= 0x20,
91 .fast_read_dummy_bytes
= 1,
94 .expect_manufacturer
= JEDEC_MANUFACTURER_NUMORIX
,
95 .expect_memorytype
= 0xBA,
96 .expect_capacity
= 0x19,
100 .fast_read_dummy_bytes
= 1,
103 .expect_manufacturer
= JEDEC_MANUFACTURER_MICRON
,
104 .expect_memorytype
= 0xBA,
105 .expect_capacity
= 0x18,
106 .sector_erase
= 0xD8,
109 .fast_read_dummy_bytes
= 1,
112 const uint32_t pios_flash_jedec_catalog_size
= NELEMENTS(pios_flash_jedec_catalog
);
115 #endif /* PIOS_FLASH_JEDEC_CATALOG_H_ */