Add SBTSI device to i2c h2mon new_device list
Similar to the other devices in the entity-manager whitelist,
this dynamically loads the "sbtsi" kernel driver.
This is the AMD SB-TSI interface for obtaining CPU temperature.
This driver simply provides temperature,
so the corresponding program in dbus-sensors is hwmontempsensor.
In a separate patch,
SBTSI has also been added to the hwmontempsensor whitelist.
Tested: With corresponding hwmontempsensor patch, it works.
Signed-off-by: Josh Lehan <krellan@google.com>
Change-Id: Icb40878412690319de38a91c8728aa0948300288
diff --git a/include/devices.hpp b/include/devices.hpp
index f15fc51..16d1822 100644
--- a/include/devices.hpp
+++ b/include/devices.hpp
@@ -95,6 +95,8 @@
{"PCA9547Mux",
ExportTemplate("pca9547 $Address",
"/sys/bus/i2c/devices/i2c-$Bus/new_device")},
+ {"SBTSI", ExportTemplate("sbtsi $Address",
+ "/sys/bus/i2c/devices/i2c-$Bus/new_device")},
{"pmbus", ExportTemplate("pmbus $Address",
"/sys/bus/i2c/devices/i2c-$Bus/new_device")},
{"TMP112", ExportTemplate("tmp112 $Address",