Lines Matching +full:40 +full:- +full:bit
1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2016-2017 Micron Technology, Inc.
21 #define MICRON_CFG_CR BIT(0)
24 * As per datasheet, die selection is done by the 6th bit of Die
64 return -ERANGE; in micron_8_ooblayout_ecc()
66 region->offset = mtd->oobsize / 2; in micron_8_ooblayout_ecc()
67 region->length = mtd->oobsize / 2; in micron_8_ooblayout_ecc()
76 return -ERANGE; in micron_8_ooblayout_free()
79 region->offset = 2; in micron_8_ooblayout_free()
80 region->length = (mtd->oobsize / 2) - 2; in micron_8_ooblayout_free()
95 if (section >= spinand->base.memorg.pagesize / in micron_4_ooblayout_ecc()
96 mtd->ecc_step_size) in micron_4_ooblayout_ecc()
97 return -ERANGE; in micron_4_ooblayout_ecc()
99 region->offset = (section * 16) + 8; in micron_4_ooblayout_ecc()
100 region->length = 8; in micron_4_ooblayout_ecc()
110 if (section >= spinand->base.memorg.pagesize / in micron_4_ooblayout_free()
111 mtd->ecc_step_size) in micron_4_ooblayout_free()
112 return -ERANGE; in micron_4_ooblayout_free()
115 region->offset = 16 * section; in micron_4_ooblayout_free()
116 region->length = 8; in micron_4_ooblayout_free()
119 region->offset = 2; in micron_4_ooblayout_free()
120 region->length = 6; in micron_4_ooblayout_free()
135 spinand->scratchbuf); in micron_select_target()
138 return -EINVAL; in micron_select_target()
140 *spinand->scratchbuf = MICRON_SELECT_DIE(target); in micron_select_target()
142 return spi_mem_exec_op(spinand->spimem, &op); in micron_select_target()
153 return -EBADMSG; in micron_8_ecc_get_status()
168 return -EINVAL; in micron_8_ecc_get_status()
175 NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 2, 1, 1),
186 NAND_MEMORG(1, 2048, 128, 64, 2048, 40, 2, 1, 1),
231 NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 1, 1, 1),
242 NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 1, 1, 1),
253 NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 1, 1, 2),
265 NAND_MEMORG(1, 4096, 256, 64, 2048, 40, 1, 1, 2),
289 * M70A device series enable Continuous Read feature at Power-up, in micron_spinand_init()
290 * which is not supported. Disable this bit to avoid any possible in micron_spinand_init()
293 if (spinand->flags & SPINAND_HAS_CR_FEAT_BIT) in micron_spinand_init()