aboutsummaryrefslogtreecommitdiff
path: root/libstb
diff options
context:
space:
mode:
authorEric Richter <erichte@linux.ibm.com>2019-12-03 18:03:47 -0600
committerOliver O'Halloran <oohall@gmail.com>2019-12-05 17:29:56 +1100
commita55c46d5a1be0efd2f0c74755cfb8facb1255361 (patch)
tree75bed1de690cc4dc32a768ce81ccd95373f100aa /libstb
parent9f7b726ccf7ee9b6fe50277e79e0bd285bfa9918 (diff)
downloadskiboot-a55c46d5a1be0efd2f0c74755cfb8facb1255361.zip
skiboot-a55c46d5a1be0efd2f0c74755cfb8facb1255361.tar.gz
skiboot-a55c46d5a1be0efd2f0c74755cfb8facb1255361.tar.bz2
secvar_devtree: add generic compatible, and new format device tree property
This patch adds a generic compatible entry to the secvar/compatible device tree property for kernels, etc to match for basic secvar information (e.g. the linux secvar-sysfs implementation). The new "format" property exposes the expected format for data passing in and out of the secvar API. In most cases, this should be the same as the backend-specific compatible entry. Signed-off-by: Eric Richter <erichte@linux.ibm.com> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'libstb')
-rw-r--r--libstb/secvar/secvar_devtree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libstb/secvar/secvar_devtree.c b/libstb/secvar/secvar_devtree.c
index 5489db7..4bff139 100644
--- a/libstb/secvar/secvar_devtree.c
+++ b/libstb/secvar/secvar_devtree.c
@@ -37,7 +37,8 @@ void secvar_init_devnode(const char *compatible)
secvar_node = dt_new(sb_root, "secvar");
- dt_add_property_string(secvar_node, "compatible", compatible);
+ dt_add_property_strings(secvar_node, "compatible", "ibm,secvar-backend", compatible);
+ dt_add_property_string(secvar_node, "format", compatible);
dt_add_property_u64(secvar_node, "max-var-size", secvar_storage.max_var_size);
dt_add_property_u64(secvar_node, "max-var-key-len", SECVAR_MAX_KEY_LEN);
}