firmware: xilinx: Add support for runtime features
authorRonak Jain <ronak.jain@xilinx.com>
Wed, 9 Feb 2022 08:27:07 +0000 (00:27 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Feb 2022 11:13:20 +0000 (12:13 +0100)
commitf1d0821bf37ba3cecee0fd1e9ae72a943a69d01d
tree1a65f6cf8a1cc8d106811e30729f835ed6d8355a
parent86f4c65fd5003c894dd3082d53e26307fbc211cc
firmware: xilinx: Add support for runtime features

Add support for runtime features by using an IOCTL call. The features
 can be enabled or disabled from the firmware as well as the features
 can be configured at runtime by querying IOCTL_SET_FEATURE_CONFIG id.
 Similarly, the user can get the configured values of features by
 querying IOCTL_GET_FEATURE_CONFIG id.

Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Ronak Jain <ronak.jain@xilinx.com>
Link: https://lore.kernel.org/r/20220209082709.32378-2-ronak.jain@xilinx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/xilinx/zynqmp.c
include/linux/firmware/xlnx-zynqmp.h