From 7f4c8e8ce0b78ca046643d7f4f63d81f4fd11746 Mon Sep 17 00:00:00 2001 From: Nicholas Piggin Date: Fri, 16 Feb 2018 13:40:42 +1000 Subject: dt: add /cpus/ibm, powerpc-cpu-features device tree bindings This is a new CPU feature advertising interface that is fine-grained, extensible, aware of privilege levels, and gives control of features to all levels of the stack (firmware, hypervisor, and OS). The design and binding specification is described in detail in doc/. Signed-off-by: Nicholas Piggin [stewart: fix maybe-uninitialized warning from older GCC, doc cleanup] Signed-off-by: Stewart Smith --- include/device.h | 1 + include/skiboot.h | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'include') diff --git a/include/device.h b/include/device.h index 1e5875d..fd66df1 100644 --- a/include/device.h +++ b/include/device.h @@ -141,6 +141,7 @@ void dt_check_del_prop(struct dt_node *node, const char *name); /* Warning: moves *prop! */ void dt_resize_property(struct dt_property **prop, size_t len); +void dt_property_set_cell(struct dt_property *prop, u32 index, u32 val); u32 dt_property_get_cell(const struct dt_property *prop, u32 index); /* First child of this node. */ diff --git a/include/skiboot.h b/include/skiboot.h index d1de10a..2f81a05 100644 --- a/include/skiboot.h +++ b/include/skiboot.h @@ -195,6 +195,11 @@ extern void start_kernel_secondary(uint64_t entry) __noreturn; /* Get description of machine from HDAT and create device-tree */ extern int parse_hdat(bool is_opal); +struct dt_node; + +/* Add /cpus/features node for boot environment that passes an fdt */ +extern void dt_add_cpufeatures(struct dt_node *root); + /* Root of device tree. */ extern struct dt_node *dt_root; -- cgit v1.1