aboutsummaryrefslogtreecommitdiff
path: root/hw/occ.c
diff options
context:
space:
mode:
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>2017-08-10 08:47:04 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-08-11 16:37:29 +1000
commita298f3767469f28a0f005d8717cb866a50110bac (patch)
tree10ec8e0c8a86287cb8318391b4eaab0c7317155d /hw/occ.c
parent98e5c27e15e355de01a6c8f362be3e1ee95ff014 (diff)
downloadskiboot-a298f3767469f28a0f005d8717cb866a50110bac.zip
skiboot-a298f3767469f28a0f005d8717cb866a50110bac.tar.gz
skiboot-a298f3767469f28a0f005d8717cb866a50110bac.tar.bz2
sensor-groups : occ: Add 'ops' DT property
Add new device-tree property 'ops' to define different operations supported on each sensor-group. Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/occ.c')
-rw-r--r--hw/occ.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/occ.c b/hw/occ.c
index 03291ae..78c6a6a 100644
--- a/hw/occ.c
+++ b/hw/occ.c
@@ -1533,6 +1533,7 @@ void occ_add_sensor_groups(struct dt_node *sg, u32 *phandles, int nr_phandles,
dt_add_property_string(node, "type", limits[j].str);
dt_add_property_cells(node, "ibm,chip-id", chipid);
dt_add_property(node, "sensors", phandles, nr_phandles);
+ dt_add_property_cells(node, "ops", OPAL_SENSOR_GROUP_CLEAR);
}
}