Commit 494c55a1 authored by Ronak Jain's avatar Ronak Jain Committed by Michal Simek

firmware: xilinx: Move FIRMWARE_VERSION_MASK to xlnx-zynqmp.h

Move FIRMWARE_VERSION_MASK macro to xlnx-zynqmp.h so that other
drivers can use it for verifying the supported firmware version.
Signed-off-by: default avatarRonak Jain <ronak.jain@amd.com>
Signed-off-by: default avatarAnand Ashok Dumbre <anand.ashok.dumbre@amd.com>
Signed-off-by: default avatarRadhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Link: https://lore.kernel.org/r/20240425095913.919390-1-ronak.jain@amd.comSigned-off-by: default avatarMichal Simek <michal.simek@amd.com>
parent fcf544ac
...@@ -41,9 +41,6 @@ ...@@ -41,9 +41,6 @@
/* IOCTL/QUERY feature payload size */ /* IOCTL/QUERY feature payload size */
#define FEATURE_PAYLOAD_SIZE 2 #define FEATURE_PAYLOAD_SIZE 2
/* Firmware feature check version mask */
#define FIRMWARE_VERSION_MASK GENMASK(15, 0)
static bool feature_check_enabled; static bool feature_check_enabled;
static DEFINE_HASHTABLE(pm_api_features_map, PM_API_FEATURE_CHECK_MAX_ORDER); static DEFINE_HASHTABLE(pm_api_features_map, PM_API_FEATURE_CHECK_MAX_ORDER);
static u32 ioctl_features[FEATURE_PAYLOAD_SIZE]; static u32 ioctl_features[FEATURE_PAYLOAD_SIZE];
......
...@@ -36,7 +36,6 @@ static int event_manager_availability = -EACCES; ...@@ -36,7 +36,6 @@ static int event_manager_availability = -EACCES;
#define MAX_BITS (32U) /* Number of bits available for error mask */ #define MAX_BITS (32U) /* Number of bits available for error mask */
#define FIRMWARE_VERSION_MASK (0xFFFFU)
#define REGISTER_NOTIFIER_FIRMWARE_VERSION (2U) #define REGISTER_NOTIFIER_FIRMWARE_VERSION (2U)
static DEFINE_HASHTABLE(reg_driver_map, REGISTERED_DRIVER_MAX_ORDER); static DEFINE_HASHTABLE(reg_driver_map, REGISTERED_DRIVER_MAX_ORDER);
......
...@@ -52,6 +52,9 @@ ...@@ -52,6 +52,9 @@
#define API_ID_MASK GENMASK(7, 0) #define API_ID_MASK GENMASK(7, 0)
#define MODULE_ID_MASK GENMASK(11, 8) #define MODULE_ID_MASK GENMASK(11, 8)
/* Firmware feature check version mask */
#define FIRMWARE_VERSION_MASK 0xFFFFU
/* ATF only commands */ /* ATF only commands */
#define TF_A_PM_REGISTER_SGI 0xa04 #define TF_A_PM_REGISTER_SGI 0xa04
#define PM_GET_TRUSTZONE_VERSION 0xa03 #define PM_GET_TRUSTZONE_VERSION 0xa03
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment