summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRavi Patel <ravi.patel@xilinx.com>2019-11-12 09:35:55 +0100
committerMichal Simek <michal.simek@xilinx.com>2019-12-12 15:46:04 +0100
commit461011b1e1ab62aa8a8af78d5b7ee0f81bd1fa37 (patch)
tree1c1600c24f3de05ec76a3deba17893c469e68040 /include
parentLinux 5.5-rc1 (diff)
downloadlinux-461011b1e1ab62aa8a8af78d5b7ee0f81bd1fa37.tar.xz
linux-461011b1e1ab62aa8a8af78d5b7ee0f81bd1fa37.zip
drivers: firmware: xilinx: Add support for feature check
Query for corresponding feature before calling EEMI API from the driver. Signed-off-by: Ravi Patel <ravi.patel@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/firmware/xlnx-zynqmp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h
index e41ad9e37136..e72eccf69721 100644
--- a/include/linux/firmware/xlnx-zynqmp.h
+++ b/include/linux/firmware/xlnx-zynqmp.h
@@ -48,6 +48,10 @@
#define ZYNQMP_PM_CAPABILITY_WAKEUP 0x4U
#define ZYNQMP_PM_CAPABILITY_UNUSABLE 0x8U
+/* Feature check status */
+#define PM_FEATURE_INVALID -1
+#define PM_FEATURE_UNCHECKED 0
+
/*
* Firmware FPGA Manager flags
* XILINX_ZYNQMP_PM_FPGA_FULL: FPGA full reconfiguration
@@ -78,11 +82,14 @@ enum pm_api_id {
PM_CLOCK_GETRATE,
PM_CLOCK_SETPARENT,
PM_CLOCK_GETPARENT,
+ PM_FEATURE_CHECK = 63,
+ PM_API_MAX,
};
/* PMU-FW return status codes */
enum pm_ret_status {
XST_PM_SUCCESS = 0,
+ XST_PM_NO_FEATURE = 19,
XST_PM_INTERNAL = 2000,
XST_PM_CONFLICT,
XST_PM_NO_ACCESS,