fpga: dfl: fme: add power management support
authorWu Hao <hao.wu@intel.com>
Mon, 14 Oct 2019 05:42:03 +0000 (13:42 +0800)
committerMoritz Fischer <mdf@kernel.org>
Thu, 17 Oct 2019 02:18:27 +0000 (19:18 -0700)
commitfddc9fcbe69a502d84adf0bad5e2c6c80823838c
tree0232f3815f3046bb6b8c08d714eba9c843a568f8
parent4284c65a9fda9d31f45209062f1b7f9bb438fc04
fpga: dfl: fme: add power management support

This patch adds support for power management private feature under
FPGA Management Engine (FME). This private feature driver registers
a hwmon for power (power1_input), thresholds information, e.g.
(power1_max / crit / max_alarm / crit_alarm) and also read-only sysfs
interfaces for other power management information. For configuration,
user could write threshold values via above power1_max / crit sysfs
interface under hwmon too.

Signed-off-by: Luwei Kang <luwei.kang@intel.com>
Signed-off-by: Xu Yilun <yilun.xu@intel.com>
Signed-off-by: Wu Hao <hao.wu@intel.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Moritz Fischer <mdf@kernel.org>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
Documentation/ABI/testing/sysfs-platform-dfl-fme
drivers/fpga/dfl-fme-main.c