Lines Matching +full:1 +full:- +full:512
1 // SPDX-License-Identifier: GPL-2.0
18 SPINAND_PAGE_READ_FROM_CACHE_X4_OP(0, 1, NULL, 0),
19 SPINAND_PAGE_READ_FROM_CACHE_X2_OP(0, 1, NULL, 0),
20 SPINAND_PAGE_READ_FROM_CACHE_FAST_OP(0, 1, NULL, 0),
21 SPINAND_PAGE_READ_FROM_CACHE_OP(0, 1, NULL, 0));
32 * Backward compatibility for 1st generation Serial NAND devices
45 return -ERANGE; in tx58cxgxsxraix_ooblayout_ecc()
47 region->offset = mtd->oobsize / 2; in tx58cxgxsxraix_ooblayout_ecc()
48 region->length = mtd->oobsize / 2; in tx58cxgxsxraix_ooblayout_ecc()
57 return -ERANGE; in tx58cxgxsxraix_ooblayout_free()
60 region->offset = 2; in tx58cxgxsxraix_ooblayout_free()
61 region->length = (mtd->oobsize / 2) - 2; in tx58cxgxsxraix_ooblayout_free()
76 struct spi_mem_op op = SPINAND_GET_FEATURE_OP(0x30, spinand->scratchbuf); in tx58cxgxsxraix_ecc_get_status()
83 return -EBADMSG; in tx58cxgxsxraix_ecc_get_status()
89 * in order to avoid forcing the wear-leveling layer to move in tx58cxgxsxraix_ecc_get_status()
92 if (spi_mem_exec_op(spinand->spimem, &op)) in tx58cxgxsxraix_ecc_get_status()
93 return nanddev_get_ecc_conf(nand)->strength; in tx58cxgxsxraix_ecc_get_status()
95 mbf = *(spinand->scratchbuf) >> 4; in tx58cxgxsxraix_ecc_get_status()
97 if (WARN_ON(mbf > nanddev_get_ecc_conf(nand)->strength || !mbf)) in tx58cxgxsxraix_ecc_get_status()
98 return nanddev_get_ecc_conf(nand)->strength; in tx58cxgxsxraix_ecc_get_status()
106 return -EINVAL; in tx58cxgxsxraix_ecc_get_status()
110 /* 3.3V 1Gb (1st generation) */
113 NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1),
114 NAND_ECCREQ(8, 512),
121 /* 3.3V 2Gb (1st generation) */
124 NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 1, 1, 1),
125 NAND_ECCREQ(8, 512),
132 /* 3.3V 4Gb (1st generation) */
135 NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 1, 1, 1),
136 NAND_ECCREQ(8, 512),
143 /* 1.8V 1Gb (1st generation) */
146 NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1),
147 NAND_ECCREQ(8, 512),
154 /* 1.8V 2Gb (1st generation) */
157 NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 1, 1, 1),
158 NAND_ECCREQ(8, 512),
165 /* 1.8V 4Gb (1st generation) */
168 NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 1, 1, 1),
169 NAND_ECCREQ(8, 512),
181 /* 3.3V 1Gb (2nd generation) */
184 NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1),
185 NAND_ECCREQ(8, 512),
195 NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 1, 1, 1),
196 NAND_ECCREQ(8, 512),
206 NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 1, 1, 1),
207 NAND_ECCREQ(8, 512),
217 NAND_MEMORG(1, 4096, 256, 64, 4096, 80, 1, 1, 1),
218 NAND_ECCREQ(8, 512),
225 /* 1.8V 1Gb (2nd generation) */
228 NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1),
229 NAND_ECCREQ(8, 512),
239 NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 1, 1, 1),
240 NAND_ECCREQ(8, 512),
250 NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 1, 1, 1),
251 NAND_ECCREQ(8, 512),
261 NAND_MEMORG(1, 4096, 256, 64, 4096, 80, 1, 1, 1),
262 NAND_ECCREQ(8, 512),
269 /* 1.8V 1Gb (1st generation) */
272 NAND_MEMORG(1, 2048, 128, 64, 1024, 20, 1, 1, 1),
273 NAND_ECCREQ(8, 512),
280 /* 1.8V 4Gb (1st generation) */
283 NAND_MEMORG(1, 2048, 128, 64, 4096, 80, 1, 2, 1),
284 NAND_ECCREQ(8, 512),
291 /* 1.8V 8Gb (1st generation) */
294 NAND_MEMORG(1, 4096, 256, 64, 4096, 80, 1, 1, 1),
295 NAND_ECCREQ(8, 512),