Lines Matching +full:raw +full:- +full:x +full:- +full:min
4 * SPDX-License-Identifier: Apache-2.0
40 [JESD216_MODE_111] = "1-1-1",
41 [JESD216_MODE_112] = "1-1-2",
42 [JESD216_MODE_114] = "1-1-4",
43 [JESD216_MODE_118] = "1-1-8",
44 [JESD216_MODE_122] = "1-2-2",
45 [JESD216_MODE_144] = "1-4-4",
46 [JESD216_MODE_188] = "1-8-8",
47 [JESD216_MODE_222] = "2-2-2",
48 [JESD216_MODE_444] = "4-4-4",
54 uint32_t dw1 = sys_le32_to_cpu(bfp->dw1); in summarize_dw1()
60 [JESD216_SFDP_BFP_DW1_ADDRBYTES_VAL_3B] = "3-Byte only", in summarize_dw1()
61 [JESD216_SFDP_BFP_DW1_ADDRBYTES_VAL_3B4B] = "3- or 4-Byte", in summarize_dw1()
62 [JESD216_SFDP_BFP_DW1_ADDRBYTES_VAL_4B] = "4-Byte only", in summarize_dw1()
76 printf("4-KiBy erase: %s\n", bsersz[(dw1 & JESD216_SFDP_BFP_DW1_BSERSZ_MASK) in summarize_dw1()
154 uint32_t dw12 = sys_le32_to_cpu(bfp->dw10[2]); in summarize_dw12()
155 uint32_t dw13 = sys_le32_to_cpu(bfp->dw10[3]); in summarize_dw12()
184 printf("DPD: Enter %02Xh, exit %02Xh ; delay %u ns ; poll 0x%02x\n", in summarize_dw14()
201 printf("0-4-4 Mode methods: entry 0x%01x ; exit 0x%02x\n", in summarize_dw15()
204 printf("0-4-4 Mode: not supported"); in summarize_dw15()
206 printf("4-4-4 Mode sequences: enable 0x%02x ; disable 0x%01x\n", in summarize_dw15()
221 /* Don't display bits when 4-byte addressing is not supported. */ in summarize_dw16()
223 printf("4-byte addressing support: enter 0x%02x, exit 0x%03x\n", in summarize_dw16()
226 printf("Soft Reset and Rescue Sequence support: 0x%02x\n", in summarize_dw16()
228 printf("Status Register 1 support: 0x%02x\n", in summarize_dw16()
248 uint8_t limit = MIN(1U + php->len_dw, ARRAY_SIZE(extractor)); in dump_bfp()
268 while (nw < php->len_dw) { in dump_bytes()
272 bool emit_nl = (nw == php->len_dw) || ((nw % 4) == 0); in dump_bytes()
274 sprintf(buffer, "%02x %02x %02x %02x", in dump_bytes()
290 printf("%s: device not ready\n", dev->name); in main()
296 uint8_t raw[JESD216_SFDP_SIZE(decl_nph)]; in main() member
300 int rc = flash_sfdp_read(dev, 0, u.raw, sizeof(u.raw)); in main()
303 printf("Read SFDP not supported: device not JESD216-compliant " in main()
311 printf("SFDP magic %08x invalid", magic); in main()
315 printf("%s: SFDP v %u.%u AP %x with %u PH\n", dev->name, in main()
316 hp->rev_major, hp->rev_minor, hp->access, 1 + hp->nph); in main()
318 const struct jesd216_param_header *php = hp->phdr; in main()
319 const struct jesd216_param_header *phpe = php + MIN(decl_nph, 1 + hp->nph); in main()
325 printf("PH%u: %04x rev %u.%u: %u DW @ %x\n", in main()
326 (uint32_t)(php - hp->phdr), id, php->rev_major, php->rev_minor, in main()
327 php->len_dw, addr); in main()
329 uint32_t dw[php->len_dw]; in main()
342 printf("sfdp-bfp ="); in main()
344 printf("sfdp-%04x =", id); in main()
356 printf("jedec-id = [%02x %02x %02x];\n", in main()