blob: 0f16ec5121f025b2f1eb3894cffe2180b3d9520b [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 \
Andrew Geissler30077452017-05-23 15:48:33 -050013 "
Brandon Wyman37a50502017-05-22 17:35:07 -050014WSPOON_ITEMSFMT = "ahb/apb/{0}.conf"
Brandon Wyman37a50502017-05-22 17:35:07 -050015WSPOON_ITEMS = "${@compose_list(d, 'WSPOON_ITEMSFMT', 'WSPOON_CHIPS')}"
16
Andrew Geissler2e23fb62017-05-26 16:39:03 -050017WSPOON_OCCS = " \
Andrew Geissler92b2f5d2017-06-13 11:38:57 -050018 sbefifo@2400/occ@1/occ-hwmon@1 \
19 hub@3400/cfam@1,0/sbefifo@2400/occ@2/occ-hwmon@2 \
Andrew Geissler2e23fb62017-05-26 16:39:03 -050020 "
Andrew Geissler92b2f5d2017-06-13 11:38:57 -050021WSPOON_OCCSFMT = "gpio-fsi/cfam@0,0/{0}.conf"
Andrew Geissler2e23fb62017-05-26 16:39:03 -050022WSPOON_OCCITEMS = "${@compose_list(d, 'WSPOON_OCCSFMT', 'WSPOON_OCCS')}"
23
Brandon Wyman37a50502017-05-22 17:35:07 -050024ENVS = "obmc/hwmon/{0}"
25SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'WSPOON_ITEMS')}"
Andrew Geissler2e23fb62017-05-26 16:39:03 -050026SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'WSPOON_OCCITEMS')}"
Brad Bishop59a36b62017-08-21 20:10:29 -040027
28SYSTEMD_ENVIRONMENT_FILE_max31785-msl += "obmc/hwmon-max31785/wspoon.conf"
29SYSTEMD_LINK_max31785-msl += "../phosphor-max31785-msl@.service:${SYSTEMD_DEFAULT_TARGET}.wants/phosphor-max31785-msl@wspoon.service"