Brandon Wyman | 37a5050 | 2017-05-22 17:35:07 -0500 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 2 | |
Ben_Pai | 2e39633 | 2019-09-04 15:48:18 +0800 | [diff] [blame] | 3 | EXTRA_OECONF_append_mihawk = " --enable-negative-errno-on-fail" |
| 4 | |
Brad Bishop | bb0e1d0 | 2019-07-17 17:35:55 -0400 | [diff] [blame] | 5 | SRC_URI_append_ibm-ac-server = " \ |
Matt Spinler | 055e861 | 2018-04-25 11:26:08 -0500 | [diff] [blame] | 6 | file://70-hwmon.rules \ |
| 7 | file://70-max31785-hwmon.rules \ |
Matt Spinler | 0066e31 | 2018-04-25 10:53:41 -0500 | [diff] [blame] | 8 | file://start_max31785_hwmon.sh \ |
| 9 | " |
| 10 | |
Matt Spinler | b9cd483 | 2019-10-02 16:46:32 -0500 | [diff] [blame] | 11 | CHIPS_witherspoon = " \ |
| 12 | bus@1e78a000/i2c-bus@100/max31785@52_air \ |
| 13 | bus@1e78a000/i2c-bus@100/max31785@52_water \ |
| 14 | bus@1e78a000/i2c-bus@100/power-supply@68 \ |
| 15 | bus@1e78a000/i2c-bus@100/power-supply@69 \ |
Matt Spinler | 706307d | 2019-03-22 09:57:13 -0500 | [diff] [blame] | 16 | bus@1e78a000/i2c-bus@100/bmp280@77 \ |
| 17 | bus@1e78a000/i2c-bus@100/dps310@76 \ |
Matt Spinler | 706307d | 2019-03-22 09:57:13 -0500 | [diff] [blame] | 18 | bus@1e78a000/i2c-bus@140/ir35221@70 \ |
| 19 | bus@1e78a000/i2c-bus@140/ir35221@71 \ |
| 20 | bus@1e78a000/i2c-bus@180/ir35221@70 \ |
| 21 | bus@1e78a000/i2c-bus@180/ir35221@71 \ |
| 22 | bus@1e78a000/i2c-bus@380/tmp275@4a \ |
Andrew Geissler | 3007745 | 2017-05-23 15:48:33 -0500 | [diff] [blame] | 23 | " |
Matt Spinler | b9cd483 | 2019-10-02 16:46:32 -0500 | [diff] [blame] | 24 | CHIPS_swift = " \ |
| 25 | bus@1e78a000/i2c-bus@100/max31785@52_air \ |
| 26 | bus@1e78a000/i2c-bus@100/max31785@52_water \ |
| 27 | bus@1e78a000/i2c-bus@100/power-supply@68 \ |
| 28 | bus@1e78a000/i2c-bus@100/power-supply@69 \ |
Matt Spinler | bd2a3a2 | 2019-04-26 11:37:13 -0500 | [diff] [blame] | 29 | bus@1e78a000/i2c-bus@440/tmp275@4a \ |
| 30 | bus@1e78a000/i2c-bus@440/tmp275@48 \ |
Matthew Barth | 51daebf | 2019-05-31 13:30:53 -0500 | [diff] [blame] | 31 | bus@1e78a000/i2c-bus@300/tmp275@48 \ |
Matthew Barth | b86d99a | 2019-05-31 13:39:52 -0500 | [diff] [blame] | 32 | bus@1e78a000/i2c-bus@300/dps310@76 \ |
Matthew Barth | 44d1515 | 2019-05-31 13:44:13 -0500 | [diff] [blame] | 33 | bus@1e78a000/i2c-bus@300/si7021a20@20 \ |
Matthew Barth | e21e2d2 | 2019-05-31 16:27:24 -0500 | [diff] [blame] | 34 | bus@1e78a000/i2c-bus@380/ir35219@70 \ |
| 35 | bus@1e78a000/i2c-bus@380/ir35221@71 \ |
| 36 | bus@1e78a000/i2c-bus@380/ir35221@72 \ |
Matthew Barth | a296aa3 | 2019-05-31 16:37:16 -0500 | [diff] [blame] | 37 | bus@1e78a000/i2c-bus@3c0/ir35219@70 \ |
| 38 | bus@1e78a000/i2c-bus@3c0/ir35221@71 \ |
| 39 | bus@1e78a000/i2c-bus@3c0/ir35221@72 \ |
Matt Spinler | bd2a3a2 | 2019-04-26 11:37:13 -0500 | [diff] [blame] | 40 | " |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 41 | CHIPS_mihawk = " \ |
| 42 | bus@1e78a000/i2c-bus@100/power-supply@58 \ |
| 43 | bus@1e78a000/i2c-bus@100/power-supply@5b \ |
| 44 | bus@1e78a000/i2c-bus@140/ir35221@70 \ |
| 45 | bus@1e78a000/i2c-bus@140/ir35221@72 \ |
| 46 | bus@1e78a000/i2c-bus@180/ir35221@70 \ |
| 47 | bus@1e78a000/i2c-bus@180/ir35221@72 \ |
| 48 | bus@1e78a000/i2c-bus@400/tmp275@48 \ |
| 49 | bus@1e78a000/i2c-bus@400/tmp275@49 \ |
| 50 | pwm-tacho-controller@1e786000 \ |
| 51 | bus@1e78a000/i2c-bus@400/emc1403@4c \ |
| 52 | bus@1e78a000/i2c-bus@440/pca9545@70/i2c@3/tmp275@48 \ |
| 53 | " |
Brandon Wyman | 37a5050 | 2017-05-22 17:35:07 -0500 | [diff] [blame] | 54 | |
Matt Spinler | b9cd483 | 2019-10-02 16:46:32 -0500 | [diff] [blame] | 55 | CHIPS_witherspoon-tacoma = " \ |
| 56 | bus@1e78a000/i2c-bus@200/max31785@52_air \ |
| 57 | bus@1e78a000/i2c-bus@200/max31785@52_water \ |
| 58 | bus@1e78a000/i2c-bus@200/power-supply@68 \ |
| 59 | bus@1e78a000/i2c-bus@200/power-supply@69 \ |
| 60 | bus@1e78a000/i2c-bus@200/bmp280@77 \ |
| 61 | bus@1e78a000/i2c-bus@200/dps310@76 \ |
| 62 | bus@1e78a000/i2c-bus@280/ir35221@70 \ |
| 63 | bus@1e78a000/i2c-bus@280/ir35221@71 \ |
| 64 | bus@1e78a000/i2c-bus@300/ir35221@70 \ |
| 65 | bus@1e78a000/i2c-bus@300/ir35221@71 \ |
| 66 | bus@1e78a000/i2c-bus@500/tmp275@4a \ |
| 67 | " |
Matthew Barth | 84b1f2e | 2019-04-15 15:44:48 -0500 | [diff] [blame] | 68 | ITEMSFMT = "ahb/apb/{0}.conf" |
Matthew Barth | 6dec46d | 2019-04-15 15:51:23 -0500 | [diff] [blame] | 69 | ITEMS = "${@compose_list(d, 'ITEMSFMT', 'CHIPS')}" |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 70 | ITEMS_append_mihawk += " iio-hwmon-vdd0.conf" |
| 71 | ITEMS_append_mihawk += " iio-hwmon-vdd1.conf" |
| 72 | ITEMS_append_mihawk += " iio-hwmon-vcs0.conf" |
| 73 | ITEMS_append_mihawk += " iio-hwmon-vcs1.conf" |
| 74 | ITEMS_append_mihawk += " iio-hwmon-vdn0.conf" |
| 75 | ITEMS_append_mihawk += " iio-hwmon-vdn1.conf" |
| 76 | ITEMS_append_mihawk += " iio-hwmon-vio0.conf" |
| 77 | ITEMS_append_mihawk += " iio-hwmon-vio1.conf" |
| 78 | ITEMS_append_mihawk += " iio-hwmon-vddra.conf" |
| 79 | ITEMS_append_mihawk += " iio-hwmon-vddrb.conf" |
| 80 | ITEMS_append_mihawk += " iio-hwmon-vddrc.conf" |
| 81 | ITEMS_append_mihawk += " iio-hwmon-vddrd.conf" |
| 82 | ITEMS_append_mihawk += " iio-hwmon-12v.conf" |
| 83 | ITEMS_append_mihawk += " iio-hwmon-5v.conf" |
| 84 | ITEMS_append_mihawk += " iio-hwmon-3v.conf" |
| 85 | ITEMS_append_mihawk += " iio-hwmon-battery.conf" |
Matthew Barth | 84b1f2e | 2019-04-15 15:44:48 -0500 | [diff] [blame] | 86 | |
Matthew Barth | 2bd366a | 2019-06-03 15:56:24 -0500 | [diff] [blame] | 87 | OCCS = " \ |
| 88 | 00--00--00--06/sbefifo1-dev0/occ-hwmon.1 \ |
Matt Spinler | 696d1d3 | 2019-10-04 14:47:42 -0500 | [diff] [blame] | 89 | 00--00--00--0a/fsi-master/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2 \ |
Matthew Barth | 2bd366a | 2019-06-03 15:56:24 -0500 | [diff] [blame] | 90 | " |
Matt Spinler | 696d1d3 | 2019-10-04 14:47:42 -0500 | [diff] [blame] | 91 | OCCSFMT = "devices/platform/gpio-fsi/fsi-master/fsi0/slave@00--00/{0}.conf" |
Matthew Barth | 2bd366a | 2019-06-03 15:56:24 -0500 | [diff] [blame] | 92 | OCCITEMS = "${@compose_list(d, 'OCCSFMT', 'OCCS')}" |
Andrew Geissler | 2e23fb6 | 2017-05-26 16:39:03 -0500 | [diff] [blame] | 93 | |
Brandon Wyman | 37a5050 | 2017-05-22 17:35:07 -0500 | [diff] [blame] | 94 | ENVS = "obmc/hwmon/{0}" |
Brad Bishop | bb0e1d0 | 2019-07-17 17:35:55 -0400 | [diff] [blame] | 95 | SYSTEMD_ENVIRONMENT_FILE_${PN}_append_ibm-ac-server = " ${@compose_list(d, 'ENVS', 'ITEMS')}" |
| 96 | SYSTEMD_ENVIRONMENT_FILE_${PN}_append_ibm-ac-server = " ${@compose_list(d, 'ENVS', 'OCCITEMS')}" |
Ben_Pai | 949f914 | 2019-08-05 18:34:34 +0800 | [diff] [blame] | 97 | SYSTEMD_ENVIRONMENT_FILE_${PN}_append_mihawk = " ${@compose_list(d, 'ENVS', 'ITEMS')}" |
| 98 | SYSTEMD_ENVIRONMENT_FILE_${PN}_append_mihawk = " ${@compose_list(d, 'ENVS', 'OCCITEMS')}" |
Brad Bishop | 59a36b6 | 2017-08-21 20:10:29 -0400 | [diff] [blame] | 99 | |
Brad Bishop | bb0e1d0 | 2019-07-17 17:35:55 -0400 | [diff] [blame] | 100 | SYSTEMD_ENVIRONMENT_FILE_max31785-msl_append_ibm-ac-server = " obmc/hwmon-max31785/max31785.conf" |
| 101 | SYSTEMD_LINK_max31785-msl_append_ibm-ac-server = " ../phosphor-max31785-msl@.service:multi-user.target.wants/phosphor-max31785-msl@${MACHINE}.service" |
Matt Spinler | 0066e31 | 2018-04-25 10:53:41 -0500 | [diff] [blame] | 102 | |
Brad Bishop | bb0e1d0 | 2019-07-17 17:35:55 -0400 | [diff] [blame] | 103 | SYSTEMD_SERVICE_${PN}_append_ibm-ac-server = " max31785-hwmon-helper@.service" |
Matt Spinler | 2c924c5 | 2018-04-25 11:20:32 -0500 | [diff] [blame] | 104 | |
Brad Bishop | bb0e1d0 | 2019-07-17 17:35:55 -0400 | [diff] [blame] | 105 | do_install_append_ibm-ac-server() { |
Matt Spinler | 055e861 | 2018-04-25 11:26:08 -0500 | [diff] [blame] | 106 | install -d ${D}/${base_libdir}/udev/rules.d/ |
| 107 | install ${WORKDIR}/70-max31785-hwmon.rules ${D}/${base_libdir}/udev/rules.d/ |
| 108 | |
Matt Spinler | 0066e31 | 2018-04-25 10:53:41 -0500 | [diff] [blame] | 109 | install -d ${D}${bindir} |
| 110 | install -m 0755 ${WORKDIR}/start_max31785_hwmon.sh ${D}${bindir} |
| 111 | } |