]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
clk: prima2: enable dt-binding clkdev mapping
authorBarry Song <Baohua.Song@csr.com>
Thu, 20 Dec 2012 08:51:31 +0000 (16:51 +0800)
committerMike Turquette <mturquette@linaro.org>
Fri, 18 Jan 2013 17:44:01 +0000 (09:44 -0800)
commiteb8b8f2e7164b819ca35a3d6240198fdb98d0ef3
tree36c3588aebf0d4bb42d0bfbaf0f3d658ae3e77dc
parent38a8b096f86dea54cc64f4daa3402d0c4f2df43e
clk: prima2: enable dt-binding clkdev mapping

this patche deletes hard code that registers clkdev by things like:
clk_register_clkdev(clk, NULL, "b0030000.nand");
clk_register_clkdev(clk, NULL, "b0040000.audio");
clk_register_clkdev(clk, NULL, "b0080000.usp");
prima2 clock controller becomes a clock provider and  every dt node
just declares its clock sources by dt prop.

it also makes us easier to extend this driver to support both prima2
and marco as marco has different address mapping with prima2.

Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Documentation/devicetree/bindings/clock/prima2-clock.txt [new file with mode: 0644]
arch/arm/boot/dts/prima2.dtsi
drivers/clk/clk-prima2.c