Commit b84fb058 authored by Siva Durga Prasad Paladugu's avatar Siva Durga Prasad Paladugu
Browse files

plat: xilinx: zynqmp: Remove GET_CALLBACK_DATA function



GET_CALLBACK_DATA function is not required now. IPI mailbox
can be used instead of GET_CALLBACK_DATA function.
Signed-off-by: default avatarSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
parent 85dc2d4d
...@@ -601,18 +601,6 @@ enum pm_ret_status pm_secure_rsaaes(uint32_t address_low, ...@@ -601,18 +601,6 @@ enum pm_ret_status pm_secure_rsaaes(uint32_t address_low,
return pm_ipi_send_sync(primary_proc, payload, NULL, 0); return pm_ipi_send_sync(primary_proc, payload, NULL, 0);
} }
/**
* pm_get_callbackdata() - Read from IPI response buffer
* @data - array of PAYLOAD_ARG_CNT elements
*
* Read value from ipi buffer response buffer.
*/
void pm_get_callbackdata(uint32_t *data, size_t count)
{
pm_ipi_buff_read_callb(data, count);
pm_ipi_irq_clear(primary_proc);
}
/** /**
* pm_pinctrl_request() - Request Pin from firmware * pm_pinctrl_request() - Request Pin from firmware
* @pin Pin number to request * @pin Pin number to request
......
...@@ -113,7 +113,6 @@ enum pm_ret_status pm_secure_rsaaes(uint32_t address_high, ...@@ -113,7 +113,6 @@ enum pm_ret_status pm_secure_rsaaes(uint32_t address_high,
uint32_t address_low, uint32_t address_low,
uint32_t size, uint32_t size,
uint32_t flags); uint32_t flags);
void pm_get_callbackdata(uint32_t *data, size_t count);
unsigned int pm_get_shutdown_scope(void); unsigned int pm_get_shutdown_scope(void);
enum pm_ret_status pm_pinctrl_request(unsigned int pin); enum pm_ret_status pm_pinctrl_request(unsigned int pin);
enum pm_ret_status pm_pinctrl_release(unsigned int pin); enum pm_ret_status pm_pinctrl_release(unsigned int pin);
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#include "pm_client.h" #include "pm_client.h"
#include "pm_ipi.h" #include "pm_ipi.h"
#define PM_GET_CALLBACK_DATA 0xa01
#define PM_SET_SUSPEND_MODE 0xa02 #define PM_SET_SUSPEND_MODE 0xa02
#define PM_GET_TRUSTZONE_VERSION 0xa03 #define PM_GET_TRUSTZONE_VERSION 0xa03
...@@ -256,16 +255,6 @@ uint64_t pm_smc_handler(uint32_t smc_fid, uint64_t x1, uint64_t x2, uint64_t x3, ...@@ -256,16 +255,6 @@ uint64_t pm_smc_handler(uint32_t smc_fid, uint64_t x1, uint64_t x2, uint64_t x3,
pm_arg[3]); pm_arg[3]);
SMC_RET1(handle, (uint64_t)ret); SMC_RET1(handle, (uint64_t)ret);
case PM_GET_CALLBACK_DATA:
{
uint32_t result[4];
pm_get_callbackdata(result, sizeof(result));
SMC_RET2(handle,
(uint64_t)result[0] | ((uint64_t)result[1] << 32),
(uint64_t)result[2] | ((uint64_t)result[3] << 32));
}
case PM_PINCTRL_REQUEST: case PM_PINCTRL_REQUEST:
ret = pm_pinctrl_request(pm_arg[0]); ret = pm_pinctrl_request(pm_arg[0]);
SMC_RET1(handle, (uint64_t)ret); SMC_RET1(handle, (uint64_t)ret);
......
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