commit | 70a43c0411591dbf47dcc4cc0ab385c14a0bd4bd | [log] [tgz] |
---|---|---|
author | Lei YU <mine260309@gmail.com> | Wed Jan 24 17:28:48 2018 +0800 |
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | Fri Jan 26 19:16:21 2018 +0000 |
tree | 45bf11bbffcf7347bf67293079d27a99dec766f7 | |
parent | 9f5607f83657dd2c3498466f065a64fa347eb72f [diff] |
meta-romulus: Add w83773g sensor config Romulus uses w83773g hwmon sensor and it has 3 temperature sensors. Add the kernel config and hwmon config to use the sensor. Change-Id: If9ddc5eba17fa7e60b714d158c00e43d7e5378f8 Signed-off-by: Lei YU <mine260309@gmail.com>
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-kernel/linux/linux-obmc/romulus.cfg b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-kernel/linux/linux-obmc/romulus.cfg index 2a20c7e..9bdc179 100644 --- a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-kernel/linux/linux-obmc/romulus.cfg +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-kernel/linux/linux-obmc/romulus.cfg
@@ -2,3 +2,4 @@ CONFIG_SENSORS_TMP421=y CONFIG_SENSORS_MAX31785=y CONFIG_RTC_DRV_RV8803=y +CONFIG_SENSORS_W83773G=y
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%.bbappend b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%.bbappend index ebe0a53..7969349 100644 --- a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%.bbappend +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%.bbappend
@@ -8,6 +8,7 @@ SRC_URI += " file://0001-sysfs-Return-ETIMEDOUT-instead-of-throw-exception.patch" CHIPS = " \ + i2c@1e78a000/i2c-bus@440/w83773g@4c \ pwm-tacho-controller@1e786000 \ " ITEMSFMT = "ahb/apb/{0}.conf"
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@440/w83773g@4c.conf b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@440/w83773g@4c.conf new file mode 100644 index 0000000..86a8026 --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/ahb/apb/i2c@1e78a000/i2c-bus@440/w83773g@4c.conf
@@ -0,0 +1,17 @@ +LABEL_temp1 = "outlet" +WARNHI_temp1 = "60000" +WARNLO_temp1 = "0" +CRITHI_temp1 = "70000" +CRITLO_temp1 = "0" + +LABEL_temp2 = "inlet_cpu" +WARNHI_temp2 = "60000" +WARNLO_temp2 = "0" +CRITHI_temp2 = "70000" +CRITLO_temp2 = "0" + +LABEL_temp3 = "inlet_io" +WARNHI_temp3 = "60000" +WARNLO_temp3 = "0" +CRITHI_temp3 = "70000" +CRITLO_temp3 = "0"