diff options
author | Alexander Filippov <a.filippov@yadro.com> | 2020-04-13 18:06:40 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2020-04-30 04:47:19 +0300 |
commit | d85f9936db6707c38e2b29338f534ed25f08073d (patch) | |
tree | 463d14463cae39efeaae7e74e3ebb586fc6126d9 /meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend | |
parent | abce80903a005c006cebb5447898a270691f4a75 (diff) | |
download | openbmc-d85f9936db6707c38e2b29338f534ed25f08073d.tar.xz |
nicole: Add iio-hwmon-battery config
Nicole has RTC battery monitored by aspeed adc.
This commit adds the config for hwmon to create
/xyz/openbmc_project/sensors/voltage/vbat dbus object.
(From meta-yadro rev: 00a58de373844c2819c88993242a6bbda6235e8a)
Change-Id: Ib9eacb8884d793b3895f6dd4749512517c9d8988
Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend')
-rw-r--r-- | meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend b/meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend index d03b2c40f..58e0c90b3 100644 --- a/meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend +++ b/meta-yadro/meta-nicole/recipes-phosphor/sensors/phosphor-hwmon_%.bbappend @@ -2,6 +2,8 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" EXTRA_OECONF_append = " --enable-negative-errno-on-fail" +ITEMS = "iio-hwmon-battery.conf" + OCCS = " \ 00--00--00--06/sbefifo1-dev0/occ-hwmon.1 \ 00--00--00--0a/fsi-master/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2 \ @@ -11,4 +13,5 @@ OCCSFMT = "devices/platform/gpio-fsi/fsi-master/fsi0/slave@00--00/{0}.conf" OCCITEMS = "${@compose_list(d, 'OCCSFMT', 'OCCS')}" ENVS = "obmc/hwmon/{0}" +SYSTEMD_ENVIRONMENT_FILE_${PN}_append = " ${@compose_list(d, 'ENVS', 'ITEMS')}" SYSTEMD_ENVIRONMENT_FILE_${PN}_append = " ${@compose_list(d, 'ENVS', 'OCCITEMS')}" |