MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / device_tree_setup

Function device_tree_setup

components/legacy/fdt/src/dtb_head.c:25–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25int device_tree_setup(void *mem_addr)
26{
27 if(mem_addr)
28 {
29 if ((dtb_root = dtb_node_load_from_memory(mem_addr,1)) != NULL)
30 {
31 dtb_node_list = dtb_node_get_dtb_list(dtb_root);
32 if (dtb_node_list != NULL)
33 {
34 return -1;
35 }
36 }
37 return 0;
38 }
39
40 return -1;
41}

Callers

nothing calls this directly

Calls 2

dtb_node_get_dtb_listFunction · 0.85

Tested by

no test coverage detected