From 80f271b296488e12d4edd29b5bb908a407fbda1f Mon Sep 17 00:00:00 2001 From: Lei YU Date: Wed, 31 Jan 2018 15:24:46 +0800 Subject: Add target interface for fan monitor Current fan monitor assumes the use of the FanSpeed interface for fan targets. For fans controlled by pwm, FanPwm interface is added. This commit adds a "target_interface" config parameter, so that user can specify the interface for the fan targets. E.g. - name: fan0 has_target: true target_interface: xyz.openbmc_project.Control.FanPwm This config is optional and defaults to FanSpeed, so the current code will not be affected. Tested: Use this config on Romulus, ensures fan monitor gets fan target from FanPwm interface and works OK. Change-Id: I262a486c335b2b43a46af7abdd0e71e95a133b98 Signed-off-by: Lei YU --- monitor/fan.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'monitor/fan.cpp') diff --git a/monitor/fan.cpp b/monitor/fan.cpp index 81d27e0..637a3ca 100644 --- a/monitor/fan.cpp +++ b/monitor/fan.cpp @@ -53,6 +53,7 @@ Fan::Fan(Mode mode, *this, std::get(s), std::get(s), + std::get(s), std::get(s), std::get(s), std::get(def), -- cgit v1.2.1