Skip to content
Commit 7733b942 authored by Kumar Gala's avatar Kumar Gala Committed by Anas Nashif
Browse files

sanitycheck: Add functions to query device tree for filters



Add the following functions to allow filtering based on device tree

dt_compat_enabled(compat) - Returns true if a device tree node
compatible matches 'compat' and the node is enabled.

dt_alias_exists(alias) - Returns true if a device tree node exists with
'alias' and the node is enabled.

dt_compat_enabled_with_alias - Returns true if a device tree node
compatible matches 'compat' and the node has 'alias' and the node is
enabled.

Signed-off-by: default avatarKumar Gala <kumar.gala@linaro.org>
parent 1acea137
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment