fpga: dfl: afu: add userclock sysfs interfaces.
authorWu Hao <hao.wu@intel.com>
Mon, 12 Aug 2019 02:49:59 +0000 (10:49 +0800)
committerMoritz Fischer <mdf@kernel.org>
Wed, 4 Sep 2019 02:35:41 +0000 (19:35 -0700)
commitf09991adfb3454530598586424ece3082e95fb0b
tree98e9f076a9500aba434187ea513a6949baab2831
parenta80a4b82e7d8cf71bf495bda92072d1397b790a1
fpga: dfl: afu: add userclock sysfs interfaces.

This patch introduces userclock sysfs interfaces for AFU, user
could use these interfaces for clock setting to AFU.

Please note that, this is only working for port header feature
with revision 0, for later revisions, userclock setting is moved
to a separated private feature, so one revision sysfs interface
is exposed to userspace application for this purpose too.

Signed-off-by: Ananda Ravuri <ananda.ravuri@intel.com>
Signed-off-by: Russ Weight <russell.h.weight@intel.com>
Signed-off-by: Xu Yilun <yilun.xu@intel.com>
Signed-off-by: Wu Hao <hao.wu@intel.com>
Acked-by: Alan Tull <atull@kernel.org>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
Documentation/ABI/testing/sysfs-platform-dfl-port
drivers/fpga/dfl-afu-main.c
drivers/fpga/dfl.h