commit | a4bba96ed8e6a706928bd2c4de5f113df9304047 | [log] [tgz] |
---|---|---|
author | Lei YU <mine260309@gmail.com> | Wed Jan 31 13:51:05 2018 +0800 |
committer | Lei YU <mine260309@gmail.com> | Fri Feb 02 14:20:52 2018 +0800 |
tree | 221c329632b8d1b5825995b6dcd2c4ac4aaa761f | |
parent | 9331ab7846750a05b90efd845935bfd3275e694c [diff] |
Add pwm id as fan pwm target The current code assumes fan and pwm has the same id. This commit add the support to use pwmX as fan pwm target by PWM_TARGET_ environment. E.g. PWM_TARGET_fan0 = "1" PWM_TARGET_fan1 = "1" PWM_TARGET_fan2 = "2" PWM_TARGET_fan3 = "2" The above config tells hwmon to set pwm1 for fan0/1's pwm target, and set pwm2 for fan2/3's pwm target. Change-Id: Ic1d850ca3d6d20274d905fa9004d7eba2718e9eb Signed-off-by: Lei YU <mine260309@gmail.com>
Exposes generic hwmon entries as DBus objects.
To build this package, do the following steps: 1. ./bootstrap.sh 2. ./configure ${CONFIGURE_FLAGS} 3. make To full clean the repository again run `./bootstrap.sh clean`.
To enable the use of Linux features like cgroups prioritization and udev/systemd control, one instance of phosphor-hwmon is intended to be run per hwmon sysfs class instance. This requires an algorithm for selecting a stable, well-known D-Bus busname. The algorithm is <PREFIX>-<ID>.Hwmon<N> where PREFIX is an autoconf configurable prefix (BUSNAME_PREFIX, xyz.openbmc_project by default), ID is a std::hash of the /sys/devices path backing the hwmon class instance, and N is the implemented phosphor-hwmon D-Bus API version.