Patrick Venture | f289fce | 2018-09-21 13:23:23 -0700 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend_zaius := "${THISDIR}/${PN}:" |
Emily Shaffer | e412be5 | 2017-05-05 18:12:44 -0700 | [diff] [blame] | 2 | |
Andrew Geissler | 0a69ebe | 2017-07-12 16:19:14 -0500 | [diff] [blame] | 3 | ZAIUS_CHIPS = "i2c@1e78a000/i2c-bus@40/ucd90160@64" |
| 4 | ZAIUS_ITEMSFMT = "ahb/apb/{0}.conf" |
Emily Shaffer | e412be5 | 2017-05-05 18:12:44 -0700 | [diff] [blame] | 5 | |
Andrew Geissler | 0a69ebe | 2017-07-12 16:19:14 -0500 | [diff] [blame] | 6 | ZAIUS_ITEMS = "${@compose_list(d, 'ZAIUS_ITEMSFMT', 'ZAIUS_CHIPS')}" |
Patrick Venture | f87d0f0 | 2018-09-22 19:20:35 -0700 | [diff] [blame^] | 7 | ZAIUS_ITEMS += "iio-hwmon.conf iio-hwmon-battery.conf" |
Andrew Geissler | 0a69ebe | 2017-07-12 16:19:14 -0500 | [diff] [blame] | 8 | |
| 9 | ZAIUS_OCCS = " \ |
Joel Stanley | 253f4d0 | 2017-09-05 17:44:33 +1000 | [diff] [blame] | 10 | 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 Geissler | 0a69ebe | 2017-07-12 16:19:14 -0500 | [diff] [blame] | 12 | " |
Joel Stanley | 253f4d0 | 2017-09-05 17:44:33 +1000 | [diff] [blame] | 13 | ZAIUS_OCCSFMT = "devices/platform/gpio-fsi/fsi0/slave@00--00/{0}.conf" |
Andrew Geissler | 0a69ebe | 2017-07-12 16:19:14 -0500 | [diff] [blame] | 14 | ZAIUS_OCCITEMS = "${@compose_list(d, 'ZAIUS_OCCSFMT', 'ZAIUS_OCCS')}" |
Emily Shaffer | e412be5 | 2017-05-05 18:12:44 -0700 | [diff] [blame] | 15 | |
| 16 | ENVS = "obmc/hwmon/{0}" |
Patrick Venture | f289fce | 2018-09-21 13:23:23 -0700 | [diff] [blame] | 17 | # compose_list is not defined immediately so don't use := |
| 18 | SYSTEMD_ENVIRONMENT_FILE_${PN}_append_zaius = " ${@compose_list(d, 'ENVS', 'ZAIUS_ITEMS')}" |
| 19 | SYSTEMD_ENVIRONMENT_FILE_${PN}_append_zaius = " ${@compose_list(d, 'ENVS', 'ZAIUS_OCCITEMS')}" |