Commit 43a029cb authored by Mirela Simonovic's avatar Mirela Simonovic Committed by Rajan Vaja
Browse files

zynqmp: pm: Implement pinctrl request/release EEMI API



The calls are just passed through to the PMU-FW. Before issuing
other pinctrl functions the pin should be successfully requested.
Signed-off-by: default avatarMirela Simonovic <mirela.simonovic@aggios.com>
Signed-off-by: default avatarRajan Vaja <rajan.vaja@xilinx.com>
Change-Id: Ibce280edebedf779b3962009c274d0b3d928e0e4
parent 4b310108
...@@ -655,7 +655,11 @@ void pm_get_callbackdata(uint32_t *data, size_t count) ...@@ -655,7 +655,11 @@ void pm_get_callbackdata(uint32_t *data, size_t count)
*/ */
enum pm_ret_status pm_pinctrl_request(unsigned int pin) enum pm_ret_status pm_pinctrl_request(unsigned int pin)
{ {
return PM_RET_SUCCESS; uint32_t payload[PAYLOAD_ARG_CNT];
/* Send request to the PMU */
PM_PACK_PAYLOAD2(payload, PM_PINCTRL_REQUEST, pin);
return pm_ipi_send_sync(primary_proc, payload, NULL, 0);
} }
/** /**
...@@ -668,7 +672,11 @@ enum pm_ret_status pm_pinctrl_request(unsigned int pin) ...@@ -668,7 +672,11 @@ 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)
{ {
return PM_RET_SUCCESS; uint32_t payload[PAYLOAD_ARG_CNT];
/* Send request to the PMU */
PM_PACK_PAYLOAD2(payload, PM_PINCTRL_RELEASE, pin);
return pm_ipi_send_sync(primary_proc, payload, NULL, 0);
} }
/** /**
......
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