Now that we have moved the information to the chip level, let's remove all the unused flags and fields.
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -93,10 +93,7 @@ struct nand_bbt_descr { · 92 unmodified lines | |||
| 93 | #define NAND_BBT_WRITE 0x00002000 | 93 | #define NAND_BBT_WRITE 0x00002000 |
| 94 | /* Read and write back block contents when writing bbt */ | 94 | /* Read and write back block contents when writing bbt */ |
| 95 | #define NAND_BBT_SAVECONTENT 0x00004000 | 95 | #define NAND_BBT_SAVECONTENT 0x00004000 |
| 96 | /* Search good / bad pattern on the first and the second page */ | 96 | |
| 97 | #define NAND_BBT_SCAN2NDPAGE 0x00008000 | ||
| 98 | /* Search good / bad pattern on the last page of the eraseblock */ | ||
| 99 | #define NAND_BBT_SCANLASTPAGE 0x00010000 | ||
| 100 | /* | 97 | /* |
| 101 | * Use a flash based bad block table. By default, OOB identifier is saved in | 98 | * Use a flash based bad block table. By default, OOB identifier is saved in |
| 102 | * OOB area. This option is passed to the default bad block table function. | 99 | * OOB area. This option is passed to the default bad block table function. |
| @@ -123,13 +120,6 @@ struct nand_bbt_descr { · 20 unmodified lines | |||
| 123 | /* The maximum number of blocks to scan for a bbt */ | 120 | /* The maximum number of blocks to scan for a bbt */ |
| 124 | #define NAND_BBT_SCAN_MAXBLOCKS 4 | 121 | #define NAND_BBT_SCAN_MAXBLOCKS 4 |
| 125 | 122 | ||
| 126 | /* | ||
| 127 | * Constants for oob configuration | ||
| 128 | */ | ||
| 129 | #define NAND_SMALL_BADBLOCK_POS 5 | ||
| 130 | #define NAND_LARGE_BADBLOCK_POS 0 | ||
| 131 | #define ONENAND_BADBLOCK_POS 0 | ||
| 132 | |||
| 133 | /* | 123 | /* |
| 134 | * Bad block scanning errors | 124 | * Bad block scanning errors |
| 135 | */ | 125 | */ |
| @@ -140,7 +130,6 @@ struct nand_bbt_descr { · 4 unmodified lines | |||
| 140 | /** | 130 | /** |
| 141 | * struct bbm_info - [GENERIC] Bad Block Table data structure | 131 | * struct bbm_info - [GENERIC] Bad Block Table data structure |
| 142 | * @bbt_erase_shift: [INTERN] number of address bits in a bbt entry | 132 | * @bbt_erase_shift: [INTERN] number of address bits in a bbt entry |
| 143 | * @badblockpos: [INTERN] position of the bad block marker in the oob area | ||
| 144 | * @options: options for this descriptor | 133 | * @options: options for this descriptor |
| 145 | * @bbt: [INTERN] bad block table pointer | 134 | * @bbt: [INTERN] bad block table pointer |
| 146 | * @isbad_bbt: function to determine if a block is bad | 135 | * @isbad_bbt: function to determine if a block is bad |
| @@ -150,7 +139,6 @@ struct nand_bbt_descr { · 3 unmodified lines | |||
| 150 | */ | 139 | */ |
| 151 | struct bbm_info { | 140 | struct bbm_info { |
| 152 | int bbt_erase_shift; | 141 | int bbt_erase_shift; |
| 153 | int badblockpos; | ||
| 154 | int options; | 142 | int options; |
| 155 | 143 | ||
| 156 | uint8_t *bbt; | 144 | uint8_t *bbt; |