mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 23:21:46 +00:00
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>
This commit is contained in:
parent
e42617b825
commit
461011b1e1
2 changed files with 50 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue