]> git.baikalelectronics.ru Git - arm-tf.git/commit
xilinx: versal: Updated Response of QueryData API call
authorRajan Vaja <rajan.vaja@xilinx.com>
Mon, 23 Nov 2020 12:13:54 +0000 (04:13 -0800)
committerManish Pandey <manish.pandey2@arm.com>
Mon, 7 Dec 2020 11:09:56 +0000 (11:09 +0000)
commit1ba2d84fe2959cc2f8720c38855760af5d77e298
treed2070b19782a387d118249e99d4c937072c9982a
parentabf27efac609123c06d987d0532d2c04e8668591
xilinx: versal: Updated Response of QueryData API call

For the current XilPM calls, The handler of IPI returns information
with 16 Bytes data.
So during QueryData API call for the ClockName and PinFunctionName,
response data(name of clock or function) response[0..3] are used to
return name. And status is not being returned for such API.

Updated XilPM calls reply in a consistent way and The handler of IPI
return information with 32Bytes data. Where response[0] always set
to status.
For the version-2 of QueryData API, during call for the ClockName
and PinFunctionName, response data(name of clock or function) get as
response[1...4].

To support both the version of QueryData API, added version based
compatibility by the use of feature check.

Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com>
Signed-off-by: Amit Sunil Dhamne <amit.sunil.dhamne@xilinx.com>
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Change-Id: I336128bff7bbe659903b0f8ce20ae6da7e3b51b4
plat/xilinx/versal/pm_service/pm_api_sys.c
plat/xilinx/versal/pm_service/pm_defs.h
plat/xilinx/versal/pm_service/pm_svc_main.c