arm-trusted-firmware/plat/xilinx/zynqmp/pm_service
Jolly Shah bd642dde65 zynqmp: pm: Reimplement clock enable EEMI API
Clock enable EEMI API is reimplemented to use system-level clock
and pll EEMI APIs rather than direct MMIO read/write accesses to clock
and pll control registers.
Since linux still uses clock enable API to trigger locking of the PLLs
in the pm_clock_enable() implementation we need to workaround this by
distinguishing two cases: 1) if the given clock ID corresponds to a PLL
output clock ID; or 2) given clock ID is truly an on-chip clock that can
be gated.
For case 1) we'll call pm_api_clock_pll_enable() implemented in
pm_api_clock.h/c. This function checks what is the buffered PLL mode and
calls the system-level PLL set mode EEMI API with the buffered mode value
specified as argument. Long term, if linux driver get fixed to use PLL
EEMI API to control PLLs, this case could be removed from ATF.
For case 2) we'll call the PMU to configure the clock gate. This is done
using system-level clock enable EEMI API.

Signed-off-by: Mirela Simonovic <mirela.simonovic@aggios.com>
Acked-by: Will Wong <WILLW@xilinx.com>
Signed-off-by: Jolly Shah <jollys@xilinx.com>
2019-01-04 11:47:30 -08:00
..
pm_api_clock.c zynqmp: pm: Reimplement clock enable EEMI API 2019-01-04 11:47:30 -08:00
pm_api_clock.h zynqmp: pm: Reimplement clock enable EEMI API 2019-01-04 11:47:30 -08:00
pm_api_ioctl.c zynqmp: pm: Return the buffered PLL mode through IOCTL PLL get mode API 2019-01-04 11:43:16 -08:00
pm_api_ioctl.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
pm_api_pinctrl.c zynqmp: pm: Minor corrections for MISRA compliance 2018-03-15 10:28:29 -07:00
pm_api_pinctrl.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
pm_api_sys.c zynqmp: pm: Reimplement clock enable EEMI API 2019-01-04 11:47:30 -08:00
pm_api_sys.h zynqmp: pm: Implement PLL get mode EEMI API 2019-01-04 11:36:00 -08:00
pm_client.c zynqmp: pm: Add support for setting suspend-to-RAM mode 2018-05-17 15:11:33 +05:30
pm_client.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
pm_common.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
pm_defs.h zynqmp: pm: Implement PLL get mode EEMI API 2019-01-04 11:36:00 -08:00
pm_ipi.c xilinx: zynqmp: pm_service: Fix APU only restart 2018-05-17 15:19:14 +05:30
pm_ipi.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
pm_svc_main.c zynqmp: pm: Implement PLL get mode EEMI API 2019-01-04 11:36:00 -08:00
pm_svc_main.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00