| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/ |
| H A D | nand_onfi.c | 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() [all …]
|
| H A D | nand_timings.c | 16 * For non-ONFI chips we use the highest possible value for tPROG and tBERS. 17 * tR and tCCS will take the default values precised in the ONFI specification 20 * These four values are tweaked to be more accurate in the case of ONFI chips. 557 * onfi_find_closest_sdr_mode - Derive the closest ONFI SDR timing mode given a 605 * ONFI mode 609 * @timing_mode: The ONFI timing mode 616 struct onfi_params *onfi = chip->parameters.onfi; in onfi_fill_interface_config() local 629 * These information are part of the ONFI parameter page. in onfi_fill_interface_config() 631 if (onfi) { in onfi_fill_interface_config() 635 timings->tPROG_max = 1000000ULL * onfi->tPROG; in onfi_fill_interface_config() [all …]
|
| H A D | nand_micron.c | 77 * Configure chip properties from Micron vendor-specific ONFI table 83 if (p->onfi) { in micron_nand_onfi_init() 84 struct nand_onfi_vendor_micron *micron = (void *)p->onfi->vendor; in micron_nand_onfi_init() 421 if (!chip->parameters.onfi) in micron_supports_on_die_ecc() 588 * revision number field of the ONFI parameter page. Assume ONFI in micron_fixup_onfi_param_page()
|
| H A D | internals.h | 44 * @fixup_onfi_param_page: apply vendor specific fixups to the ONFI parameter 162 /* ONFI functions */
|
| H A D | nand_macronix.c | 99 if (!p->onfi) in macronix_nand_onfi_init() 105 mxic = (struct nand_onfi_vendor_macronix *)p->onfi->vendor; in macronix_nand_onfi_init()
|
| H A D | nand_legacy.c | 92 * a byte. The ONFi spec (Revision 3.1; 2012-09-19, Section 2.16) reads: in nand_write_byte16() 321 /* EZ-NAND can take upto 250ms as per ONFi v4.0 */ in nand_command() 461 /* EZ-NAND can take upto 250ms as per ONFi v4.0 */ in nand_command_lp()
|
| H A D | nand_jedec.c | 12 * This file contains all ONFI helpers.
|
| /OK3568_Linux_fs/kernel/include/linux/mtd/ |
| H A D | onfi.h | 7 * Contains all ONFI related definitions 15 /* ONFI version bits */ 26 /* ONFI features */ 30 /* ONFI timing mode, used in both asynchronous and synchronous mode */ 39 /* ONFI feature number/address */ 48 /* ONFI subfeature parameters length */ 51 /* ONFI optional commands SET/GET FEATURES supported? */ 62 __le16 ext_param_page_length; /* since ONFI 2.1 */ 63 u8 num_of_param_pages; /* since ONFI 2.1 */ 122 /* Extended ECC information Block Definition (since ONFI 2.1) */ [all …]
|
| H A D | rawnand.h | 22 #include <linux/mtd/onfi.h> 158 * Autodetect nand buswidth with readid/onfi. 228 * @onfi: ONFI specific parameters 237 /* ONFI parameters */ 238 struct onfi_params *onfi; member 390 * meaning are described in the ONFI specifications: 391 * www.onfi.org/~/media/ONFI/specs/onfi_3_1_spec.pdf (chapter 4.15 Timing 482 * meaning are described in the ONFI specifications: 483 * https://media-www.micron.com/-/media/client/onfi/specs/onfi_4_1_gold.pdf 662 * Please note that "in" and "out" are inverted from the ONFI specification
|
| /OK3568_Linux_fs/u-boot/arch/arm/mach-uniphier/boot-device/ |
| H A D | boot-device-pro5.c | 32 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 8, ONFI, Addr 5)"}, 33 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 16, ONFI, Addr 5)"}, 34 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 8, ONFI, Addr 4)"}, 35 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 16, ONFI, Addr 4)"}, 36 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 8, ONFI, Addr 5)"}, 37 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 16, ONFI, Addr 5)"}, 38 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 8, ONFI, Addr 4)"}, 39 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 16, ONFI, Addr 4)"},
|
| H A D | boot-device-ld4.c | 33 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 8, ONFI, Addr 4)"}, 34 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 8, ONFI, Addr 5)"}, 35 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 16, ONFI, Addr 5)"}, 36 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 24, ONFI, Addr 5)"}, 37 {BOOT_DEVICE_NAND, "NAND (Mirror 4, ECC 24, ONFI, Addr 5)"}, 38 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 8, ONFI, Addr 5)"}, 39 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 16, ONFI, Addr 5)"}, 40 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 24, ONFI, Addr 5)"},
|
| H A D | boot-device-pxs2.c | 32 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 8, ONFI, Addr 4)"}, 33 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 8, ONFI, Addr 5)"}, 34 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 16, ONFI, Addr 5)"}, 35 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 16, ONFI, Addr 4)"}, 37 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 8, ONFI, Addr 5)"}, 38 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 16, ONFI, Addr 5)"}, 39 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 8, ONFI, Addr 4)"}, 40 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 16, ONFI, Addr 4)"},
|
| H A D | boot-device-ld11.c | 32 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 8, ONFI, Addr 4)"}, 33 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 16, ONFI, Addr 4)"}, 34 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 8, ONFI, Addr 5)"}, 35 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 16, ONFI, Addr 5)"}, 36 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 8, ONFI Addr 4)"}, 37 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 16, ONFI Addr 4)"}, 38 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 8, ONFI Addr 5)"}, 39 {BOOT_DEVICE_NAND, "NAND (Mirror 1, ECC 16, ONFI Addr 5)"},
|
| H A D | boot-device-pxs3.c | 23 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 8, ONFI, Addr 5)"}, 24 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 16, ONFI, Addr 5)"}, 31 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 8, ONFI, Addr 5, BBM Last Page)"}, 32 {BOOT_DEVICE_NAND, "NAND (Mirror 8, ECC 16, ONFI, Addr 5, BBM Last Page)"},
|
| /OK3568_Linux_fs/u-boot/include/linux/mtd/ |
| H A D | rawnand.h | 234 * Autodetect nand buswidth with readid/onfi. 257 /* ONFI features */ 261 /* ONFI timing mode, used in both asynchronous and synchronous mode */ 270 /* ONFI feature address */ 276 /* ONFI subfeature parameters length */ 279 /* ONFI optional commands SET/GET FEATURES supported? */ 290 __le16 ext_param_page_length; /* since ONFI 2.1 */ 291 u8 num_of_param_pages; /* since ONFI 2.1 */ 350 /* Extended ECC information Block Definition (since ONFI 2.1) */ 369 /* Extended Parameter Page Definition (since ONFI 2.1) */ [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/ |
| H A D | nand_timings.c | 272 * timings according to the given ONFI timing mode 273 * @mode: ONFI timing mode 286 * given ONFI mode 288 * @mode: The ONFI timing mode 306 * These information are part of the ONFI parameter page. in onfi_init_data_interface()
|
| H A D | atmel_nand.c | 684 * pmecc_choose_ecc - Get ecc requirement from ONFI parameters. If 686 * ONFI ECC parameters. 688 * if host->pmecc_corr_cap is 0 then set it as the ONFI ecc_bits. 689 * if host->pmecc_sector_size is 0 then set it as the ONFI sector_size. 691 * @cap: store the ONFI ECC correct bits capbility 692 * @sector_size: in how many bytes that ONFI require to correct @ecc_bits 700 /* Get ECC requirement from ONFI parameters */ in pmecc_choose_ecc() 705 pr_debug("ONFI params, minimum required ECC: %d bits in %d bytes\n", in pmecc_choose_ecc() 710 /* Non-ONFI compliant */ in pmecc_choose_ecc() 711 dev_info(host->dev, "NAND chip is not ONFI compliant, assume ecc_bits is 2 in 512 bytes\n"); in pmecc_choose_ecc() [all …]
|
| H A D | mxs_nand_spl.c | 55 /* Trying to detect the NAND flash using ONFi, JEDEC, and (extended) IDs */ 74 /* Trying to detect the NAND flash using ONFi only */ 103 /* read ONFI */ in mxs_flash_onfi_ident() 111 /* we have ONFI, probe it */ in mxs_flash_onfi_ident()
|
| H A D | Kconfig | 350 determined by reading ONFI params. 352 be determined from on-chip ONFI params, like in following scenarios: 353 - SPL boot does not support reading of ONFI parameters. This is done to 357 (nand_scan_ident + nand_scan_tail), thus device's ONFI parameters are
|
| H A D | nand_base.c | 229 * a byte. The ONFi spec (Revision 3.1; 2012-09-19, Section 2.16) reads: in nand_write_byte16() 679 /* EZ-NAND can take upto 250ms as per ONFi v4.0 */ in nand_command() 777 /* EZ-NAND can take upto 250ms as per ONFi v4.0 */ in nand_command_lp() 940 * Reset the Data interface and timings to ONFI mode 0. 954 * The ONFI specification says: in nand_reset_data_interface() 982 * First tries to retrieve supported timing modes from ONFI information, 983 * and if the NAND chip does not support ONFI, relies on the 1023 * First tries to retrieve supported timing modes from ONFI information, 1024 * and if the NAND chip does not support ONFI, relies on the 1040 * First try to identify the best timings from ONFI parameters and in nand_init_data_interface() [all …]
|
| /OK3568_Linux_fs/kernel/arch/sh/include/cpu-sh4/cpu/ |
| H A D | sh7757.h | 116 /* PTB (mobule: INTC, ONFI, TMU) */ 247 /* PTZ (mobule: eMMC, ONFI) */
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mtd/ |
| H A D | arasan,nand-controller.yaml | 7 title: Arasan NAND Flash Controller with ONFI 3.1 support device tree bindings
|
| H A D | gpmi-nand.yaml | 83 flash (e.g., according to the ONFI standard). However, note that
|
| /OK3568_Linux_fs/u-boot/include/configs/ |
| H A D | ls2080a_simu.h | 96 /* ONFI NAND Flash mode0 Timing Params */
|
| /OK3568_Linux_fs/u-boot/doc/ |
| H A D | README.nand | 179 Enables detection of ONFI compliant devices during probe. 181 ONFI parameter page.
|