| 2155 | } |
| 2156 | |
| 2157 | bool dt_is_overlay(struct device_tree *tree) |
| 2158 | { |
| 2159 | /* The actual overlaid nodes/props are in an __overlay__ child node. */ |
| 2160 | const char * const overlay_path[] = { "__overlay__", NULL }; |
| 2161 | struct device_tree_node *fragment; |
| 2162 | |
| 2163 | if (!tree) |
| 2164 | return false; |
| 2165 | |
| 2166 | list_for_each(fragment, tree->root->children, list_node) |
| 2167 | if (dt_find_node(fragment, overlay_path, NULL, NULL, 0)) |
| 2168 | return true; |
| 2169 | |
| 2170 | return false; |
| 2171 | } |
| 2172 | |
| 2173 | struct device_tree_node *dt_add_reserved_memory_region(struct device_tree *tree, |
| 2174 | const char *name, const char *compatible, uint64_t addr, uint64_t size, |
nothing calls this directly
no test coverage detected