.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/include/linux/mtd/onenand.h |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright © 2005-2009 Samsung Electronics |
---|
5 | 6 | * 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. |
---|
10 | 7 | */ |
---|
11 | 8 | |
---|
12 | 9 | #ifndef __LINUX_MTD_ONENAND_H |
---|
.. | .. |
---|
94 | 91 | unsigned int technology; |
---|
95 | 92 | unsigned int density_mask; |
---|
96 | 93 | unsigned int options; |
---|
| 94 | + unsigned int badblockpos; |
---|
97 | 95 | |
---|
98 | 96 | unsigned int erase_shift; |
---|
99 | 97 | unsigned int page_shift; |
---|
.. | .. |
---|
188 | 186 | /* Check byte access in OneNAND */ |
---|
189 | 187 | #define ONENAND_CHECK_BYTE_ACCESS(addr) (addr & 0x1) |
---|
190 | 188 | |
---|
| 189 | +#define ONENAND_BADBLOCK_POS 0 |
---|
| 190 | + |
---|
191 | 191 | /* |
---|
192 | 192 | * Options bits |
---|
193 | 193 | */ |
---|