hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/include/linux/mtd/onenand.h
....@@ -1,12 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * linux/include/linux/mtd/onenand.h
34 *
45 * Copyright © 2005-2009 Samsung Electronics
56 * Kyungmin Park <kyungmin.park@samsung.com>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation.
107 */
118
129 #ifndef __LINUX_MTD_ONENAND_H
....@@ -94,6 +91,7 @@
9491 unsigned int technology;
9592 unsigned int density_mask;
9693 unsigned int options;
94
+ unsigned int badblockpos;
9795
9896 unsigned int erase_shift;
9997 unsigned int page_shift;
....@@ -188,6 +186,8 @@
188186 /* Check byte access in OneNAND */
189187 #define ONENAND_CHECK_BYTE_ACCESS(addr) (addr & 0x1)
190188
189
+#define ONENAND_BADBLOCK_POS 0
190
+
191191 /*
192192 * Options bits
193193 */