blob: de6dff1799e7554552847b8072f0feb796a8694a [file] [log] [blame]
Patrick Venturef289fce2018-09-21 13:23:23 -07001FILESEXTRAPATHS_prepend_zaius := "${THISDIR}/${PN}:"
Emily Shaffere412be52017-05-05 18:12:44 -07002
Andrew Geissler0a69ebe2017-07-12 16:19:14 -05003ZAIUS_CHIPS = "i2c@1e78a000/i2c-bus@40/ucd90160@64"
4ZAIUS_ITEMSFMT = "ahb/apb/{0}.conf"
Emily Shaffere412be52017-05-05 18:12:44 -07005
Andrew Geissler0a69ebe2017-07-12 16:19:14 -05006ZAIUS_ITEMS = "${@compose_list(d, 'ZAIUS_ITEMSFMT', 'ZAIUS_CHIPS')}"
Patrick Venturef87d0f02018-09-22 19:20:35 -07007ZAIUS_ITEMS += "iio-hwmon.conf iio-hwmon-battery.conf"
Andrew Geissler0a69ebe2017-07-12 16:19:14 -05008
9ZAIUS_OCCS = " \
Joel Stanley253f4d02017-09-05 17:44:33 +100010 00--00--00--06/sbefifo1-dev0/occ-hwmon.1 \
11 00--00--00--0a/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2 \
Andrew Geissler0a69ebe2017-07-12 16:19:14 -050012 "
Joel Stanley253f4d02017-09-05 17:44:33 +100013ZAIUS_OCCSFMT = "devices/platform/gpio-fsi/fsi0/slave@00--00/{0}.conf"
Andrew Geissler0a69ebe2017-07-12 16:19:14 -050014ZAIUS_OCCITEMS = "${@compose_list(d, 'ZAIUS_OCCSFMT', 'ZAIUS_OCCS')}"
Emily Shaffere412be52017-05-05 18:12:44 -070015
16ENVS = "obmc/hwmon/{0}"
Patrick Venturef289fce2018-09-21 13:23:23 -070017# compose_list is not defined immediately so don't use :=
18SYSTEMD_ENVIRONMENT_FILE_${PN}_append_zaius = " ${@compose_list(d, 'ENVS', 'ZAIUS_ITEMS')}"
19SYSTEMD_ENVIRONMENT_FILE_${PN}_append_zaius = " ${@compose_list(d, 'ENVS', 'ZAIUS_OCCITEMS')}"