Lines Matching +full:num +full:- +full:strings
1 // SPDX-License-Identifier: GPL-2.0+
25 * Global data (for the gd->bd)
128 argc -= 2; in do_fdt()
130 /* Temporary #ifdef - some archs don't have fdt_blob yet */ in do_fdt()
132 if (argc && !strcmp(*argv, "-c")) { in do_fdt()
134 argc--; in do_fdt()
140 blob = (struct fdt_header *)gd->fdt_blob; in do_fdt()
156 gd->fdt_blob = blob; in do_fdt()
241 /* Call the board-specific fixup routine */ in do_fdt()
243 int err = ft_system_setup(working_fdt, gd->bd); in do_fdt()
328 ret = fdt_parse_prop(&argv[4], argc - 4, data, &len); in do_fdt()
343 char *subcmd; /* sub-command */ in do_fdt()
377 int reqIndex = -1; in do_fdt()
381 int curIndex = -1; in do_fdt()
406 /* get the num nodes at this level */ in do_fdt()
585 printf("-------------------------------" in do_fdt()
586 "-----------------\n"); in do_fdt()
627 /* Call the board-specific fixup routine */ in do_fdt()
629 int err = ft_board_setup(working_fdt, gd->bd); in do_fdt()
637 ft_board_setup_ex(working_fdt, gd->bd); in do_fdt()
670 blob = (struct fdt_header *)gd->fdt_blob; in do_fdt()
675 gd->fdt_blob = blob; in do_fdt()
735 * fdt_valid() - Check if an FDT is valid. If not, change it to NULL
759 if (err == -FDT_ERR_BADVERSION) { in fdt_valid()
762 printf (" - too old, fdt %d < %d", in fdt_valid()
768 printf (" - too new, fdt %d > %d", in fdt_valid()
784 * <0x00112233 4 05> - an array of cells. Numbers follow standard
786 * [00 11 22 .. nn] - byte stream
787 * "string" - If the the value doesn't start with "<" or "[", it is
790 * newval: An array of strings containing the new property as specified
792 * count: The number of strings in the array
830 if ((newp - cp) <= 0) { in fdt_parse_prop()
868 * Assume it is one or more strings. Copy it into our in fdt_parse_prop()
886 * Heuristic to guess if this is a string or concatenated strings.
898 if (s[len - 1] != '\0' && s[len - 1] != '\n') in is_printable_string()
901 /* printable or a null byte (concatenated strings) */ in is_printable_string()
916 len--; in is_printable_string()
929 * a string, concatenated strings, a byte, word, double word, or (if all
941 * It is a string, but it may have multiple strings (embedded '\0's). in print_data()
966 j < (len/4 - 1) ? " " : ""); in print_data()
977 printf("%02x%s", s[j], j < len - 1 ? " " : ""); in print_data()
1048 &tabs[MAX_LEVEL - level], pathp); in fdt_print()
1057 level--; in fdt_print()
1059 printf("%s};\n", &tabs[MAX_LEVEL - level]); in fdt_print()
1061 level = -1; /* exit the loop */ in fdt_print()
1068 fdt32_to_cpu(fdt_prop->nameoff)); in fdt_print()
1069 len = fdt32_to_cpu(fdt_prop->len); in fdt_print()
1070 nodep = fdt_prop->data; in fdt_print()
1079 &tabs[MAX_LEVEL - level], in fdt_print()
1084 &tabs[MAX_LEVEL - level], in fdt_print()
1092 printf("%s/* NOP */\n", &tabs[MAX_LEVEL - level]); in fdt_print()
1109 "addr [-c] <addr> [<length>] - Set the [control] fdt location to <addr>\n"
1111 "fdt apply <addr> - Apply overlay to the DT\n"
1114 "fdt boardsetup - Do board-specific set up\n"
1117 "fdt systemsetup - Do system-specific set up\n"
1119 "fdt move <fdt> <newaddr> <length> - Copy the fdt to <addr> and make it active\n"
1120 …"fdt resize [<extrasize>] - Resize fdt to size + padding to 4k addr + some optional <ex…
1121 "fdt print <path> [<prop>] - Recursive print starting at <path>\n"
1122 "fdt list <path> [<prop>] - Print one level starting at <path>\n"
1123 "fdt get value <var> <path> <prop> - Get <property> and store in <var>\n"
1124 "fdt get name <var> <path> <index> - Get name of node <index> and store in <var>\n"
1125 "fdt get addr <var> <path> <prop> - Get start address of <property> and store in <var>\n"
1126 "fdt get size <var> <path> [<prop>] - Get size of [<property>] or num nodes and store in <var>\n"
1127 "fdt set <path> <prop> [<val>] - Set <property> [to <val>]\n"
1128 "fdt mknode <path> <node> - Create a new node after <path>\n"
1129 "fdt rm <path> [<prop>] - Delete the node or <property>\n"
1130 "fdt header [get <var> <member>] - Display header info\n"
1131 " get - get header member <member> and store it in <var>\n"
1132 "fdt bootcpu <id> - Set boot cpuid\n"
1133 "fdt memory <addr> <size> - Add/Update memory node\n"
1134 "fdt rsvmem print - Show current mem reserves\n"
1135 "fdt rsvmem add <addr> <size> - Add a mem reserve\n"
1136 "fdt rsvmem delete <index> - Delete a mem reserves\n"
1137 "fdt chosen [<start> <end>] - Add/update the /chosen branch in the tree\n"
1138 " <start>/<end> - initrd start/end addr\n"
1140 "fdt checksign [<addr>] - check FIT signature\n"
1141 " <start> - addr of key blob\n"
1142 " default gd->fdt_blob\n"