]> git.baikalelectronics.ru Git - arm-tf.git/commit
feat(versal): get version for ATF related EEMI APIs
authorRonak Jain <ronak.jain@xilinx.com>
Fri, 4 Feb 2022 08:42:55 +0000 (00:42 -0800)
committerTanmay Shah <tanmay.shah@xilinx.com>
Tue, 26 Apr 2022 23:44:11 +0000 (01:44 +0200)
commitda6e654bc8b03ee784d0e96a71c4e591e63930f2
treee4f74316306df155d1a1c4f43b4c4c9b07579d2d
parentd34a5db8a76abdfc8fa68f43b24b971699086a06
feat(versal): get version for ATF related EEMI APIs

The patch does below things.

1. As per current implementation, when Linux send a request to ATF to
 get the version of APIs which are implemented in ATF then ATF wasn't
 returning any version because there is a check for LIBPM module id.
 The ATF is used to return version for the APIs which are implemented
 in the firmware only.

 Hence moved this switch-case before checking module id to get ATF
 version.

 Also, no need to pass Linux request to the firmware for the APIs
 which are implemented in ATF instead return success after updating
 version.

2. As per current implementation, higher 16-bit is used for ATF
 version and lower 16-bit is used for firmware version. Now, removed
 16-bit shift operation and send complete word i.e. 32-bit to Linux
 user as there is no user who checks ATF version.

3. Add bit mask support in the feature check PM EEMI API for QUERY and
 IOCTL ids.

Change-Id: Icdca3de6659f3b673b81a423ed79a3c20b678768
Signed-off-by: Ronak Jain <ronak.jain@xilinx.com>
Signed-off-by: Tanmay Shah <tanmay.shah@xilinx.com>
plat/xilinx/versal/pm_service/pm_api_sys.c
plat/xilinx/versal/pm_service/pm_api_sys.h
plat/xilinx/versal/pm_service/pm_defs.h
plat/xilinx/versal/pm_service/pm_svc_main.c