Revert "REVONANO - Workaround for the SBUS issue (use oversample 8 instead of 16...
[librepilot.git] / flight / pios / inc / pios_flash_jedec_catalog.h
blobeae55063d9c910bbdcb7fd51f206f192a4fef58b
1 /**
2 ******************************************************************************
4 * @addtogroup PIOS PIOS Core hardware abstraction layer
5 * @{
6 * @addtogroup PIOS_FLASH JEDEC devices catalog
7 * @{
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
24 * for more details.
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[] =
39 { // m25p16
40 .expect_manufacturer = JEDEC_MANUFACTURER_ST,
41 .expect_memorytype = 0x20,
42 .expect_capacity = 0x15,
43 .sector_erase = 0xD8,
44 .chip_erase = 0xC7,
45 .fast_read = 0x0B,
46 .fast_read_dummy_bytes = 1,
48 { // m25px16
49 .expect_manufacturer = JEDEC_MANUFACTURER_ST,
50 .expect_memorytype = 0x71,
51 .expect_capacity = 0x15,
52 .sector_erase = 0xD8,
53 .chip_erase = 0xC7,
54 .fast_read = 0x0B,
55 .fast_read_dummy_bytes = 1,
57 { // w25x
58 .expect_manufacturer = JEDEC_MANUFACTURER_WINBOND,
59 .expect_memorytype = 0x30,
60 .expect_capacity = 0x13,
61 .sector_erase = 0x20,
62 .chip_erase = 0x60,
63 .fast_read = 0x0B,
64 .fast_read_dummy_bytes = 1,
66 { // 25q16
67 .expect_manufacturer = JEDEC_MANUFACTURER_WINBOND,
68 .expect_memorytype = 0x40,
69 .expect_capacity = 0x15,
70 .sector_erase = 0x20,
71 .chip_erase = 0x60,
72 .fast_read = 0x0B,
73 .fast_read_dummy_bytes = 1,
75 { // 25q512
76 .expect_manufacturer = JEDEC_MANUFACTURER_MICRON,
77 .expect_memorytype = 0xBA,
78 .expect_capacity = 0x20,
79 .sector_erase = 0xD8,
80 .chip_erase = 0xC7,
81 .fast_read = 0x0B,
82 .fast_read_dummy_bytes = 1,
84 { // 25q256
85 .expect_manufacturer = JEDEC_MANUFACTURER_NUMORIX,
86 .expect_memorytype = 0xBA,
87 .expect_capacity = 0x19,
88 .sector_erase = 0xD8,
89 .chip_erase = 0xC7,
90 .fast_read = 0x0B,
91 .fast_read_dummy_bytes = 1,
93 { // 25q128
94 .expect_manufacturer = JEDEC_MANUFACTURER_MICRON,
95 .expect_memorytype = 0xBA,
96 .expect_capacity = 0x18,
97 .sector_erase = 0xD8,
98 .chip_erase = 0xC7,
99 .fast_read = 0x0B,
100 .fast_read_dummy_bytes = 1,
103 const uint32_t pios_flash_jedec_catalog_size = NELEMENTS(pios_flash_jedec_catalog);
106 #endif /* PIOS_FLASH_JEDEC_CATALOG_H_ */