diff options
author | Lei YU <mine260309@gmail.com> | 2016-10-14 11:45:05 +0800 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-10-20 19:21:47 +0000 |
commit | 25a2243e0862ee35f53dc48f471ae61f048ef00e (patch) | |
tree | 99e63df31b0d356c254afa7bb3bbca3499f42d1e /configs | |
parent | e6592b514af5ee8a2ef0391010074bbd480de181 (diff) | |
download | blackbird-skeleton-25a2243e0862ee35f53dc48f471ae61f048ef00e.tar.gz blackbird-skeleton-25a2243e0862ee35f53dc48f471ae61f048ef00e.zip |
Add hwmon0 config in Palmetto.py and Barreleye.py
Both Palmetto.py and Barreleye are missing hwmon0 in HWMON_CONFIG,
which results in `Unhandled hwmon` warning log flood.
Add hwmon0's config (i2c 0-0068 for RTC ds3231's temperature) to fix the
issue.
Resolves openbmc/openbmc#608
Change-Id: Ief6a13e2cec64fbc25348c715d81bf1e2f1f5564
Signed-off-by: Lei YU <mine260309@gmail.com>
Diffstat (limited to 'configs')
-rw-r--r-- | configs/Barreleye.py | 5 | ||||
-rw-r--r-- | configs/Palmetto.py | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/configs/Barreleye.py b/configs/Barreleye.py index cbcd2d8..8e7af2c 100644 --- a/configs/Barreleye.py +++ b/configs/Barreleye.py @@ -369,6 +369,11 @@ HWMON_CONFIG = { 'temp1_input' : { 'object_path' : 'temperature/ambient','poll_interval' : 5000,'scale' : -3,'units' : 'C' }, } }, + '0-0068' : { + 'names' : { + 'temp1_input' : { 'object_path' : 'temperature/rtc','poll_interval' : 5000,'scale' : -3,'units' : 'C' }, + } + }, '6-002d' : { 'names' : { 'pwm1' : { 'object_path' : 'speed/fan0','poll_interval' : 10000,'scale' : 1,'units' : '' }, diff --git a/configs/Palmetto.py b/configs/Palmetto.py index 8abe4fe..19037a1 100644 --- a/configs/Palmetto.py +++ b/configs/Palmetto.py @@ -108,6 +108,11 @@ GPIO_CONFIG['MEZZ1_PRESENT'] = { 'gpio_pin': 'O1', 'direction': 'in' } GPIO_CONFIG['CHECKSTOP'] = { 'gpio_pin': 'P5', 'direction': 'falling' } HWMON_CONFIG = { + '0-0068' : { + 'names' : { + 'temp1_input' : { 'object_path' : 'temperature/rtc','poll_interval' : 5000,'scale' : -3,'units' : 'C' }, + } + }, '2-004c' : { 'names' : { 'temp1_input' : { 'object_path' : 'temperature/ambient','poll_interval' : 5000,'scale' : -3,'units' : 'C' }, |