summaryrefslogtreecommitdiffstats
path: root/include/device.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-06-25 08:47:34 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-07-06 19:30:48 +1000
commitfb43f202ddd86131acf14542c34fbcb9adab45f2 (patch)
tree63e5fdc036e0a98efe90f27a52881fe7b0783e78 /include/device.h
parent5740d2eb91303715fd077cf2deb7347fb1173e69 (diff)
downloadblackbird-skiboot-fb43f202ddd86131acf14542c34fbcb9adab45f2.tar.gz
blackbird-skiboot-fb43f202ddd86131acf14542c34fbcb9adab45f2.zip
devicetree: Add dt_node_is_enabled()
This accessor tests the "status" property allowing us to represent disabled devices in the device-tree. It will be used by PHB4 initially but its usage could be made more widespread. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/device.h')
-rw-r--r--include/device.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/device.h b/include/device.h
index 28dbd5d7..ed4fc460 100644
--- a/include/device.h
+++ b/include/device.h
@@ -161,6 +161,8 @@ struct dt_node *dt_find_compatible_node_on_chip(struct dt_node *root,
for (node = NULL; \
(node = dt_find_compatible_node_on_chip(root, node,\
compat, chip_id)) != NULL;)
+/* Check status property */
+bool dt_node_is_enabled(struct dt_node *node);
/* Build the full path for a node. Return a new block of memory, caller
* shall free() it
OpenPOWER on IntegriCloud