Lines Matching full:onfi

12  * This file contains all ONFI helpers.
53 * Use the Change Read Column command to skip the ONFI param pages and in nand_flash_detect_ext_param_page()
71 * Do not strictly follow the ONFI spec, maybe changed in future. in nand_flash_detect_ext_param_page()
142 * Check if the NAND chip is ONFI compliant, returns 1 if it is, 0 otherwise.
150 struct onfi_params *onfi; in nand_onfi_detect() local
159 /* Try ONFI for unknown chip or LP */ in nand_onfi_detect()
161 if (ret || strncmp(id, "ONFI", 4)) in nand_onfi_detect()
164 /* ONFI chip: allocate a buffer to hold its parameter page */ in nand_onfi_detect()
203 pr_warn("Could not find a valid ONFI parameter page, trying bit-wise majority to recover it\n"); in nand_onfi_detect()
209 pr_err("ONFI parameter recovery failed, aborting\n"); in nand_onfi_detect()
233 pr_info("unsupported ONFI version: %d\n", val); in nand_onfi_detect()
291 /* The Extended Parameter Page is supported since ONFI 2.1. */ in nand_onfi_detect()
293 pr_warn("Failed to detect ONFI extended param page\n"); in nand_onfi_detect()
295 pr_warn("Could not retrieve ONFI ECC requirements\n"); in nand_onfi_detect()
307 onfi = kzalloc(sizeof(*onfi), GFP_KERNEL); in nand_onfi_detect()
308 if (!onfi) { in nand_onfi_detect()
313 onfi->version = onfi_version; in nand_onfi_detect()
314 onfi->tPROG = le16_to_cpu(p->t_prog); in nand_onfi_detect()
315 onfi->tBERS = le16_to_cpu(p->t_bers); in nand_onfi_detect()
316 onfi->tR = le16_to_cpu(p->t_r); in nand_onfi_detect()
317 onfi->tCCS = le16_to_cpu(p->t_ccs); in nand_onfi_detect()
318 onfi->fast_tCAD = le16_to_cpu(p->nvddr_nvddr2_features) & BIT(0); in nand_onfi_detect()
319 onfi->sdr_timing_modes = le16_to_cpu(p->sdr_timing_modes); in nand_onfi_detect()
321 onfi->nvddr_timing_modes = le16_to_cpu(p->nvddr_timing_modes); in nand_onfi_detect()
322 onfi->vendor_revision = le16_to_cpu(p->vendor_revision); in nand_onfi_detect()
323 memcpy(onfi->vendor, p->vendor, sizeof(p->vendor)); in nand_onfi_detect()
324 chip->parameters.onfi = onfi; in nand_onfi_detect()
326 /* Identification done, free the full ONFI parameter page and exit */ in nand_onfi_detect()