Add a symlink string for FanSensor to support AST2600 PWM TACHO
This commit adds an additional symlink string to detect fan type
of the AST2600 PWM TACHO hwmon.
Tested: Fan type was detected correctly in AST2600 platform.
Change-Id: Ia1e2fbd609b1ef1dea5e41f7cc86cc6748a4be07
Signed-off-by: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
diff --git a/src/FanMain.cpp b/src/FanMain.cpp
index 3a3175f..8668add 100644
--- a/src/FanMain.cpp
+++ b/src/FanMain.cpp
@@ -65,7 +65,8 @@
{
fs::path linkPath = parentPath / "device";
std::string canonical = fs::read_symlink(linkPath);
- if (boost::ends_with(canonical, "1e786000.pwm-tacho-controller"))
+ if (boost::ends_with(canonical, "1e786000.pwm-tacho-controller") ||
+ boost::ends_with(canonical, "1e610000.pwm-tacho-controller"))
{
return FanTypes::aspeed;
}