zynqmp: pm: Buffer the PLL mode that is set using IOCTL API
When linux calls pm_ioctl_set_pll_frac_mode() it doesn't expect the
fractional mode to be changed in hardware. Furthermore, even before this
patch setting the mode which is done by writing into register takes
no effect until the PLL reset is deasserted, i.e. until linux "enables"
the PLL. To adjust the code to system-level PLL EEMI API and avoid
unnecessary IPIs that would otherwise be issued, we buffer the mode
value set via IOCTL until the PLL mode really needs to be set.

Signed-off-by: Mirela Simonovic <mirela.simonovic@aggios.com>
Acked-by: Will Wong <WILLW@xilinx.com>
Signed-off-by: Jolly Shah <jollys@xilinx.com>
1 parent cf1769b commit 8975f317e7608c832192b71531901602dc625484
@Jolly Shah Jolly Shah authored on 2 Jan 2019
Showing 3 changed files
View
plat/xilinx/zynqmp/pm_service/pm_api_clock.c
View
plat/xilinx/zynqmp/pm_service/pm_api_clock.h
View
plat/xilinx/zynqmp/pm_service/pm_api_ioctl.c