zaius: Add hwmon->dbus for UCD90160
Change-Id: I3061a488c129ed8e8451ab63ececeb13c16a81fb
Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
diff --git a/meta-zaius/recipes-phosphor/sensors/phosphor-hwmon%.bbappend b/meta-zaius/recipes-phosphor/sensors/phosphor-hwmon%.bbappend
new file mode 100644
index 0000000..b256106
--- /dev/null
+++ b/meta-zaius/recipes-phosphor/sensors/phosphor-hwmon%.bbappend
@@ -0,0 +1,9 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+NAMES = "i2c@1e78a000/i2c-bus@40/ucd90160@64"
+ITEMSFMT = "ahb/apb/{0}.conf"
+
+ITEMS = "${@compose_list(d, 'ITEMSFMT', 'NAMES')}"
+
+ENVS = "obmc/hwmon/{0}"
+SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'ITEMS')}"