blob: 1b88196956c1cac375e39f7d835294a76827b87b [file] [log] [blame]
Brandon Wyman37a50502017-05-22 17:35:07 -05001FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2
Andrew Geissler30077452017-05-23 15:48:33 -05003WSPOON_CHIPS = " \
4 i2c@1e78a000/i2c-bus@100/bmp280@77 \
5 i2c@1e78a000/i2c-bus@100/dps310@76 \
Brad Bishop0cf11c22017-07-10 20:49:00 -04006 i2c@1e78a000/i2c-bus@100/max31785@52 \
Matt Spinler49195bf2017-08-14 09:29:22 -05007 i2c@1e78a000/i2c-bus@100/power-supply@68 \
8 i2c@1e78a000/i2c-bus@100/power-supply@69 \
Andrew Geissler10129c52017-05-25 16:21:00 -05009 i2c@1e78a000/i2c-bus@140/ir35221@70 \
10 i2c@1e78a000/i2c-bus@140/ir35221@71 \
11 i2c@1e78a000/i2c-bus@180/ir35221@70 \
12 i2c@1e78a000/i2c-bus@180/ir35221@71 \
Matthew Barthd730e472017-11-14 09:35:04 -060013 i2c@1e78a000/i2c-bus@380/tmp275@4a \
Andrew Geissler30077452017-05-23 15:48:33 -050014 "
Brandon Wyman37a50502017-05-22 17:35:07 -050015WSPOON_ITEMSFMT = "ahb/apb/{0}.conf"
Brandon Wyman37a50502017-05-22 17:35:07 -050016WSPOON_ITEMS = "${@compose_list(d, 'WSPOON_ITEMSFMT', 'WSPOON_CHIPS')}"
17
Andrew Geissler2e23fb62017-05-26 16:39:03 -050018WSPOON_OCCS = " \
Joel Stanley46a87d42017-09-05 17:44:33 +100019 00--00--00--06/sbefifo1-dev0/occ-hwmon.1 \
20 00--00--00--0a/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2 \
Andrew Geissler2e23fb62017-05-26 16:39:03 -050021 "
Joel Stanley46a87d42017-09-05 17:44:33 +100022WSPOON_OCCSFMT = "devices/platform/gpio-fsi/fsi0/slave@00--00/{0}.conf"
Andrew Geissler2e23fb62017-05-26 16:39:03 -050023WSPOON_OCCITEMS = "${@compose_list(d, 'WSPOON_OCCSFMT', 'WSPOON_OCCS')}"
24
Brandon Wyman37a50502017-05-22 17:35:07 -050025ENVS = "obmc/hwmon/{0}"
26SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'WSPOON_ITEMS')}"
Andrew Geissler2e23fb62017-05-26 16:39:03 -050027SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'WSPOON_OCCITEMS')}"
Brad Bishop59a36b62017-08-21 20:10:29 -040028
29SYSTEMD_ENVIRONMENT_FILE_max31785-msl += "obmc/hwmon-max31785/wspoon.conf"
30SYSTEMD_LINK_max31785-msl += "../phosphor-max31785-msl@.service:${SYSTEMD_DEFAULT_TARGET}.wants/phosphor-max31785-msl@wspoon.service"