diff options
author | Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> | 2017-08-10 08:47:04 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-08-11 16:37:29 +1000 |
commit | a298f3767469f28a0f005d8717cb866a50110bac (patch) | |
tree | 10ec8e0c8a86287cb8318391b4eaab0c7317155d /hw | |
parent | 98e5c27e15e355de01a6c8f362be3e1ee95ff014 (diff) | |
download | skiboot-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')
-rw-r--r-- | hw/occ-sensor.c | 2 | ||||
-rw-r--r-- | hw/occ.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/hw/occ-sensor.c b/hw/occ-sensor.c index 35fae8f..89f529f 100644 --- a/hw/occ-sensor.c +++ b/hw/occ-sensor.c @@ -567,7 +567,7 @@ void occ_sensors_init(void) prerror("OCC: Failed to create sensor groups node\n"); return; } - dt_add_property_string(sg, "compatible", "ibm,opal-occ-sensor-group"); + dt_add_property_string(sg, "compatible", "ibm,opal-sensor-group"); for_each_chip(chip) { struct occ_sensor_data_header *hb; @@ -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); } } |