clk: mvebu: add mvebu core clocks.
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Sat, 17 Nov 2012 14:22:22 +0000 (15:22 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 20 Nov 2012 13:34:08 +0000 (14:34 +0100)
commit97fa4cf442ff2872000d9110686371775795a32b
tree24a2347bd5f5620dd5ac6a7d9964029c13245231
parentf4a75d2eb7b1e2206094b901be09adb31ba63681
clk: mvebu: add mvebu core clocks.

This driver allows to provide DT clocks for core clocks found on
Marvell Kirkwood, Dove & 370/XP SoCs. The core clock frequencies and
ratios are determined by decoding the Sample-At-Reset registers.

Although technically correct, using a divider of 0 will lead to
div_by_zero panic. Let's use a ratio of 0/1 instead to fail later
with a zero clock.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by Gregory CLEMENT <gregory.clement@free-electrons.com>
Documentation/devicetree/bindings/clock/mvebu-core-clock.txt [new file with mode: 0644]
drivers/clk/Kconfig
drivers/clk/Makefile
drivers/clk/mvebu/Kconfig [new file with mode: 0644]
drivers/clk/mvebu/Makefile [new file with mode: 0644]
drivers/clk/mvebu/clk-core.c [new file with mode: 0644]
drivers/clk/mvebu/clk-core.h [new file with mode: 0644]
drivers/clk/mvebu/clk.c [new file with mode: 0644]
include/linux/clk/mvebu.h [new file with mode: 0644]