| 434 | } |
| 435 | |
| 436 | int dtb_node_set_enabled(const struct dtb_node *node, rt_bool_t value) |
| 437 | { |
| 438 | if (!dtb_node_active()) |
| 439 | return -ENOSYS; |
| 440 | |
| 441 | RT_ASSERT(dtb_node_valid(node)); |
| 442 | |
| 443 | if (value) |
| 444 | return dtb_node_write_string(node, "status", "okay"); |
| 445 | else |
| 446 | return dtb_node_write_string(node, "status", "disable"); |
| 447 | } |
| 448 | |
| 449 | /** |
| 450 | * dtb_node_irq_find_parent - Given a device node, find its interrupt parent node |
nothing calls this directly
no test coverage detected