From 8bc945fbcc575b5ee52c15f0478cd66e2c84c10b Mon Sep 17 00:00:00 2001 From: Jolly Shah Date: Wed, 2 Jan 2019 13:39:30 -0800 Subject: [PATCH] zynqmp: pm: Cleanup for clock set/get rate EEMI API Clock set/get rate are not implemented and will likely never be. Remove empty function stubs. Signed-off-by: Mirela Simonovic Acked-by: Will Wong Signed-off-by: Jolly Shah --- plat/xilinx/zynqmp/pm_service/pm_api_clock.c | 31 -------------------- plat/xilinx/zynqmp/pm_service/pm_api_clock.h | 4 --- plat/xilinx/zynqmp/pm_service/pm_api_sys.c | 4 +-- 3 files changed, 2 insertions(+), 37 deletions(-) diff --git a/plat/xilinx/zynqmp/pm_service/pm_api_clock.c b/plat/xilinx/zynqmp/pm_service/pm_api_clock.c index e8053060..2e07779d 100644 --- a/plat/xilinx/zynqmp/pm_service/pm_api_clock.c +++ b/plat/xilinx/zynqmp/pm_service/pm_api_clock.c @@ -2628,37 +2628,6 @@ enum pm_ret_status pm_clock_pll_get_state(struct pm_pll *pll, return PM_RET_SUCCESS; } -/** - * pm_api_clock_setrate - Set the clock rate for given id - * @clock_id Id of the clock - * @rate Rate value in hz - * - * This function is used by master to set rate for any clock. - * - * Return: Returns status, either success or error+reason. - */ -enum pm_ret_status pm_api_clock_setrate(unsigned int clock_id, - uint64_t rate) -{ - return PM_RET_ERROR_NOTSUPPORTED; -} - -/** - * pm_api_clock_getrate - Get the clock rate for given id - * @clock_id Id of the clock - * @rate rate value in hz - * - * This function is used by master to get rate - * for any clock. - * - * Return: Returns status, either success or error+reason. - */ -enum pm_ret_status pm_api_clock_getrate(unsigned int clock_id, - uint64_t *rate) -{ - return PM_RET_ERROR_NOTSUPPORTED; -} - /** * pm_api_clock_setparent - Set the clock parent for given id * @clock_id Id of the clock diff --git a/plat/xilinx/zynqmp/pm_service/pm_api_clock.h b/plat/xilinx/zynqmp/pm_service/pm_api_clock.h index 419690a1..c599f59f 100644 --- a/plat/xilinx/zynqmp/pm_service/pm_api_clock.h +++ b/plat/xilinx/zynqmp/pm_service/pm_api_clock.h @@ -300,10 +300,6 @@ enum pm_ret_status pm_clock_pll_enable(struct pm_pll *pll); enum pm_ret_status pm_clock_pll_disable(struct pm_pll *pll); enum pm_ret_status pm_clock_pll_get_state(struct pm_pll *pll, unsigned int *state); -enum pm_ret_status pm_api_clock_setrate(unsigned int clock_id, - uint64_t rate); -enum pm_ret_status pm_api_clock_getrate(unsigned int clock_id, - uint64_t *rate); enum pm_ret_status pm_api_clock_setparent(unsigned int clock_id, unsigned int parent_idx); enum pm_ret_status pm_api_clock_getparent(unsigned int clock_id, diff --git a/plat/xilinx/zynqmp/pm_service/pm_api_sys.c b/plat/xilinx/zynqmp/pm_service/pm_api_sys.c index 402b7c68..eb54bcb7 100644 --- a/plat/xilinx/zynqmp/pm_service/pm_api_sys.c +++ b/plat/xilinx/zynqmp/pm_service/pm_api_sys.c @@ -1060,7 +1060,7 @@ enum pm_ret_status pm_clock_getdivider(unsigned int clock_id, enum pm_ret_status pm_clock_setrate(unsigned int clock_id, uint64_t rate) { - return pm_api_clock_setrate(clock_id, rate); + return PM_RET_ERROR_NOTSUPPORTED; } /** @@ -1076,7 +1076,7 @@ enum pm_ret_status pm_clock_setrate(unsigned int clock_id, enum pm_ret_status pm_clock_getrate(unsigned int clock_id, uint64_t *rate) { - return pm_api_clock_getrate(clock_id, rate); + return PM_RET_ERROR_NOTSUPPORTED; } /** -- 2.30.2