diff options
author | Lisa Liu <liuyj19@lenovo.com> | 2019-04-26 08:09:53 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-06-10 21:26:02 +0300 |
commit | dd8980644df62c22512de9430751263de7bbd16f (patch) | |
tree | 04672a0742d70f44649fd16fede9d83cd8afee0b /meta-lenovo/meta-hr630/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend | |
parent | a467ecf27af2fd2d23387425a1c5fc4c4195c59e (diff) | |
download | openbmc-dd8980644df62c22512de9430751263de7bbd16f.tar.xz |
meta-lenovo: hr630: Add sensor configs
temperature sensors inlet and outlet of tmp75, adc voltage sensors
and fan-tach sensors.
Tested: Build it in hr630 image, load on hr630 platform,
make sure it could show these sensors correctly with command:
ipmitool sdr list.
(From meta-lenovo rev: 8cd1949d5b4c66682baf951bb8c060320032ad0b)
Signed-off-by: Lisa Liu <liuyj19@lenovo.com>
Change-Id: Idfd89ea40642130daddbb9e8c0384004c076638a
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-lenovo/meta-hr630/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend')
-rw-r--r-- | meta-lenovo/meta-hr630/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meta-lenovo/meta-hr630/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend b/meta-lenovo/meta-hr630/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend new file mode 100644 index 0000000000..507954d49c --- /dev/null +++ b/meta-lenovo/meta-hr630/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend @@ -0,0 +1,18 @@ +#"Copyright (c) 2019-present Lenovo +#Licensed under BSD-3, see COPYING.BSD file for details." + +FILESEXTRAPATHS_prepend_hr630 := "${THISDIR}/${PN}:" +EXTRA_OECONF_append_hr630 = " --enable-negative-errno-on-fail" + +CHIPS = " \ + bus@1e78a000/i2c-bus@40/tmp75@4e \ + bus@1e78a000/i2c-bus@80/tmp75@4d \ + pwm-tacho-controller@1e786000 \ + " +ITEMSFMT = "ahb/apb/{0}.conf" + +ITEMS = "${@compose_list(d, 'ITEMSFMT', 'CHIPS')}" +ITEMS += "iio-hwmon.conf" + +ENVS = "obmc/hwmon/{0}" +SYSTEMD_ENVIRONMENT_FILE_${PN}_append_hr630 := "${@compose_list(d, 'ENVS', 'ITEMS')}" |