arm-trusted-firmware/plat
Ravi Patel c8f6253683 zynqmp: pm: Update flags in common clk divisor node
Current implementation doesn't support change of div1 value if clk
has 2 divisor because div1 clk is the parent of the div2 clk and div2
clk does not have SET_RATE_PARENT flag.
This causes div1 value to be fixed and only value of div2 will be
adjusted according to required clock rate.

Example:
 Consider a case of nand_ref clock which has 2 divisor and 1 mux.
 The frequency of mux clock is 1500MHz and default value of div1 and
 div2 is 15 and 1 respectively. So the final clock will be of 100MHz.
 When driver requests 80MHz for nand_ref clock, clock framework will
 adjust the div2 value to 1 (setting div2 value 2 results final clock
 to 50MHz which is more inaccurate compare to 100Mhz) which results
 final clock to 100MHz.
 Ideally the value of div1 and div2 should be updated to 19 and 1
 respectively so that final clock goes to around 78MHz.

This patch fixes above problem by allowing change in div1 value.

Signed-off-by: Ravi Patel <ravi.patel@xilinx.com>
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Change-Id: Ibb98f6748d28653fdd1e59bf433b6a37ce9c1a58
2020-12-08 22:24:44 +00:00
..
allwinner plat/allwinner: Use common gicv2.mk 2020-08-17 11:13:01 +01:00
amlogic Don't return error information from console_flush 2020-10-09 10:21:50 -05:00
arm Add support for Neoverse-N2 CPUs. 2020-11-30 19:12:56 +00:00
brcm Merge "Don't return error information from console_flush" into integration 2020-10-14 18:59:27 +00:00
common Fix typos and misspellings 2020-11-12 15:21:11 +00:00
hisilicon Don't return error information from console_flush 2020-10-09 10:21:50 -05:00
imx Don't return error information from console_flush 2020-10-09 10:21:50 -05:00
intel/soc intel: common: Fix non-MISRA compliant code v2 2020-10-27 11:21:00 +08:00
layerscape Don't return error information from console_flush 2020-10-09 10:21:50 -05:00
marvell plat: marvell: armada: a3k: Simplify check if WTP variable is defined 2020-12-07 11:06:36 +00:00
mediatek mediatek: mt8192: dcm: Add mcusys related dcm drivers 2020-12-07 23:31:19 +00:00
nvidia/tegra plat/nvidia: tegra: Rename SMC API 2020-11-19 20:09:28 +00:00
qemu qemu/qemu_sbsa: increase SHARED_RAM_SIZE 2020-12-01 14:01:24 +00:00
qti plat:qti Mandate SMC implementaion 2020-11-20 01:09:52 +05:30
renesas/rcar Don't return error information from console_flush 2020-10-09 10:21:50 -05:00
rockchip rockchip: Add support for the stack protector 2020-12-01 11:54:57 +01:00
rpi Don't return error information from console_flush 2020-10-09 10:21:50 -05:00
socionext Don't return error information from console_flush 2020-10-09 10:21:50 -05:00
st Merge "Don't return error information from console_flush" into integration 2020-10-14 18:59:27 +00:00
ti/k3 Don't return error information from console_flush 2020-10-09 10:21:50 -05:00
xilinx zynqmp: pm: Update flags in common clk divisor node 2020-12-08 22:24:44 +00:00