Lines Matching +full:4 +full:- +full:byte
4 * SPDX-License-Identifier: Apache-2.0
23 * https://www.jedec.org/standards-documents/docs/jesd216b
35 uint8_t len_dw; /* Length of table in 32-bit DWORDs */
43 return sizeof(uint32_t) * hp->len_dw; in jesd216_param_len()
49 return ((uint16_t)hp->id_msb << 8) | hp->id_lsb; in jesd216_param_id()
57 return ((hp->ptp[2] << 16) in jesd216_param_addr()
58 | (hp->ptp[1] << 8) in jesd216_param_addr()
59 | (hp->ptp[0] << 0)); in jesd216_param_addr()
75 /* The expected value from the jesd216_sfdp::magic field in host byte
80 /* All JESD216 data is read from the device in little-endian byte
81 * order. For JEDEC parameter tables defined through JESD216D-01 the
82 * parameters are defined by 32-bit words that may need to be
83 * byte-swapped to extract their information.
85 * A 16-bit ID from the parameter header is used to identify the
90 /* JESD216D-01 section 6.4: Basic Flash Parameter */
92 /* JESD216D-01 section 6.5: Sector Map Parameter */
94 /* JESD216D-01 section 6.6: 4-Byte Address Instruction Parameter */
96 /* JESD216D-01 section 6.7: xSPI (Profile 1.0) Parameter */
98 /* JESD216D-01 section 6.8: xSPI (Profile 2.0) Parameter */
112 /** Extract the magic number from the SFDP structure in host byte order.
119 return sys_le32_to_cpu(hp->magic); in jesd216_sfdp_magic()
127 * All values are expected to be stored as little-endian and must be
128 * converted to host byte order to extract the bit fields defined in
129 * the standard. Rather than pre-define layouts to access to all
133 * Must be aligned to a DWORD (32-bit) address according to JESD216F.
146 } __aligned(4);
148 /* Provide a few word-specific flags and bitfield ranges for values
162 #define JESD216_SFDP_BFP_DW1_WEISWVSR_FLG BIT(4)
177 * * DW3-DW7 (instr) use jesd216_bfp_read_support().
178 * * DW8-DW9 (erase types) use jesd216_bfp_erase().
184 * * DW12-13 (suspend/resume) no API except
187 * * DW15-16 no API except jesd216_bfp_read_support().
190 * * DW17-20 (quad/oct support) no API except jesd216_bfp_read_support().
196 uint32_t dw1 = sys_le32_to_cpu(hp->dw1); in jesd216_bfp_addrbytes()
206 uint32_t dw = sys_le32_to_cpu(hp->dw2); in jesd216_bfp_density()
218 * 2, 4, or 8 I/O signals. The data rate may be single or double.
264 * indication of support for 1-1-1 Fast Read (0Bh).
282 * @retval -ENOTSUP if instruction is not supported.
294 /* The value N when the erase operation erases a 2^N byte
303 #define JESD216_NUM_ERASE_TYPES 4
309 * @param idx the erase type index, from 1 through 4. Only index 1 is
315 * @retval -EINVAL if the erase type index is undefined.
327 * @param idx the erase type index, from 1 through 4. For meaningful
334 * @retval -ENOTSUP if the erase type index is undefined.
356 if (php->len_dw < 11) { in jesd216_bfp_page_size()
360 uint32_t dw11 = sys_le32_to_cpu(bfp->dw10[1]); in jesd216_bfp_page_size()
361 uint8_t exp = (dw11 >> 4) & 0x0F; in jesd216_bfp_page_size()
371 /* Typical time for first byte program, in microseconds */
374 /* Typical time per byte for byte program after first, in
397 * @retval -ENOTSUP if this information is not available from this BFP table.
406 /* Instruction used to enter deep power-down */
409 /* Instruction used to exit deep power-down */
429 * @retval -ENOTSUP if this information is not available from this BFP table.
442 /* No QE status required for 1-1-4 or 1-4-4 mode */
445 /* Bit 6 of SR byte must be set to enable 1-1-4 or 1-4-4 mode.
446 * SR is one byte.
450 JESD216_DW15_QER_S2B1v4 = 4,
459 #define JESD216_DW15_QER_VAL_S2B1v4 4
465 /* If true clear NVECR bit 4 to disable HOLD/RESET */
469 /* 0-4-4 mode entry method */
470 unsigned int entry_044: 4;
471 /* 0-4-4 mode exit method */
473 /* True if 0-4-4 mode is supported */
475 /* 4-4-4 mode enable sequences */
477 /* 4-4-4 mode disable sequences */
478 unsigned int disable_444: 4;
489 * @retval -ENOTSUP if this information is not available from this BFP table.
498 /* Bits specifying supported modes of entering 4-byte
503 /* Bits specifying supported modes of exiting 4-byte
509 * restore the device to its power-on state.
514 * bits are non-volatile.
527 * @retval -ENOTSUP if this information is not available from this BFP table.
534 /* JESD216D-01 section 6.6: 4-Byte Address Instruction Parameter */
539 #define JESD216_SFDP_4B_ADDR_DW1_1S_1S_4S_FAST_READ_6C_SUP BIT(4)