meta-facebook: yosemite5: NIC Temp UNR DC Off
Based on the thermal team's requirements,
turn off the DC power when monitoring the NIC temperature UNR.
```
root@bmc:~# systemctl status thermal-unr-policy.service
○ thermal-unr-policy.service - Thermal UNR handler service for host protection
Loaded: loaded (/usr/lib/systemd/system/thermal-unr-policy.service; static)
Active: inactive (dead)
Aug 25 00:35:57 bmc systemd[1]: Starting Thermal UNR handler service for host protection...
Aug 25 00:35:57 bmc thermal-unr-policy[2020]: Host powering off
Aug 25 00:35:57 bmc systemd[1]: thermal-unr-policy.service: Deactivated successfully.
Aug 25 00:35:57 bmc systemd[1]: Finished Thermal UNR handler service for host protection.
```
Change-Id: Ie309121f78d9182962bb8574a73d4ba899451195
Signed-off-by: Leo Yang <Leo-Yang@quantatw.com>
diff --git a/meta-facebook/meta-yosemite5/recipes-phosphor/dbus/thermal-policy/thermal-unr-policy b/meta-facebook/meta-yosemite5/recipes-phosphor/dbus/thermal-policy/thermal-unr-policy
index 826e46c..b9ee573 100644
--- a/meta-facebook/meta-yosemite5/recipes-phosphor/dbus/thermal-policy/thermal-unr-policy
+++ b/meta-facebook/meta-yosemite5/recipes-phosphor/dbus/thermal-policy/thermal-unr-policy
@@ -6,6 +6,7 @@
declare -A SENSORS=(
["/xyz/openbmc_project/sensors/temperature/MB_CPU_TEMP_C"]="$HWMON_TEMP_SVC"
+ ["/xyz/openbmc_project/sensors/temperature/NIC0_TEMP_C"]="$HWMON_TEMP_SVC"
)
add_sel() {
diff --git a/meta-facebook/meta-yosemite5/recipes-phosphor/dbus/thermal-policy/thermal-unr.yaml b/meta-facebook/meta-yosemite5/recipes-phosphor/dbus/thermal-policy/thermal-unr.yaml
index ad8c357..456f232 100644
--- a/meta-facebook/meta-yosemite5/recipes-phosphor/dbus/thermal-policy/thermal-unr.yaml
+++ b/meta-facebook/meta-yosemite5/recipes-phosphor/dbus/thermal-policy/thermal-unr.yaml
@@ -6,6 +6,8 @@
members:
- meta: PATH
path: /xyz/openbmc_project/sensors/temperature/MB_CPU_TEMP_C
+ - meta: PATH
+ path: /xyz/openbmc_project/sensors/temperature/NIC0_TEMP_C
# UNR alarm property exposed by temperature sensors
- name: sensor unr alarm property