]> git.ipfire.org Git - thirdparty/u-boot.git/commit
clk: zynqmp: Use firmware APIs in clock driver
authorRajan Vaja <rajan.vaja@xilinx.com>
Tue, 20 Feb 2018 12:28:37 +0000 (04:28 -0800)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 23 Apr 2018 06:57:39 +0000 (08:57 +0200)
commitaa8a32a8594f30d54a4deebafdbf4e44d5030f6e
treeb33e18ded186d29780f24d6d714caa1fd53b99b1
parent3b5d65e057ad468edb64979b9d42cb7a7677faec
clk: zynqmp: Use firmware APIs in clock driver

In existing driver, clocks are registered statically.
Instead of using static clocks, get clock information
from firmware and register clocks accordinglly.

Firmware maintains database of all clocks avaiable for the
variant. So if there is any new clocks are avaiable for
specific variant or some clocks are not present in
variant, Linux driver would not need any change.

To contorl the clocks, use firmware APIs instead of
register read/write. This prevents direct clock control
from any single master(processor) shared between multiple
masters. Firmware can implement this APIs to manage
shared clocks.

Change clock IDs in dts based on new firmware IDs.

Signed-off-by: Tejas Patel <tejasp@xilinx.com>
Signed-off-by: Rajan Vaja <rajanv@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/dts/zynqmp-clk-ccf.dtsi