hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/include/linux/platform_data/mtd-davinci.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * mach-davinci/nand.h
34 *
....@@ -9,20 +10,6 @@
910 * Dirk Behme <Dirk.Behme@gmail.com>
1011 *
1112 * --------------------------------------------------------------------------
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.
2613 */
2714
2815 #ifndef __ARCH_ARM_DAVINCI_NAND_H
....@@ -73,15 +60,16 @@
7360 struct mtd_partition *parts;
7461 unsigned nr_parts;
7562
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
7966 *
8067 * All DaVinci-family chips support 1-bit hardware ECC.
8168 * Newer ones also support 4-bit ECC, but are awkward
8269 * using it with large page chips.
8370 */
84
- nand_ecc_modes_t ecc_mode;
71
+ enum nand_ecc_engine_type engine_type;
72
+ enum nand_ecc_placement ecc_placement;
8573 u8 ecc_bits;
8674
8775 /* e.g. NAND_BUSWIDTH_16 */