blob: 8aef1f11a7e560e8286681fa239a39074738b09c [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@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')}"