[PATCH skeleton] Fix Firestone,Garrison i2c addresses for OCC

OpenBMC Patches openbmc-patches at stwcx.xyz
Thu Jun 16 11:40:50 AEST 2016


From: Brad Bishop <bradleyb at fuzziesquirrel.com>

Previously these were hardcoded via a garrison layer patch.
When skeleton started looking for addresses in the system
configuration file and stopped hardcoding them, the garrison
and firestone files were updated but with the barreleye
addresses.

Signed-off-by: Brad Bishop <bradleyb at fuzziesquirrel.com>
---
 configs/Firestone.py | 4 ++--
 configs/Garrison.py  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/configs/Firestone.py b/configs/Firestone.py
index 4767178..988d09e 100644
--- a/configs/Firestone.py
+++ b/configs/Firestone.py
@@ -617,9 +617,9 @@ MISC_SENSORS = {
 	0x5f : { 'class' : 'BootCountSensor' },
 	0x05 : { 'class' : 'BootProgressSensor' },
 	0x08 : { 'class' : 'OccStatusSensor',
-		'os_path' : '/sys/class/i2c-adapter/i2c-3/3-0050/online' },
+		'os_path' : '/sys/class/i2c-adapter/i2c-4/4-0050/online' },
 	0x09 : { 'class' : 'OccStatusSensor',
-		'os_path' : '/sys/class/i2c-adapter/i2c-3/3-0051/online' },
+		'os_path' : '/sys/class/i2c-adapter/i2c-5/5-0050/online' },
 	0xb5 : { 'class' : 'OperatingSystemStatusSensor' },
 	0xb3 : { 'class' : 'PowerCap',
 		'os_path' : '/sys/class/hwmon/hwmon3/user_powercap' },
diff --git a/configs/Garrison.py b/configs/Garrison.py
index e8f0927..617f083 100644
--- a/configs/Garrison.py
+++ b/configs/Garrison.py
@@ -617,9 +617,9 @@ MISC_SENSORS = {
 	0x5f : { 'class' : 'BootCountSensor' },
 	0x05 : { 'class' : 'BootProgressSensor' },
 	0x08 : { 'class' : 'OccStatusSensor',
-		'os_path' : '/sys/class/i2c-adapter/i2c-3/3-0050/online' },
+		'os_path' : '/sys/class/i2c-adapter/i2c-4/4-0050/online' },
 	0x09 : { 'class' : 'OccStatusSensor',
-		'os_path' : '/sys/class/i2c-adapter/i2c-3/3-0051/online' },
+		'os_path' : '/sys/class/i2c-adapter/i2c-5/5-0050/online' },
 	0xb5 : { 'class' : 'OperatingSystemStatusSensor' },
 	0xb3 : { 'class' : 'PowerCap',
 		'os_path' : '/sys/class/hwmon/hwmon3/user_powercap' },
-- 
2.8.4




More information about the openbmc mailing list