blob: 0f16ec5121f025b2f1eb3894cffe2180b3d9520b [file] [log] [blame]
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
WSPOON_CHIPS = " \
i2c@1e78a000/i2c-bus@100/bmp280@77 \
i2c@1e78a000/i2c-bus@100/dps310@76 \
i2c@1e78a000/i2c-bus@100/max31785@52 \
i2c@1e78a000/i2c-bus@100/power-supply@68 \
i2c@1e78a000/i2c-bus@100/power-supply@69 \
i2c@1e78a000/i2c-bus@140/ir35221@70 \
i2c@1e78a000/i2c-bus@140/ir35221@71 \
i2c@1e78a000/i2c-bus@180/ir35221@70 \
i2c@1e78a000/i2c-bus@180/ir35221@71 \
"
WSPOON_ITEMSFMT = "ahb/apb/{0}.conf"
WSPOON_ITEMS = "${@compose_list(d, 'WSPOON_ITEMSFMT', 'WSPOON_CHIPS')}"
WSPOON_OCCS = " \
sbefifo@2400/occ@1/occ-hwmon@1 \
hub@3400/cfam@1,0/sbefifo@2400/occ@2/occ-hwmon@2 \
"
WSPOON_OCCSFMT = "gpio-fsi/cfam@0,0/{0}.conf"
WSPOON_OCCITEMS = "${@compose_list(d, 'WSPOON_OCCSFMT', 'WSPOON_OCCS')}"
ENVS = "obmc/hwmon/{0}"
SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'WSPOON_ITEMS')}"
SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'WSPOON_OCCITEMS')}"
SYSTEMD_ENVIRONMENT_FILE_max31785-msl += "obmc/hwmon-max31785/wspoon.conf"
SYSTEMD_LINK_max31785-msl += "../phosphor-max31785-msl@.service:${SYSTEMD_DEFAULT_TARGET}.wants/phosphor-max31785-msl@wspoon.service"