.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * mach-davinci/nand.h |
---|
3 | 4 | * |
---|
.. | .. |
---|
9 | 10 | * Dirk Behme <Dirk.Behme@gmail.com> |
---|
10 | 11 | * |
---|
11 | 12 | * -------------------------------------------------------------------------- |
---|
12 | | - * |
---|
13 | | - * This program is free software; you can redistribute it and/or modify |
---|
14 | | - * it under the terms of the GNU General Public License as published by |
---|
15 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
16 | | - * (at your option) any later version. |
---|
17 | | - * |
---|
18 | | - * This program is distributed in the hope that it will be useful, |
---|
19 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
20 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
21 | | - * GNU General Public License for more details. |
---|
22 | | - * |
---|
23 | | - * You should have received a copy of the GNU General Public License |
---|
24 | | - * along with this program; if not, write to the Free Software |
---|
25 | | - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
---|
26 | 13 | */ |
---|
27 | 14 | |
---|
28 | 15 | #ifndef __ARCH_ARM_DAVINCI_NAND_H |
---|
.. | .. |
---|
73 | 60 | struct mtd_partition *parts; |
---|
74 | 61 | unsigned nr_parts; |
---|
75 | 62 | |
---|
76 | | - /* none == NAND_ECC_NONE (strongly *not* advised!!) |
---|
77 | | - * soft == NAND_ECC_SOFT |
---|
78 | | - * else == NAND_ECC_HW, according to ecc_bits |
---|
| 63 | + /* none == NAND_ECC_ENGINE_TYPE_NONE (strongly *not* advised!!) |
---|
| 64 | + * soft == NAND_ECC_ENGINE_TYPE_SOFT |
---|
| 65 | + * else == NAND_ECC_ENGINE_TYPE_ON_HOST, according to ecc_bits |
---|
79 | 66 | * |
---|
80 | 67 | * All DaVinci-family chips support 1-bit hardware ECC. |
---|
81 | 68 | * Newer ones also support 4-bit ECC, but are awkward |
---|
82 | 69 | * using it with large page chips. |
---|
83 | 70 | */ |
---|
84 | | - nand_ecc_modes_t ecc_mode; |
---|
| 71 | + enum nand_ecc_engine_type engine_type; |
---|
| 72 | + enum nand_ecc_placement ecc_placement; |
---|
85 | 73 | u8 ecc_bits; |
---|
86 | 74 | |
---|
87 | 75 | /* e.g. NAND_BUSWIDTH_16 */ |
---|